|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jondonym.console.MixCascadeInfo
public class MixCascadeInfo
Field Summary | |
---|---|
static int |
DELAY_HIGH
|
private java.util.Vector |
m_cachedMixInfos
|
private MixCascade |
m_cascade
|
private static boolean |
ms_bSupportForUsersAndSecurity
|
private static boolean |
ms_bToStringAsHTML
|
private static java.util.Hashtable |
ms_countryISO2CodePathTable
|
private static java.lang.String |
ms_pathToSecurityIcon
|
private static java.lang.String |
ms_pathToUsersIcon
|
private static java.lang.String |
MSG_CONTACT
|
private static java.lang.String |
MSG_CONTACT_MESSAGE
|
private static java.lang.String |
MSG_COUNTRY_MIX
|
private static java.lang.String |
MSG_COUNTRY_OPERATOR
|
private static java.lang.String |
MSG_NUMBER_OF_USERS
|
private static java.lang.String |
MSG_SECURITY
|
private static java.lang.String |
MSG_VISIT_MESSAGE
|
static int |
SECURITY_DISTRIBUTION_MAX
|
static int |
SECURITY_DISTRIBUTION_MIN
|
static int |
SECURITY_USERS_MAX
|
static int |
SECURITY_USERS_MIN
|
static int |
SPEED_LOW
|
Constructor Summary | |
---|---|
MixCascadeInfo(MixCascade a_cascade)
|
Method Summary | |
---|---|
int |
countIndependentOperators()
How many independent operators do we have in this cascade? |
int |
countMixes()
The number of Mix server processes in this cascade. |
int |
countUsers()
The number of users currently on this cascade. |
private static java.lang.String |
getFormattedCountry(java.lang.String a_countryCode,
java.lang.String a_titleMessage)
|
int |
getMaximumDelay()
Get the maximum delay to expect on this cascade in ms. |
int |
getMaximumSpeed()
Get the maximum speed to expect on this cascade in kbit/s. |
int |
getMinimumDelay()
Get the minimum delay to expect on this cascade in ms. |
int |
getMinimumSpeed()
Get the minimum speed to expect on this cascade in kbit/s. |
MixInfo |
getMixInfo(int a_position)
Returns information about all mixes in this cascade from 0 to countMixes() - 1. |
java.lang.String |
getName()
This cascade's name. |
int |
getSecurityDistribution()
The distribution points of a Cascade. |
int |
getSecurityUsers()
The user level of a cascade. |
int |
getUserLimit()
The maximum number of users allowed on this cascade. |
static void |
initToStringAsHTML(java.util.Hashtable a_countryISO2CodePathTable)
Should be called in a web environment for initializing the toString method. |
boolean |
isPremium()
|
boolean |
isSOCKS5Supported()
|
java.lang.String |
toString()
This string returns some general info about the cascade, excluding its name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static int SECURITY_DISTRIBUTION_MAX
public static int SECURITY_DISTRIBUTION_MIN
public static int SECURITY_USERS_MAX
public static int SECURITY_USERS_MIN
public static final int SPEED_LOW
public static final int DELAY_HIGH
private static final java.lang.String MSG_CONTACT_MESSAGE
private static final java.lang.String MSG_CONTACT
private static final java.lang.String MSG_VISIT_MESSAGE
private static final java.lang.String MSG_SECURITY
private static final java.lang.String MSG_NUMBER_OF_USERS
private static final java.lang.String MSG_COUNTRY_MIX
private static final java.lang.String MSG_COUNTRY_OPERATOR
private static boolean ms_bToStringAsHTML
private static java.util.Hashtable ms_countryISO2CodePathTable
private static java.lang.String ms_pathToUsersIcon
private static java.lang.String ms_pathToSecurityIcon
private static boolean ms_bSupportForUsersAndSecurity
private MixCascade m_cascade
private java.util.Vector m_cachedMixInfos
Constructor Detail |
---|
public MixCascadeInfo(MixCascade a_cascade)
Method Detail |
---|
public static void initToStringAsHTML(java.util.Hashtable a_countryISO2CodePathTable)
a_countryISO2CodePathTable
- absolute or relative URL image paths to country flags, the the format:
code[ISO2, lower case], [path to flag]a_pathToUsersIcon
- absolute or relative URL image path to an icon representing the number of users on a cascade,
e.g. an iconified persona_pathToSecurityIcon
- an absolute or relative path to an icon representing the security of the cascadepublic int getMinimumSpeed()
public int getMaximumSpeed()
public int getMaximumDelay()
public int getMinimumDelay()
public int countMixes()
public int countUsers()
public int getSecurityDistribution()
public int getSecurityUsers()
public MixInfo getMixInfo(int a_position)
a_position
- from 0 to countMixes() - 1; if presented to users: from 0 to countIndependentOperators()
public boolean isPremium()
public boolean isSOCKS5Supported()
public int countIndependentOperators()
public int getUserLimit()
public java.lang.String getName()
public java.lang.String toString()
toString
in class java.lang.Object
private static java.lang.String getFormattedCountry(java.lang.String a_countryCode, java.lang.String a_titleMessage)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |