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

java.lang.Object
  extended by 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

Field Summary
static java.lang.String CLUSTER_NAME
           
protected  java.lang.String clusterName
           
static java.lang.String MEMBER_NAME
           
protected  java.lang.String memberName
           
static java.lang.String NOTIFICATION_SOURCE
           
protected  java.lang.String notificationSource
           
protected  Resource resource
           
static java.lang.String RESOURCE_NAME
           
static java.lang.String RESOURCE_PROPS
           
static java.lang.String RESOURCE_STATE
           
static java.lang.String RESOURCE_TYPE
           
protected  java.lang.String resourceName
           
protected  TungstenProperties resourceProps
           
protected  ResourceState resourceState
           
protected  ResourceType resourceType
           
protected  NotificationStreamID streamID
           
protected  long timeReceived
           
protected  long timeSent
           
 
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)
           
 
Method Summary
 java.lang.String getClusterName()
           
 java.lang.String getMemberName()
           
 java.lang.String getNotificationSource()
           
 Resource getResource()
           
 java.lang.String getResourceName()
           
 TungstenProperties getResourceProps()
           
 ResourceState getResourceState()
           
 ResourceType getResourceType()
           
 java.lang.String getSource()
           
 ResourceState getState()
           
 long getTimeReceived()
           
 long getTimeSent()
           
 long getTrackerCount()
           
 ResourceType getType()
           
 long incrementTracker()
           
 void setClusterName(java.lang.String clusterName)
           
 void setMemberName(java.lang.String memberName)
           
 void setNotificationSource(java.lang.String notificationSource)
           
 void setResource(Resource resource)
           
 void setResourceName(java.lang.String resourceName)
           
 void setResourceProps(TungstenProperties resourceProps)
           
 void setResourceState(ResourceState resourceState)
           
 void setResourceType(ResourceType resourceType)
           
 void setTimeReceived(long timeReceived)
           
 void setTimeSent(long timeSent)
           
 TungstenProperties toProperties()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

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)
Method Detail

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()