ClusterEvent

ClusterEvent

ClusterEvent is used to notify interested parties that something has happened with respect to the cluster.


Constructor

# new ClusterEvent(event)

Parameters:
Name Type Description
event function
Version:
  • 0.1
Author:
  • Hamza Shoukat

Methods

# getCacheId() → {string}

Returns cache-id of the stopped cache.

Returns:

Returns cache-id of the stopped cache.

Type
string

# getEventType() → {number}

Gets the type of event.

Returns:

the type

Type
number

# getIp() → {string}

Returns IP of the member node.

Returns:

Returns IP of the member node.

Type
string

# getPort() → {number}

Returns the NCache Socket Server port.

Returns:

Returns the NCache Socket Server port.

Type
number