public class NodeItem
extends java.lang.Object
implements java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
static int |
TESTSTATUS_FAILED |
static int |
TESTSTATUS_PASSED |
static int |
TESTSTATUS_UNKNOWN |
static int |
TYPE_EXIT |
static int |
TYPE_GUARD |
Constructor and Description |
---|
NodeItem() |
Modifier and Type | Method and Description |
---|---|
void |
clearType()
Clear node type
|
NodeItem |
clone() |
float |
getBandwidth()
Get nodeitem bandwith
|
java.lang.String |
getCircuitHops()
Get circuit hops
|
java.lang.String |
getCountryCode()
Get nodeitem two letter country code abbreviation
|
java.lang.String |
getCountryName()
Get nodeitem full country name
|
java.lang.String |
getFingerprint()
Get nodeitems fingerprint
|
java.lang.String |
getIPAddress()
Get nodeitem ip address
|
long |
getLatency()
Get Nodeitem latency in ms
|
java.lang.String |
getNickName()
Get nodeitem unique name
|
java.lang.String |
getStability()
Get Nodeitem stability
|
int |
getStreams()
Get nodeitems active streams
|
java.lang.String |
getTestingMessage()
Get Node item status
|
long |
getTestLatency()
Get Nodeitem test latency in ms
|
int |
getTestStatus()
Get testing status flag
|
boolean |
isExit()
Is exit node
|
boolean |
isFavourite()
Get exit enabled status of Nodeitem
|
boolean |
isGuard()
Is Guard node
|
boolean |
isGuardEnabled()
Get guard enabled status of Nodeitem
|
boolean |
isHttpSupported() |
boolean |
isNonUnique() |
void |
setBandwidth(float bw)
Set node item bandwidth
|
void |
setCircuitHops(java.lang.String hops)
Set circuit hops
|
void |
setCountryCode(java.lang.String abrv)
Set Nodeitem with its two letter country code abbreviation
|
void |
setCountryName(java.lang.String name)
Set Nodeitem with its full country name
|
void |
setFavouriteEnabled(boolean enabled)
Set exit enabled status of Nodeitem
|
void |
setFingerprint(java.lang.String fp)
Set nodeitem fingerprint
|
void |
setGuardEnabled(boolean enabled)
Set guard enabled status of Nodeitem
|
void |
setHttpSupported(boolean supported) |
void |
setIPAddress(java.lang.String ip)
Set nodeitem ip address
|
void |
setLatency(long latency)
Set Nodeitem latency value in ms
|
void |
setNickName(java.lang.String name)
Set nodeitem name
|
void |
setStable(java.lang.String stability)
Set Nodeitem stability yes/no/unknown
|
void |
setStreams(int streams)
Set nodeitem number of streams
|
void |
setTestingMessage(java.lang.String text)
Set Nodeitem testing status message
|
void |
setTestLatency(long latency)
Set Nodeitem test latency value in ms
|
void |
setTestStatus(int status)
Set testing status flag
|
void |
setType(int mask)
Set Node type
|
public static final int TYPE_EXIT
public static final int TYPE_GUARD
public static final int TESTSTATUS_UNKNOWN
public static final int TESTSTATUS_PASSED
public static final int TESTSTATUS_FAILED
public final void setType(int mask)
mask
- public final void clearType()
public boolean isNonUnique()
public final boolean isExit()
public boolean isHttpSupported()
public void setHttpSupported(boolean supported)
public final boolean isGuard()
public final void setCircuitHops(java.lang.String hops)
hops
- public final java.lang.String getCircuitHops()
public final void setTestingMessage(java.lang.String text)
text
- public final void setTestStatus(int status)
status
- public final int getTestStatus()
public final java.lang.String getTestingMessage()
public final void setLatency(long latency)
latency
- public final long getLatency()
public final void setTestLatency(long latency)
latency
- public final long getTestLatency()
public final void setFavouriteEnabled(boolean enabled)
enabled
- public final boolean isFavourite()
public final void setGuardEnabled(boolean enabled)
enabled
- public final boolean isGuardEnabled()
public final void setStable(java.lang.String stability)
stability
- public final java.lang.String getStability()
public final void setCountryCode(java.lang.String abrv)
abrv
- public final java.lang.String getCountryCode()
public final void setCountryName(java.lang.String name)
name
- public final java.lang.String getCountryName()
public final void setNickName(java.lang.String name)
name
- public final java.lang.String getNickName()
public final void setBandwidth(float bw)
bw
- public final float getBandwidth()
public final void setStreams(int streams)
streams
- public final int getStreams()
public final void setFingerprint(java.lang.String fp)
fp
- public final java.lang.String getFingerprint()
public final void setIPAddress(java.lang.String ip)
ip
- public final java.lang.String getIPAddress()
public NodeItem clone()
clone
in class java.lang.Object