Package com.alachisoft.ncache.client
Class ClusterEvent
- java.lang.Object
-
- java.util.EventObject
-
- com.alachisoft.ncache.client.ClusterEvent
-
- All Implemented Interfaces:
java.io.Serializable
public class ClusterEvent extends java.util.EventObjectClusterEvent is used to notify interested parties that something has happened with respect to the cluster.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetCacheId()Returns cache ID of the stopped cache.CacheStatusNotificationTypegetEventType()Gets the type of event against which the event is raised.java.lang.StringgetIp()Returns IP of the member node.longgetPort()Returns the NCache Socket Server port.
-
-
-
Constructor Detail
-
ClusterEvent
public 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.- Parameters:
source- the object responsible for the eventtype- the event typeip- the ip of the memeber.port- the port of the memeber.
-
ClusterEvent
public ClusterEvent(java.lang.Object source, CacheStatusNotificationType type, java.lang.String cacheId)Creates a new object representing a cluster event.- Parameters:
type- The type of cluster event.source- the object responsible for the eventcacheId- the cache-id of the stopped cache.
-
-
Method Detail
-
getEventType
public CacheStatusNotificationType getEventType()
Gets the type of event against which the event is raised.- Returns:
- Returns the type event against which the event is raised.
-
getPort
public long getPort()
Returns the NCache Socket Server port.- Returns:
- Returns the NCache Socket Server port.
-
getIp
public java.lang.String getIp()
Returns IP of the member node.- Returns:
- Returns IP of the member node.
-
getCacheId
public java.lang.String getCacheId()
Returns cache ID of the stopped cache.- Returns:
- Returns cache ID of the stopped cache.
-
-