|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rioproject.watch.WatchDescriptor
public class WatchDescriptor
The WatchDescriptor defines attributes of a declarable
Watch, allowing a Watch to be declared as part
of an OperationalString.
| Nested Class Summary | |
|---|---|
static class |
WatchDescriptor.Type
|
| Field Summary | |
|---|---|
static long |
DEFAULT_PERIOD
|
| Constructor Summary | |
|---|---|
WatchDescriptor()
Create a WatchDescriptor |
|
WatchDescriptor(String name,
String property,
long period)
Create a WatchDescriptor |
|
WatchDescriptor(String name,
WatchDescriptor.Type type,
String property,
long period)
Create a WatchDescriptor |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
|
String |
getAttribute()
Get the MBean attribute to access |
MBeanServerConnection |
getMBeanServerConnection()
|
String |
getName()
Get the name of the watch |
String |
getObjectName()
Get the JMX ObjectName to access |
long |
getPeriod()
Get the periodicity to collect data from the property |
String |
getProperty()
Get the property name to invoke on the bean |
WatchDescriptor.Type |
getType()
Get the Watch type |
int |
hashCode()
|
void |
setAttribute(String attribute)
Set the MBean attribute to access |
void |
setMBeanServerConnection(MBeanServerConnection mbsc)
|
void |
setName(String name)
Set the name of the watch |
void |
setObjectName(String objectName)
Set the JMX ObjectName to access |
void |
setPeriod(long period)
Set the periodicity to collect data from the property |
void |
setProperty(String property)
Set the property name to invoke on the bean |
void |
setType(WatchDescriptor.Type type)
Set the Watch type |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final long DEFAULT_PERIOD
| Constructor Detail |
|---|
public WatchDescriptor()
public WatchDescriptor(String name,
String property,
long period)
name - The name of the Watchproperty - The bean property to invoke to obtain a value to record
in the Watch.period - The period the Watch should use to collect data (in
milliseconds). If the period is 0, the default period of 10 seconds will
be used
IllegalArgumentException - if the name or property arguments
are null
public WatchDescriptor(String name,
WatchDescriptor.Type type,
String property,
long period)
name - The name of the Watchtype - An enum Type.property - The bean property to invoke to obtain a value to record
in the Watch.period - The period the Watch should use to collect data (in
milliseconds). If the period is 0, the default period of 10 seconds will
be used
IllegalArgumentException - if the name, type, or property arguments
are null| Method Detail |
|---|
public String getName()
public void setName(String name)
name - The name of the watchpublic void setObjectName(String objectName)
objectName - The JMX ObjectNamepublic String getObjectName()
public WatchDescriptor.Type getType()
public void setType(WatchDescriptor.Type type)
type - The watch type
IllegalArgumentException - if the type is nullpublic String getProperty()
public void setProperty(String property)
property - The property name to invoke on the beanpublic long getPeriod()
public void setPeriod(long period)
period - The periodicity to collect data from the propertypublic String getAttribute()
public void setAttribute(String attribute)
attribute - The MBean attribute to access. This property is used in
conjunction with the objectName property to create a Watch
that uses the value obtained by the attribute as input for the Watch.public void setMBeanServerConnection(MBeanServerConnection mbsc)
public MBeanServerConnection getMBeanServerConnection()
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
Copyright © Rio Project. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||