|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.synapse.endpoints.EndpointView
public class EndpointView
This class is the metrics collector and JMX control point for Endpoints
| Constructor Summary | |
|---|---|
EndpointView(String endpointName,
Endpoint endpoint)
Create a new MBean to manage the given endpoint |
|
| Method Summary | |
|---|---|
void |
destroy()
|
int |
getActiveChildren()
Return the number of active children for this endpoint |
double |
getAvgSizeReceived()
|
double |
getAvgSizeSent()
|
long |
getBytesReceived()
Number of bytes received, receiving replies |
long |
getBytesSent()
Number of bytes sent |
int |
getConsecutiveEndpointSuspensions()
|
int |
getConsecutiveEndpointTimeouts()
|
long |
getFaultsReceiving()
Number of faults, receiving replies |
long |
getFaultsSending()
Number of faults sending |
int |
getLast15MinuteEndpointSuspensions()
|
int |
getLast15MinuteEndpointTimeouts()
|
int |
getLast5MinuteEndpointSuspensions()
|
int |
getLast5MinuteEndpointTimeouts()
|
int |
getLastMinuteEndpointSuspensions()
|
int |
getLastMinuteEndpointTimeouts()
|
long |
getLastResetTime()
Time when statistics was last reset for this leaf endpoint |
long |
getMaxSizeReceived()
|
long |
getMaxSizeSent()
|
long |
getMessagesReceived()
Number of messages (ie replies) received |
long |
getMessagesSent()
Number of messages sent |
long |
getMetricsWindow()
Time since statistics was last reset for this leaf endpoint |
long |
getMinSizeReceived()
|
long |
getMinSizeSent()
|
int |
getReadyChildren()
Return the number of ready children for this endpoint |
Map<Integer,Long> |
getReceivingFaultTable()
A Map of receive faults with the error code and count |
Map<Integer,Long> |
getResponseCodeTable()
A Map of response codes and counts |
Map<Integer,Long> |
getSendingFaultTable()
A Map of send faults with the error code and count |
Date |
getSuspendedAt()
|
Date |
getTimedoutAt()
|
long |
getTimeoutsReceiving()
Number of timeouts, receiving replies |
long |
getTimeoutsSending()
Number of timeouts, sending |
int |
getTotalChildren()
Return number of children for this endpoint |
int |
getTotalEndpointSuspensions()
|
int |
getTotalEndpointTimeouts()
|
void |
incrementBytesReceived(long size)
|
void |
incrementBytesSent(long size)
|
void |
incrementFaultsReceiving(int errorCode)
|
void |
incrementFaultsSending(int errorCode)
|
void |
incrementMessagesReceived()
|
void |
incrementMessagesSent()
|
void |
incrementSuspensions()
|
void |
incrementTimeouts()
|
void |
incrementTimeoutsReceiving()
|
void |
incrementTimeoutsSending()
|
boolean |
isActive()
Is a leaf level endpoint active? For a group endpoint this means at least one is active |
boolean |
isEndpointInState(int state)
Is the endpoint considered to be in the given state? |
boolean |
isSuspended()
Is this leaf level endpoint in suspend state? |
boolean |
isSwitchedOff()
Is this leaf level endpoint switched off? |
boolean |
isTimedout()
Is this leaf level endpoint in timeout state? For a group, has all endpoints timed out? |
void |
notifyReceivedMessageSize(long size)
|
void |
notifySentMessageSize(long size)
|
void |
reportReceivingFault(int errorCode)
Report a/an [typically non-fatal] error to the receiving fault table, without incrementing the receivingFault count |
void |
reportResponseCode(int respCode)
Collect response code statistics |
void |
reportSendingFault(int errorCode)
Report a/an [typically non-fatal] error to the sending fault table, without incrementing the sendingFault count e.g. |
void |
resetConsecutiveSuspensions()
|
void |
resetConsecutiveTimeouts()
|
void |
resetStatistics()
|
void |
setSuspendedAt(Date suspendedAt)
|
void |
setTimedoutAt(Date timedoutAt)
|
void |
switchOff()
Switch off a leaf endpoint, or all endpoints of a group - for maintenence |
void |
switchOn()
Switch on a leaf endpoint, or all endpoints on a group - from maintenence |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EndpointView(String endpointName,
Endpoint endpoint)
endpointName - the name of the endpointendpoint - the actual endpoint| Method Detail |
|---|
public void destroy()
public void switchOn()
throws Exception
switchOn in interface EndpointViewMBeanException
public void switchOff()
throws Exception
switchOff in interface EndpointViewMBeanException
public boolean isActive()
throws Exception
isActive in interface EndpointViewMBeanException
public boolean isTimedout()
throws Exception
isTimedout in interface EndpointViewMBeanException
public boolean isSuspended()
throws Exception
isSuspended in interface EndpointViewMBeanException
public boolean isSwitchedOff()
throws Exception
isSwitchedOff in interface EndpointViewMBeanException
public int getTotalChildren()
throws Exception
getTotalChildren in interface EndpointViewMBeanException
public int getActiveChildren()
throws Exception
getActiveChildren in interface EndpointViewMBeanException
public int getReadyChildren()
throws Exception
getReadyChildren in interface EndpointViewMBeanExceptionpublic long getLastResetTime()
getLastResetTime in interface EndpointViewMBeanpublic long getMetricsWindow()
getMetricsWindow in interface EndpointViewMBeanpublic Map<Integer,Long> getReceivingFaultTable()
getReceivingFaultTable in interface EndpointViewMBeanpublic Map<Integer,Long> getSendingFaultTable()
getSendingFaultTable in interface EndpointViewMBeanpublic Map<Integer,Long> getResponseCodeTable()
getResponseCodeTable in interface EndpointViewMBeanpublic Date getSuspendedAt()
getSuspendedAt in interface EndpointViewMBeanpublic void setSuspendedAt(Date suspendedAt)
public Date getTimedoutAt()
getTimedoutAt in interface EndpointViewMBeanpublic void setTimedoutAt(Date timedoutAt)
public int getConsecutiveEndpointSuspensions()
getConsecutiveEndpointSuspensions in interface EndpointViewMBeanpublic void incrementSuspensions()
public void resetConsecutiveSuspensions()
public int getConsecutiveEndpointTimeouts()
getConsecutiveEndpointTimeouts in interface EndpointViewMBeanpublic void incrementTimeouts()
public void resetConsecutiveTimeouts()
public int getTotalEndpointSuspensions()
getTotalEndpointSuspensions in interface EndpointViewMBeanpublic int getTotalEndpointTimeouts()
getTotalEndpointTimeouts in interface EndpointViewMBeanpublic int getLastMinuteEndpointSuspensions()
getLastMinuteEndpointSuspensions in interface EndpointViewMBeanpublic int getLast5MinuteEndpointSuspensions()
getLast5MinuteEndpointSuspensions in interface EndpointViewMBeanpublic int getLast15MinuteEndpointSuspensions()
getLast15MinuteEndpointSuspensions in interface EndpointViewMBeanpublic int getLastMinuteEndpointTimeouts()
getLastMinuteEndpointTimeouts in interface EndpointViewMBeanpublic int getLast5MinuteEndpointTimeouts()
getLast5MinuteEndpointTimeouts in interface EndpointViewMBeanpublic int getLast15MinuteEndpointTimeouts()
getLast15MinuteEndpointTimeouts in interface EndpointViewMBeanpublic long getMessagesReceived()
getMessagesReceived in interface EndpointViewMBeanpublic long getFaultsReceiving()
getFaultsReceiving in interface EndpointViewMBeanpublic long getTimeoutsReceiving()
getTimeoutsReceiving in interface EndpointViewMBeanpublic long getBytesReceived()
getBytesReceived in interface EndpointViewMBeanpublic long getMessagesSent()
getMessagesSent in interface EndpointViewMBeanpublic long getFaultsSending()
getFaultsSending in interface EndpointViewMBeanpublic long getTimeoutsSending()
getTimeoutsSending in interface EndpointViewMBeanpublic long getBytesSent()
getBytesSent in interface EndpointViewMBeanpublic long getMinSizeReceived()
getMinSizeReceived in interface EndpointViewMBeanpublic long getMaxSizeReceived()
getMaxSizeReceived in interface EndpointViewMBeanpublic long getMinSizeSent()
getMinSizeSent in interface EndpointViewMBeanpublic long getMaxSizeSent()
getMaxSizeSent in interface EndpointViewMBeanpublic double getAvgSizeReceived()
getAvgSizeReceived in interface EndpointViewMBeanpublic double getAvgSizeSent()
getAvgSizeSent in interface EndpointViewMBeanpublic void resetStatistics()
resetStatistics in interface EndpointViewMBeanpublic void incrementMessagesReceived()
incrementMessagesReceived in interface org.apache.axis2.transport.base.MessageLevelMetricsCollectorpublic void incrementFaultsReceiving(int errorCode)
incrementFaultsReceiving in interface org.apache.axis2.transport.base.MessageLevelMetricsCollectorpublic void incrementTimeoutsReceiving()
incrementTimeoutsReceiving in interface org.apache.axis2.transport.base.MessageLevelMetricsCollectorpublic void incrementBytesReceived(long size)
incrementBytesReceived in interface org.apache.axis2.transport.base.MessageLevelMetricsCollectorpublic void incrementMessagesSent()
incrementMessagesSent in interface org.apache.axis2.transport.base.MessageLevelMetricsCollectorpublic void incrementFaultsSending(int errorCode)
incrementFaultsSending in interface org.apache.axis2.transport.base.MessageLevelMetricsCollectorpublic void incrementTimeoutsSending()
incrementTimeoutsSending in interface org.apache.axis2.transport.base.MessageLevelMetricsCollectorpublic void incrementBytesSent(long size)
incrementBytesSent in interface org.apache.axis2.transport.base.MessageLevelMetricsCollectorpublic void notifyReceivedMessageSize(long size)
notifyReceivedMessageSize in interface org.apache.axis2.transport.base.MessageLevelMetricsCollectorpublic void notifySentMessageSize(long size)
notifySentMessageSize in interface org.apache.axis2.transport.base.MessageLevelMetricsCollectorpublic void reportSendingFault(int errorCode)
reportSendingFault in interface org.apache.axis2.transport.base.MessageLevelMetricsCollectorerrorCode - the code to reportpublic void reportReceivingFault(int errorCode)
reportReceivingFault in interface org.apache.axis2.transport.base.MessageLevelMetricsCollectorerrorCode - the code to reportpublic void reportResponseCode(int respCode)
reportResponseCode in interface org.apache.axis2.transport.base.MessageLevelMetricsCollectorrespCode - response codepublic boolean isEndpointInState(int state)
state - the state to consider
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||