public class UDPDiscoveryMessage
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
static int |
PASSIVE_BROADCAST
This is the periodic broadcast of a servers location.
|
static int |
REQUEST_BROADCAST
This asks recipients to broadcast their location.
|
| Constructor and Description |
|---|
UDPDiscoveryMessage() |
| Modifier and Type | Method and Description |
|---|---|
java.util.ArrayList |
getCacheNames() |
java.lang.String |
getHost() |
int |
getMessageType() |
int |
getPort() |
long |
getRequesterId() |
void |
setCacheNames(java.util.ArrayList cacheNames) |
void |
setHost(java.lang.String host) |
void |
setMessageType(int messageType) |
void |
setPort(int port) |
void |
setRequesterId(long requesterId) |
java.lang.String |
toString() |
public static final int PASSIVE_BROADCAST
public static final int REQUEST_BROADCAST
public void setPort(int port)
port - The port to set.public int getPort()
public void setHost(java.lang.String host)
host - The host to set.public java.lang.String getHost()
public void setRequesterId(long requesterId)
requesterId - The requesterId to set.public long getRequesterId()
public void setMessageType(int messageType)
messageType - The messageType to set.public int getMessageType()
public void setCacheNames(java.util.ArrayList cacheNames)
cacheNames - The cacheNames to set.public java.util.ArrayList getCacheNames()
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2002-2013 Apache Software Foundation. All Rights Reserved.