|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.resilientedge.jockey.peerbridge.PBNet
A definition of a peer network; one instance per peer network implementation.
Field Summary | |
static java.lang.String |
GNUTELLA_NETWORK
symbolic identifier for the gnutella network type. |
static java.lang.String |
JABBER_NETWORK
symbolic identifier for the jabber network type (www.jabber.org). |
static java.lang.String |
JXTA_NETWORK
symbolic identifier for the JXTA network type (www.jxta.org). |
static java.lang.String |
KAZAA_NETWORK
symbolic identifier for the Kazaa/Morpheus/FastTrack network. |
Constructor Summary | |
PBNet(java.lang.String networkName)
Basic constructor. |
Method Summary | |
int |
compareTo(java.lang.Object other)
Returns zero if the other network is the same as this network. |
int |
getNetworkId()
Return the uniqe identifier for this peer network. |
void |
setNetworkId(java.lang.String networkName)
Set the unique identifier for this type of peer network. |
PeerNetwork |
toPeerNetwork()
Return a copy of this object translated to a client side token. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String JXTA_NETWORK
public static final java.lang.String JABBER_NETWORK
public static final java.lang.String GNUTELLA_NETWORK
public static final java.lang.String KAZAA_NETWORK
Constructor Detail |
public PBNet(java.lang.String networkName)
networkId
- one of the final _NETWORK constantsMethod Detail |
public void setNetworkId(java.lang.String networkName)
networkId
- a symbolic constant for this network typepublic int getNetworkId()
public int compareTo(java.lang.Object other)
compareTo
in interface java.lang.Comparable
other
- network to comparepublic PeerNetwork toPeerNetwork()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |