com.continuent.tungsten.common.cluster.resource.notification
Class ClusterResourceNotification
java.lang.Object
com.continuent.tungsten.common.cluster.resource.notification.ClusterResourceNotification
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- ClusterConfigurationNotification, ClusterMemberHeartbeat, ClusterSynchronizationNotification, DataServerNotification, DataSourceNotification, DirectoryNotification, HostNotification, ManagerHeartbeat, ManagerNotification, RemoteDataServiceHeartbeatNotification, ReplicationServiceNotification, ReplicatorNotification, SequoiaBackendNotification, SQLRouterNotification, UserEventNotification
public abstract class ClusterResourceNotification
- extends java.lang.Object
- implements java.io.Serializable
- See Also:
- Serialized Form
|
Constructor Summary |
ClusterResourceNotification(NotificationStreamID streamID,
java.lang.String clusterName,
java.lang.String memberName,
java.lang.String notificationSource,
ResourceType resourceType,
java.lang.String resourceName,
ResourceState resourceState,
TungstenProperties resourceProps)
|
ClusterResourceNotification(java.lang.String clusterName,
java.lang.String memberName,
java.lang.String notificationSource,
ResourceType resourceType,
java.lang.String resourceName,
ResourceState resourceState,
TungstenProperties resourceProps)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
resourceType
protected ResourceType resourceType
streamID
protected NotificationStreamID streamID
timeSent
protected long timeSent
timeReceived
protected long timeReceived
clusterName
protected java.lang.String clusterName
memberName
protected java.lang.String memberName
resourceName
protected java.lang.String resourceName
resourceState
protected ResourceState resourceState
notificationSource
protected java.lang.String notificationSource
resourceProps
protected TungstenProperties resourceProps
resource
protected Resource resource
RESOURCE_TYPE
public static final java.lang.String RESOURCE_TYPE
- See Also:
- Constant Field Values
CLUSTER_NAME
public static final java.lang.String CLUSTER_NAME
- See Also:
- Constant Field Values
MEMBER_NAME
public static final java.lang.String MEMBER_NAME
- See Also:
- Constant Field Values
RESOURCE_NAME
public static final java.lang.String RESOURCE_NAME
- See Also:
- Constant Field Values
RESOURCE_STATE
public static final java.lang.String RESOURCE_STATE
- See Also:
- Constant Field Values
NOTIFICATION_SOURCE
public static final java.lang.String NOTIFICATION_SOURCE
- See Also:
- Constant Field Values
RESOURCE_PROPS
public static final java.lang.String RESOURCE_PROPS
- See Also:
- Constant Field Values
ClusterResourceNotification
public ClusterResourceNotification(java.lang.String clusterName,
java.lang.String memberName,
java.lang.String notificationSource,
ResourceType resourceType,
java.lang.String resourceName,
ResourceState resourceState,
TungstenProperties resourceProps)
ClusterResourceNotification
public ClusterResourceNotification(NotificationStreamID streamID,
java.lang.String clusterName,
java.lang.String memberName,
java.lang.String notificationSource,
ResourceType resourceType,
java.lang.String resourceName,
ResourceState resourceState,
TungstenProperties resourceProps)
getTrackerCount
public long getTrackerCount()
toProperties
public TungstenProperties toProperties()
getType
public ResourceType getType()
getResource
public Resource getResource()
getSource
public java.lang.String getSource()
getState
public ResourceState getState()
getResourceName
public java.lang.String getResourceName()
getResourceProps
public TungstenProperties getResourceProps()
setResource
public void setResource(Resource resource)
getClusterName
public java.lang.String getClusterName()
getResourceType
public ResourceType getResourceType()
setResourceType
public void setResourceType(ResourceType resourceType)
getResourceState
public ResourceState getResourceState()
setResourceState
public void setResourceState(ResourceState resourceState)
getNotificationSource
public java.lang.String getNotificationSource()
setNotificationSource
public void setNotificationSource(java.lang.String notificationSource)
setClusterName
public void setClusterName(java.lang.String clusterName)
setResourceName
public void setResourceName(java.lang.String resourceName)
setResourceProps
public void setResourceProps(TungstenProperties resourceProps)
getMemberName
public java.lang.String getMemberName()
setMemberName
public void setMemberName(java.lang.String memberName)
getTimeSent
public long getTimeSent()
setTimeSent
public void setTimeSent(long timeSent)
getTimeReceived
public long getTimeReceived()
setTimeReceived
public void setTimeReceived(long timeReceived)
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
incrementTracker
public long incrementTracker()