|
GigaSpaces XAP 10.0.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.jini.discovery.MulticastAnnouncement
public class MulticastAnnouncement
Class representing the values in a multicast announcement.
Field Summary | |
---|---|
protected String[] |
groups
The lookup service member groups. |
protected String |
host
The lookup service host. |
protected int |
port
The lookup service listen port. |
protected long |
sequenceNumber
The announcement sequence number. |
protected ServiceID |
serviceID
The lookup service ID. |
Constructor Summary | |
---|---|
MulticastAnnouncement(long sequenceNumber,
String host,
int port,
String[] groups,
ServiceID serviceID)
Creates a new MulticastAnnouncement instance containing the
given values. |
Method Summary | |
---|---|
void |
checkConstraints()
Checks if the constraints whose checking was delayed when this instance was decoded, if any, are satisfied. |
String[] |
getGroups()
Returns the member groups of the lookup service. |
String |
getHost()
Returns the lookup service host name. |
int |
getPort()
Returns the lookup service listen port. |
long |
getSequenceNumber()
Returns the announcement sequence number. |
ServiceID |
getServiceID()
Returns the service ID of the lookup service. |
String |
toString()
Returns a string representation of this announcement. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected long sequenceNumber
protected String host
protected int port
protected String[] groups
protected ServiceID serviceID
Constructor Detail |
---|
public MulticastAnnouncement(long sequenceNumber, String host, int port, String[] groups, ServiceID serviceID)
MulticastAnnouncement
instance containing the
given values. The groups
array is copied; a
null
value is considered equivalent to an empty array.
sequenceNumber
- the announcement sequence numberhost
- the lookup service hostport
- the lookup service listen portgroups
- the lookup service member groupsserviceID
- the lookup service ID
NullPointerException
- if host
or
serviceID
is null
, or if groups
contains null
IllegalArgumentException
- if port
is out of rangeMethod Detail |
---|
public long getSequenceNumber()
public String getHost()
public int getPort()
public String[] getGroups()
public ServiceID getServiceID()
public void checkConstraints() throws IOException
UnsupportedConstraintException
- if unable to satisfy the specified
constraints
SecurityException
- if the given constraints cannot be satisfied
due to insufficient caller permissions
IOException
- if an error occurs in interpreting the datapublic String toString()
toString
in class Object
|
GigaSpaces XAP 10.0.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |