class HTTPInstrumentManagerData extends AbstractHTTPData implements InstrumentManagerData
| Modifier and Type | Field and Description |
|---|---|
private boolean |
m_batchedUpdates |
private HTTPInstrumentableData[] |
m_instrumentableAry |
private java.util.Map |
m_instrumentableMap |
private java.util.List |
m_instrumentables |
private java.lang.String |
m_name |
private boolean |
m_readOnly |
| Constructor and Description |
|---|
HTTPInstrumentManagerData(HTTPInstrumentManagerConnection connection)
Creates a new HTTPInstrumentManagerData.
|
| Modifier and Type | Method and Description |
|---|---|
void |
createInstrumentSample(java.lang.String instrumentName,
java.lang.String description,
long interval,
int sampleCount,
long leaseTime,
int sampleType)
Requests that a sample be created or that its lease be updated.
|
void |
createInstrumentSamples(java.lang.String[] instrumentNames,
java.lang.String[] descriptions,
long[] intervals,
int[] sampleCounts,
long[] leaseTimes,
int[] sampleTypes)
Requests that a set of samples be created or that their leases be
updated.
|
InstrumentableData[] |
getInstrumentables()
Gets a thread-safe snapshot of the instrumentable list.
|
java.lang.String |
getName()
Returns the name.
|
boolean |
isReadOnly()
Returns true if the InstrumentManager on the server is operating in
read-only mode.
|
private boolean |
isSupportsBatchedUpdates()
Returns true if batched lease creates and renewals are implemented on
the server.
|
boolean |
update()
Causes the InstrumentManagerData to update itself with the latest data
from the server.
|
protected void |
update(org.apache.avalon.framework.configuration.Configuration configuration,
boolean recurse)
Update the contents of the object using values from the Configuration object.
|
boolean |
updateAll()
Causes the the entire instrument tree to be updated in one call.
|
getConnection, getDescription, getStateVersion, update, urlEncodeenableLogging, getLogger, setupLogger, setupLogger, setupLoggerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDescription, getStateVersionprivate java.lang.String m_name
private boolean m_batchedUpdates
private boolean m_readOnly
private java.util.List m_instrumentables
private HTTPInstrumentableData[] m_instrumentableAry
private java.util.Map m_instrumentableMap
HTTPInstrumentManagerData(HTTPInstrumentManagerConnection connection)
protected void update(org.apache.avalon.framework.configuration.Configuration configuration,
boolean recurse)
throws org.apache.avalon.framework.configuration.ConfigurationException
configuration - Configuration object to load from.recurse - True if state should be ignored and we should drill down
using data in this configuration.org.apache.avalon.framework.configuration.ConfigurationException - If there are any problems.public boolean update()
public java.lang.String getName()
getName in interface InstrumentManagerDatapublic boolean isReadOnly()
private boolean isSupportsBatchedUpdates()
public InstrumentableData[] getInstrumentables()
getInstrumentables in interface InstrumentManagerDatapublic boolean updateAll()
updateAll in interface InstrumentManagerDatapublic void createInstrumentSample(java.lang.String instrumentName,
java.lang.String description,
long interval,
int sampleCount,
long leaseTime,
int sampleType)
createInstrumentSample in interface InstrumentManagerDatainstrumentName - The full name of the instrument whose sample is
to be created or updated.description - Description to assign to the new sample.interval - Sample interval of the new sample.sampleCount - Number of samples in the new sample.leaseTime - Requested lease time. The server may not grant the
full lease.sampleType - The type of sample to be created.public void createInstrumentSamples(java.lang.String[] instrumentNames,
java.lang.String[] descriptions,
long[] intervals,
int[] sampleCounts,
long[] leaseTimes,
int[] sampleTypes)
createInstrumentSamples in interface InstrumentManagerDatainstrumentNames - The full names of the instruments whose sample
are to be created or updated.descriptions - Descriptions to assign to the new samples.intervals - Sample intervals of the new samples.sampleCounts - Number of samples in each the new samples.leaseTimes - Requested lease times. The server may not grant the
full leases.sampleTypes - The types of samples to be created.