com.continuent.tungsten.common.cluster.resource
Class Monitor

java.lang.Object
  extended by com.continuent.tungsten.common.cluster.resource.Resource
      extended by com.continuent.tungsten.common.cluster.resource.Monitor
All Implemented Interfaces:
java.io.Serializable

public class Monitor
extends Resource
implements java.io.Serializable

See Also:
Serialized Form

Field Summary
static java.lang.String MEMBERNAME
           
 
Fields inherited from class com.continuent.tungsten.common.cluster.resource.Resource
childType, compositeMember, description, isContainer, isExecutable, name, type
 
Constructor Summary
Monitor(java.util.Map<java.lang.String,java.lang.String> dsProperties)
          Creates a new DataSource object
Monitor(java.lang.String key, java.lang.String memberName)
           
Monitor(java.lang.String name, java.lang.String memberName, java.lang.String clusterName)
          Creates a new Monitor object
Monitor(TungstenProperties props)
           
 
Method Summary
 java.lang.String getClusterName()
          Returns the clusterName value.
 java.lang.String getMemberName()
          Returns the memberName value.
 void set(java.util.Map<java.lang.String,java.lang.String> dsProperties)
           
 void setClusterName(java.lang.String clusterName)
          Sets the clusterName value.
 void setMemberName(java.lang.String memberName)
          Sets the memberName value.
 java.util.Map<java.lang.String,java.lang.String> toMap()
          TODO: toMap definition.
 TungstenProperties toProperties()
           
 void update(Monitor ds)
          Update a given monitor with values from a different monitor
 
Methods inherited from class com.continuent.tungsten.common.cluster.resource.Resource
copyTo, describe, getChildType, getCompositeMember, getKey, getName, getType, isContainer, isExecutable, setChildType, setCompositeMember, setContainer, setExecutable, setName, setType, toJSON, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MEMBERNAME

public static final java.lang.String MEMBERNAME
See Also:
Constant Field Values
Constructor Detail

Monitor

public Monitor(TungstenProperties props)

Monitor

public Monitor(java.lang.String name,
               java.lang.String memberName,
               java.lang.String clusterName)
Creates a new Monitor object

Parameters:
name -
memberName -
clusterName -

Monitor

public Monitor(java.lang.String key,
               java.lang.String memberName)

Monitor

public Monitor(java.util.Map<java.lang.String,java.lang.String> dsProperties)
Creates a new DataSource object

Parameters:
dsProperties -
Method Detail

update

public void update(Monitor ds)
Update a given monitor with values from a different monitor

Parameters:
ds -

toProperties

public TungstenProperties toProperties()
Overrides:
toProperties in class Resource

toMap

public java.util.Map<java.lang.String,java.lang.String> toMap()
TODO: toMap definition.

Returns:
properties representing this dataserver

set

public void set(java.util.Map<java.lang.String,java.lang.String> dsProperties)

getClusterName

public java.lang.String getClusterName()
Returns the clusterName value.

Returns:
Returns the clusterName.

setClusterName

public void setClusterName(java.lang.String clusterName)
Sets the clusterName value.

Parameters:
clusterName - The clusterName to set.

getMemberName

public java.lang.String getMemberName()
Returns the memberName value.

Returns:
Returns the memberName.

setMemberName

public void setMemberName(java.lang.String memberName)
Sets the memberName value.

Parameters:
memberName - The memberName to set.