public class ClusterEvent
extends java.util.EventObject
Constructor | Description |
---|---|
ClusterEvent(java.lang.Object source,
CacheStatusNotificationType type,
java.lang.String cacheId) |
Creates a new object representing a cluster event.
|
ClusterEvent(java.lang.Object source,
CacheStatusNotificationType type,
java.lang.String ip,
int port,
java.lang.String cacheId) |
Creates a new object representing a cluster event.
|
Modifier and Type | Method | Description |
---|---|---|
java.lang.String |
getCacheId() |
Returns cache-id of the stopped cache.
|
CacheStatusNotificationType |
getEventType() |
Gets the type of event.
|
java.lang.String |
getIp() |
Returns IP of the member node.
|
long |
getPort() |
Returns the NCache Socket Server port.
|
public ClusterEvent(java.lang.Object source, CacheStatusNotificationType type, java.lang.String ip, int port, java.lang.String cacheId)
source
- the object responsible for the eventtype
- the event typeip
- the ip of the memeber.port
- the port of the memeber.public ClusterEvent(java.lang.Object source, CacheStatusNotificationType type, java.lang.String cacheId)
type
- The type of cluster event.source
- the object responsible for the eventcacheId
- the cache-id of the stopped cache.public CacheStatusNotificationType getEventType()
public long getPort()
public java.lang.String getIp()
public java.lang.String getCacheId()