|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opends.testqa.monitoringclient.ErrorsBuffer
public class ErrorsBuffer
Buffer to store the errors who occured while the monitoring client is running.
| Constructor Summary | |
|---|---|
ErrorsBuffer(MonitoringClient client)
Construct a ErrorsBuffer object. |
|
| Method Summary | |
|---|---|
boolean |
addError(java.lang.String protocol,
java.lang.String message,
java.util.Date date)
Add a general error in the buffer and notify the consumers. |
boolean |
addError(java.lang.String protocol,
java.lang.String attribute,
java.lang.String message)
Add an error in the buffer and notify the consumers. |
boolean |
addError(java.lang.String protocol,
java.lang.String attribute,
java.lang.String message,
java.util.Date date)
Add an error in the buffer and notify the consumers. |
ErrorsBuffer |
clone()
Clone the ErrorsBuffer and clear it if all the consumers have cloned it. |
boolean |
isEmpty()
Test if there is at least one error in the buffer. |
Error |
removeFirstError()
Return the first error in the buffer and remove it. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ErrorsBuffer(MonitoringClient client)
client - The main class of the client.| Method Detail |
|---|
public boolean addError(java.lang.String protocol,
java.lang.String message,
java.util.Date date)
protocol - The name of the protocol.message - The message of the error.date - The date of the error.
public boolean addError(java.lang.String protocol,
java.lang.String attribute,
java.lang.String message)
protocol - The name of the protocol.attribute - The name of the attribute monitored.message - The message of the error.
public boolean addError(java.lang.String protocol,
java.lang.String attribute,
java.lang.String message,
java.util.Date date)
protocol - The name of the protocol.attribute - The name of the attribute monitored.message - The message of the error.date - The date of the error.
public boolean isEmpty()
public Error removeFirstError()
public ErrorsBuffer clone()
clone in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||