public class ClusterDebug extends DebugInterfaceBase implements com.hazelcast.core.MessageListener
Send debug output to a cluster logger.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DefaultTopicName |
| Constructor and Description |
|---|
ClusterDebug()
Class constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the debug output.
|
void |
debugPrint(java.lang.String str,
int level)
Output a debug string with a specific logging level
|
void |
debugPrintln(java.lang.Exception ex,
int level)
Output an exception
|
void |
debugPrintln(java.lang.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(java.lang.String str)
Send debug output to the cluster
|
void |
onMessage(DebugClusterMessage msg)
Cluster topic message listener
|
debugPrint, debugPrintln, getLogLevel, setLogLevelpublic static final java.lang.String DefaultTopicName
public void initialize(org.springframework.extensions.config.ConfigElement params,
ServerConfiguration config)
throws java.lang.Exception
initialize in interface DebugInterfaceinitialize in class DebugInterfaceBaseparams - ConfigElementconfig - ServerConfigurationjava.lang.Exceptionpublic void close()
close in interface DebugInterfaceclose in class DebugInterfaceBasepublic void debugPrint(java.lang.String str,
int level)
debugPrint in interface DebugInterfacedebugPrint in class DebugInterfaceBasestr - Stringlevel - intpublic void debugPrintln(java.lang.String str,
int level)
debugPrintln in interface DebugInterfacedebugPrintln in class DebugInterfaceBasestr - Stringpublic void debugPrintln(java.lang.Exception ex,
int level)
debugPrintln in interface DebugInterfacedebugPrintln in class DebugInterfaceBaseex - Exceptionlevel - intprotected void logToCluster(java.lang.String str)
str - Stringpublic void onMessage(DebugClusterMessage msg)
onMessage in interface com.hazelcast.core.MessageListenermsg - DebugClusterMessageCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.