public class MulticastAnnouncement extends Object
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
MulticastAnnouncement(long sequenceNumber,
String host,
int port,
String[] groups,
ServiceID serviceID)
Creates a new
MulticastAnnouncement instance containing the
given values. |
Modifier and Type | Method and Description |
---|---|
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.
|
protected long sequenceNumber
protected String host
protected int port
protected String[] groups
protected ServiceID serviceID
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 IDNullPointerException
- if host
or
serviceID
is null
, or if groups
contains null
IllegalArgumentException
- if port
is out of rangepublic 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
constraintsSecurityException
- if the given constraints cannot be satisfied
due to insufficient caller permissionsIOException
- if an error occurs in interpreting the dataCopyright © GigaSpaces.