|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<GeoProximity>
org.hd.d.pg2k.svrCore.location.GeoProximity
public enum GeoProximity
Defines some broad-brush, ordered, geographical Internet proximity values. Defines strictly-positive value for two points "close" to one another, indicating likely relative connectivity (cf two random points in the Net) including notions of bandwidth, packet loss, RTT, reliability, cost, etc, ie a blended QoS/cost for end user and provider.
I assume that international transit costs roughly 50x intra-country bandwidth, and that cheap peering is not available for all intra-country traffic. I also assume the performance of a long route from a user's point of view is usually somewhat less bad than the cost would imply.
The enum tag is the most important; the numerical values are very approximate and only to be used if nothing better is available.
The tag "NONE" has a value of exactly 1 to indicate no closeness or unknown closeness.
| Enum Constant Summary | |
|---|---|
CONTINENT
Within one continent or (more-or-less equivalently) one address-registry's ambit (eg RIPE). |
|
COUNTRY
Within one country; usually reasonably fast, reliable and cheap. |
|
COUNTRYGROUP
Group of well-connected countries (eg uk and nl, or us and ca). |
|
NONE
No particular/known proximity, may well involve expensive/slow/unreliable transit. |
|
VCLOSE
Typically MAN or LAN or closer; fast, reliable and almost free. |
|
| Field Summary | |
|---|---|
private int |
closeness
The "closeness" factor higher meaning closer; strictly positive. |
| Method Summary | |
|---|---|
int |
getCloseness()
Get the "closeness" factor higher meaning closer; strictly positive. |
static GeoProximity |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static GeoProximity[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final GeoProximity VCLOSE
public static final GeoProximity COUNTRY
public static final GeoProximity COUNTRYGROUP
public static final GeoProximity CONTINENT
public static final GeoProximity NONE
| Field Detail |
|---|
private final int closeness
| Method Detail |
|---|
public static GeoProximity[] values()
for (GeoProximity c : GeoProximity.values()) System.out.println(c);
public static GeoProximity valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is nullpublic final int getCloseness()
|
DHD Multimedia Gallery V1.57.21 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||