|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.continuent.tungsten.common.cluster.resource.notification.ResourceStatus
public class ResourceStatus
Lists all states in which a resource can be found. This class instances are
created by the checker class and then sent to the notifier for processing.
This class was based on tungsten sql router
com.continuent.tungsten.router.manager.RouterState
| Nested Class Summary | |
|---|---|
static class |
ResourceStatus.States
Inner class enumerating the different possible RouterResource States States are defined as strings so that they can be sent with native java functions by the notifier |
static class |
ResourceStatus.Types
Inner class enumerating the different possible RouterResource Types Types are defined as strings so that they can be sent with native java functions by the notifier |
| Constructor Summary | |
|---|---|
ResourceStatus(java.lang.String type,
java.lang.String name,
java.lang.String state,
TungstenProperties properties)
Creates a new ResourceStatus object, giving all fields |
|
| Method Summary | |
|---|---|
java.lang.String |
getClusterMemberName()
|
java.lang.String |
getClusterName()
|
java.lang.String |
getName()
Retrieves the name of the resource |
TungstenProperties |
getProperties()
Retrieves the resource-specific properties |
java.lang.String |
getState()
Retrieves the state of the resource |
java.lang.String |
getType()
Retrieves the type of the resource |
void |
setClusterMemberName(java.lang.String clusterMemberName)
|
void |
setClusterName(java.lang.String clusterName)
|
protected void |
setProperties(java.util.Map<java.lang.String,java.lang.String> additionalProps)
Adds the given resource-specific properties to the current properties, possibly replacing current values |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ResourceStatus(java.lang.String type,
java.lang.String name,
java.lang.String state,
TungstenProperties properties)
ResourceStatus object, giving all fields
type - Type of RouterResourcename - Possibly unique identifier for this resourcestate - Last known stateproperties - RouterResource-specific properties| Method Detail |
|---|
public java.lang.String getName()
public java.lang.String getType()
ResourceStatus.Typespublic java.lang.String getState()
ResourceStatus.Statesprotected void setProperties(java.util.Map<java.lang.String,java.lang.String> additionalProps)
additionalProps - new properties to be added to the current onespublic TungstenProperties getProperties()
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public java.lang.String getClusterName()
public void setClusterName(java.lang.String clusterName)
public java.lang.String getClusterMemberName()
public void setClusterMemberName(java.lang.String clusterMemberName)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||