com.continuent.tungsten.common.cluster.resource.notification
Class ReplicatorNotification

java.lang.Object
  extended by com.continuent.tungsten.common.cluster.resource.notification.ClusterResourceNotification
      extended by com.continuent.tungsten.common.cluster.resource.notification.ReplicatorNotification
All Implemented Interfaces:
java.io.Serializable

public class ReplicatorNotification
extends ClusterResourceNotification

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.continuent.tungsten.common.cluster.resource.notification.ClusterResourceNotification
CLUSTER_NAME, clusterName, MEMBER_NAME, memberName, NOTIFICATION_SOURCE, notificationSource, resource, RESOURCE_NAME, RESOURCE_PROPS, RESOURCE_STATE, RESOURCE_TYPE, resourceName, resourceProps, resourceState, resourceType, streamID, timeReceived, timeSent
 
Constructor Summary
ReplicatorNotification(java.lang.String clusterName, java.lang.String memberName, java.lang.String notificationSource, java.lang.String resourceName, ResourceState resourceState, TungstenProperties resourceProps)
           
 
Method Summary
 java.lang.String getMasterReplicator()
           
 java.lang.String getRole()
           
static ResourceState replicatorStateToResourceState(java.lang.String state)
          Parses the given state provided by the replicator and guess a generic resourceState from it
 
Methods inherited from class com.continuent.tungsten.common.cluster.resource.notification.ClusterResourceNotification
getClusterName, getMemberName, getNotificationSource, getResource, getResourceName, getResourceProps, getResourceState, getResourceType, getSource, getState, getTimeReceived, getTimeSent, getTrackerCount, getType, incrementTracker, setClusterName, setMemberName, setNotificationSource, setResource, setResourceName, setResourceProps, setResourceState, setResourceType, setTimeReceived, setTimeSent, toProperties, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReplicatorNotification

public ReplicatorNotification(java.lang.String clusterName,
                              java.lang.String memberName,
                              java.lang.String notificationSource,
                              java.lang.String resourceName,
                              ResourceState resourceState,
                              TungstenProperties resourceProps)
Parameters:
clusterName -
memberName - TODO
notificationSource -
resourceName -
resourceState -
resourceProps -
Method Detail

replicatorStateToResourceState

public static ResourceState replicatorStateToResourceState(java.lang.String state)
Parses the given state provided by the replicator and guess a generic resourceState from it

Parameters:
state - the state of the connected replicator, as provided by its JMX state attribute
Returns:
a resource state, one of ResourceState

getRole

public java.lang.String getRole()

getMasterReplicator

public java.lang.String getMasterReplicator()