Package org.ow2.joram.tools.jmscheck
Interface JMSConnectorStatusMBean
-
- All Known Implementing Classes:
JMSConnectorStatus
public interface JMSConnectorStatusMBean
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetErrorMsg()Returns the error message of the last try.StringgetLastConnectTime()Returns the date of last successful connection.longgetLatencyConnect()Returns the latency of the connection during the last try.longgetLatencyPubSub()Returns the latency of the send/receive during the last try.StringgetName()intgetNbFailures()Returns the total number of failures since starting.intgetNbTry()Returns the total number of try since starting.intgetPeriod()Returns the period of time between 2 checks.intgetStatus()Returns the status of the connector: 0 => RUNNING, >0 => UNREACHABLE.StringgetStatusInfo()intgetTimeOut()Returns the maximum time waiting for connection.voidsetPeriod(int period)Sets the period of time between 2 checks.voidsetTimeOut(int timeOut)Sets the maximum time waiting for connection.
-
-
-
Method Detail
-
getName
String getName()
-
getPeriod
int getPeriod()
Returns the period of time between 2 checks.- Returns:
- the period of time between 2 checks.
-
setPeriod
void setPeriod(int period)
Sets the period of time between 2 checks.- Parameters:
period- the period of time between 2 checks.
-
getTimeOut
int getTimeOut()
Returns the maximum time waiting for connection.- Returns:
- the maximum time waiting for connection.
-
setTimeOut
void setTimeOut(int timeOut)
Sets the maximum time waiting for connection.- Parameters:
timeOut- the maximum time waiting for connection.
-
getStatus
int getStatus()
Returns the status of the connector: 0 => RUNNING, >0 => UNREACHABLE.- Returns:
- the number of unreachable connection
-
getStatusInfo
String getStatusInfo()
-
getNbTry
int getNbTry()
Returns the total number of try since starting.- Returns:
- the total number of try since starting.
-
getNbFailures
int getNbFailures()
Returns the total number of failures since starting.- Returns:
- the total number of failures since starting.
-
getErrorMsg
String getErrorMsg()
Returns the error message of the last try. Returns null if the test is successful.- Returns:
-
getLastConnectTime
String getLastConnectTime()
Returns the date of last successful connection.- Returns:
- the date of last successful connection.
-
getLatencyConnect
long getLatencyConnect()
Returns the latency of the connection during the last try. Returns -1 if the test failed.- Returns:
- the latency of the connection during the last try.
-
getLatencyPubSub
long getLatencyPubSub()
Returns the latency of the send/receive during the last try. Returns -1 if the test failed.- Returns:
- the latency of the send/receive during the last try.
-
-