com.continuent.tungsten.common.cluster.resource.notification
Class ReplicatorNotification
java.lang.Object
com.continuent.tungsten.common.cluster.resource.notification.ClusterResourceNotification
com.continuent.tungsten.common.cluster.resource.notification.ReplicatorNotification
- All Implemented Interfaces:
- java.io.Serializable
public class ReplicatorNotification
- extends ClusterResourceNotification
- See Also:
- Serialized Form
| 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 |
| 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 |
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 - TODOnotificationSource - resourceName - resourceState - resourceProps -
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()