Package org.jgroups
Class JChannelProbeHandler
java.lang.Object
org.jgroups.JChannelProbeHandler
- All Implemented Interfaces:
DiagnosticsHandler.ProbeHandler
- Direct Known Subclasses:
NonReflectiveProbeHandler
- Since:
- 4.0
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static voidDumps the attributes and their values of _all_ protocols in a stackdumpAttrsSelectedProtocol(String protocol_name, List<String> attrs) Dumps attributes and their values of a given protocol.protected static Stringenable(int type, boolean flag) protected MethodfindMethod(Protocol prot, String method_name, String[] args) protected voidhandleAttrWrite(String protocol_name, String attr_name, String attr_value) protected voidprotected voidhandleOperation(Map<String, String> map, String operation) Invokes an operation and puts the return value into maphandleProbe(String... keys) Handles a probe.protected static StringlistAllOperations(Collection<?> objects) protected voidlistOperations(Map<String, String> map, String key) protected JChannelString[]Returns a list of supported keys
-
Field Details
-
ch
-
log
-
-
Constructor Details
-
JChannelProbeHandler
-
-
Method Details
-
handleProbe
Description copied from interface:DiagnosticsHandler.ProbeHandlerHandles a probe. For each key that is handled, the key and its result should be in the returned map.- Specified by:
handleProbein interfaceDiagnosticsHandler.ProbeHandler- Returns:
- A map of keys and values. A null return value is permissible.
-
supportedKeys
Description copied from interface:DiagnosticsHandler.ProbeHandlerReturns a list of supported keys- Specified by:
supportedKeysin interfaceDiagnosticsHandler.ProbeHandler
-
enable
-
resetAllStats
-
dumpAttrsAllProtocols
Dumps the attributes and their values of _all_ protocols in a stack- Returns:
- A map of protocol names as keys and maps (of attribute names and values) as values
-
dumpAttrsSelectedProtocol
protected Map<String,Map<String, dumpAttrsSelectedProtocolObject>> (String protocol_name, List<String> attrs) Dumps attributes and their values of a given protocol.- Parameters:
protocol_name- The name of the protocolattrs- A list of attributes that need to be returned. If null, all attributes of the given protocol will be returned- Returns:
- A map of protocol names as keys and maps (of attribute names and values) as values
-
handleJmx
-
listOperations
-
listAllOperations
-
handleOperation
Invokes an operation and puts the return value into map- Parameters:
map-operation- Protocol.OperationName[args], e.g. STABLE.foo[arg1 arg2 arg3]- Throws:
Exception
-
findMethod
- Throws:
Exception
-
handleAttrWrite
protected void handleAttrWrite(String protocol_name, String attr_name, String attr_value) throws Exception - Throws:
Exception
-
convert
-