|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opends.testqa.monitoringclient.DatasBuffer
public class DatasBuffer
Buffer to store the datas retrieved by the producers.
| Constructor Summary | |
|---|---|
DatasBuffer(MonitoringClient client)
Construct a DatasBuffer object. |
|
| Method Summary | |
|---|---|
boolean |
addAttributeToMonitor(java.lang.String attribute,
java.util.Properties params)
Add an attribute to monitor. |
DatasBuffer |
clone()
Clone the DatasBuffer and reset it if all the consumers have cloned it. |
boolean |
containsData(java.lang.String attribute,
java.util.Properties parameters)
Test if the DatasBuffer contains a data. |
void |
dataError(Data d,
java.lang.String message)
Fill a data with the error code and create a new error. |
java.util.Vector<Data> |
getAllDatas()
Return the datas retrieved by the producers. |
java.util.Vector<Data> |
getAttributesToMonitor(java.lang.String protocol)
Returns the attributes to monitor for a well known protocol. |
Data |
getData(java.lang.String attribute,
java.util.Properties parameters)
Returns the specified data. |
java.util.Date |
getDate()
Return the date of the datas. |
boolean |
isFull()
Test if the DatasBuffer is full. |
void |
protocolError(java.lang.String protocol,
java.lang.String message)
Fill all the datas of a well known protocol with the error code and create a general error. |
Data |
removeAttributeToMonitor(java.lang.String attribute,
java.util.Properties params)
Remove an attribute to monitor. |
void |
setData(Data d,
java.lang.String value,
int timer)
Sets a data in the buffer. |
void |
timeoutExpired()
If the buffer isn't full, fill the empty data with the error code and wake up the consumers; else, reset the date and the number of consumers. |
void |
verifyDatas(java.lang.String protocol)
Verify if all the attribute to monitor of a protocol have been set. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DatasBuffer(MonitoringClient client)
client - The main class of the client.| Method Detail |
|---|
public boolean addAttributeToMonitor(java.lang.String attribute,
java.util.Properties params)
params - The parameters to monitor the attribute.attribute - The name of the attibute to monitor.
public Data removeAttributeToMonitor(java.lang.String attribute,
java.util.Properties params)
attribute - The name of the attibute to monitor.params - The parameters to monitor the attribute.
public java.util.Vector<Data> getAttributesToMonitor(java.lang.String protocol)
protocol - The name of the protocol.
public boolean containsData(java.lang.String attribute,
java.util.Properties parameters)
attribute - The name of the attibute monitored.parameters - The parameters to monitor the attribute.
public Data getData(java.lang.String attribute,
java.util.Properties parameters)
attribute - The name of the attibute monitored.parameters - The parameters to monitor the attribute.
public void setData(Data d,
java.lang.String value,
int timer)
d - The data to setvalue - The value of the attribute monitored.timer - The number of milliseconds beetween the launch of the
request and the creation of the data.public void verifyDatas(java.lang.String protocol)
protocol - The name of the protocol used to retrieve the datas.public void timeoutExpired()
public void protocolError(java.lang.String protocol,
java.lang.String message)
protocol - The name of the protocol.message - The message of the error.
public void dataError(Data d,
java.lang.String message)
d - The data who has the error.message - The message of the error.public java.util.Vector<Data> getAllDatas()
public java.util.Date getDate()
public DatasBuffer clone()
clone in class java.lang.Objectpublic boolean isFull()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||