public class MulticastAnnouncement extends Object
| 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.
|
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 nullIllegalArgumentException - 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 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.