Class ClusterEvent

  • All Implemented Interfaces:
    java.io.Serializable

    public class ClusterEvent
    extends java.util.EventObject
    ClusterEvent 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.String getCacheId()
      Returns cache ID of the stopped cache.
      CacheStatusNotificationType getEventType()
      Gets the type of event against which the event is raised.
      java.lang.String getIp()
      Returns IP of the member node.
      long getPort()
      Returns the NCache Socket Server port.
      • Methods inherited from class java.util.EventObject

        getSource, toString
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 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 event
        type - the event type
        ip - 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 event
        cacheId - 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.