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

java.lang.Object
  extended by com.continuent.tungsten.common.cluster.resource.notification.ResourceStatus
      extended by com.continuent.tungsten.common.cluster.resource.notification.DataServerStatus

public class DataServerStatus
extends ResourceStatus

Provides utilities for resource status specific properties, specialized in data source representation

Version:
1.0
Author:
Gilles Rayrat

Nested Class Summary
static class DataServerStatus.Roles
          Inner class enumerating the different possible RouterResource Roles
Roles are defined as strings so that they can be sent with native java functions by the notifier
 
Nested classes/interfaces inherited from class com.continuent.tungsten.common.cluster.resource.notification.ResourceStatus
ResourceStatus.States, ResourceStatus.Types
 
Field Summary
static java.lang.String PROPERTY_KEY_DRIVER
           
static java.lang.String PROPERTY_KEY_HOST
           
static java.lang.String PROPERTY_KEY_PRECEDENCE
           
static java.lang.String PROPERTY_KEY_ROLE
           
static java.lang.String PROPERTY_KEY_SERVICE
           
static java.lang.String PROPERTY_KEY_URL
           
static java.lang.String PROPERTY_KEY_VENDOR
           
 
Constructor Summary
DataServerStatus(java.lang.String type, java.lang.String name, java.lang.String state, java.lang.String host, java.lang.String role, int precedence, java.lang.String service, java.lang.String url, java.lang.String driver, java.lang.String vendor)
          Creates a new DataSourceStatus object filling in additional role, service, url and driver information
 
Method Summary
 
Methods inherited from class com.continuent.tungsten.common.cluster.resource.notification.ResourceStatus
getClusterMemberName, getClusterName, getName, getProperties, getState, getType, setClusterMemberName, setClusterName, setProperties, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PROPERTY_KEY_SERVICE

public static final java.lang.String PROPERTY_KEY_SERVICE
See Also:
Constant Field Values

PROPERTY_KEY_HOST

public static final java.lang.String PROPERTY_KEY_HOST
See Also:
Constant Field Values

PROPERTY_KEY_ROLE

public static final java.lang.String PROPERTY_KEY_ROLE
See Also:
Constant Field Values

PROPERTY_KEY_PRECEDENCE

public static final java.lang.String PROPERTY_KEY_PRECEDENCE
See Also:
Constant Field Values

PROPERTY_KEY_URL

public static final java.lang.String PROPERTY_KEY_URL
See Also:
Constant Field Values

PROPERTY_KEY_DRIVER

public static final java.lang.String PROPERTY_KEY_DRIVER
See Also:
Constant Field Values

PROPERTY_KEY_VENDOR

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

DataServerStatus

public DataServerStatus(java.lang.String type,
                        java.lang.String name,
                        java.lang.String state,
                        java.lang.String host,
                        java.lang.String role,
                        int precedence,
                        java.lang.String service,
                        java.lang.String url,
                        java.lang.String driver,
                        java.lang.String vendor)
Creates a new DataSourceStatus object filling in additional role, service, url and driver information

Parameters:
type - Type of RouterResource
name - Possibly unique identifier for this resource
state - Last known state
host - hostname on which this data source runs
role - slave or master
precedence - used for failover
service - service to which this datasource belongs
url - url string used to connect to this datasource
driver - driver as a string used for connection to this datasource
vendor - vendor of the driver