Class JChannelProbeHandler
java.lang.Object
org.jgroups.JChannelProbeHandler
- All Implemented Interfaces:
DiagnosticsHandler.ProbeHandler
- Direct Known Subclasses:
NonReflectiveProbeHandler
An implementation of a
DiagnosticsHandler.ProbeHandler for JChannel- Since:
- 4.0
- Author:
- Bela Ban
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionchannel()voidprotected 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) log()voidprotected JChannelString[]Returns a list of supported keys
-
Field Details
-
ch
-
log
-
-
Constructor Details
-
JChannelProbeHandler
-
-
Method Details
-
channel
-
channel
-
log
-
log
-
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 sring 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
-
dumpAttrsSelectedProtocol
protected Map<String, Map<String,Object>> dumpAttrsSelectedProtocol(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
-
findMethod
-
handleAttrWrite
-
convert
-