|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.jini.discovery.DiscoveryProtocolVersion
public final class DiscoveryProtocolVersion
Represents a constraint on the version of the discovery protocol used to contact lookup services. Lookup services and discovery clients can use this constraint to control what version(s) of the multicast request, multicast announcement and unicast discovery protocols are used to exchange data with each other.
Field Summary | |
---|---|
static DiscoveryProtocolVersion |
ONE
Use discovery protocol version 1. |
private static long |
serialVersionUID
|
static DiscoveryProtocolVersion |
TWO
Use discovery protocol version 2. |
private int |
version
The protocol version number. |
Constructor Summary | |
---|---|
private |
DiscoveryProtocolVersion(int version)
|
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
static DiscoveryProtocolVersion |
getInstance(int version)
Returns a DiscoveryProtocolVersion constraint for the given
version number. |
int |
getVersion()
Returns the protocol version number. |
int |
hashCode()
|
private void |
readObject(ObjectInputStream in)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
public static final DiscoveryProtocolVersion ONE
public static final DiscoveryProtocolVersion TWO
private final int version
Constructor Detail |
---|
private DiscoveryProtocolVersion(int version)
Method Detail |
---|
public static DiscoveryProtocolVersion getInstance(int version)
DiscoveryProtocolVersion
constraint for the given
version number.
public int getVersion()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public String toString()
toString
in class Object
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |