public class ClusterDebug extends DebugInterfaceBase implements com.hazelcast.core.MessageListener<DebugClusterMessage>
Send debug output to a cluster logger.
Modifier and Type | Field and Description |
---|---|
static String |
DefaultTopicName |
Constructor and Description |
---|
ClusterDebug()
Class constructor
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the debug output.
|
void |
debugPrint(String str,
int level)
Output a debug string with a specific logging level
|
void |
debugPrintln(Exception ex,
int level)
Output an exception
|
void |
debugPrintln(String str,
int level)
Output a debug string, and a newline, with a specific logging level
|
void |
initialize(org.springframework.extensions.config.ConfigElement params,
ServerConfiguration config)
Initialize the debug interface using the specified named parameters.
|
protected void |
logToCluster(String str)
Send debug output to the cluster
|
void |
onMessage(com.hazelcast.core.Message<DebugClusterMessage> msg)
Cluster topic message listener
|
debugPrint, debugPrintln, getLogLevel, setLogLevel
public static final String DefaultTopicName
public void initialize(org.springframework.extensions.config.ConfigElement params, ServerConfiguration config) throws Exception
initialize
in interface DebugInterface
initialize
in class DebugInterfaceBase
params
- ConfigElementconfig
- ServerConfigurationException
public void close()
close
in interface DebugInterface
close
in class DebugInterfaceBase
public void debugPrint(String str, int level)
debugPrint
in interface DebugInterface
debugPrint
in class DebugInterfaceBase
str
- Stringlevel
- intpublic void debugPrintln(String str, int level)
debugPrintln
in interface DebugInterface
debugPrintln
in class DebugInterfaceBase
str
- Stringpublic void debugPrintln(Exception ex, int level)
debugPrintln
in interface DebugInterface
debugPrintln
in class DebugInterfaceBase
ex
- Exceptionlevel
- intprotected void logToCluster(String str)
str
- Stringpublic void onMessage(com.hazelcast.core.Message<DebugClusterMessage> msg)
onMessage
in interface com.hazelcast.core.MessageListener<DebugClusterMessage>
msg
- DebugClusterMessageCopyright © 2005–2017 Alfresco Software. All rights reserved.