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, setLogLevel
public static final java.lang.String DefaultTopicName
public void initialize(org.springframework.extensions.config.ConfigElement params, ServerConfiguration config) throws java.lang.Exception
initialize
in interface DebugInterface
initialize
in class DebugInterfaceBase
params
- ConfigElementconfig
- ServerConfigurationjava.lang.Exception
public void close()
close
in interface DebugInterface
close
in class DebugInterfaceBase
public void debugPrint(java.lang.String str, int level)
debugPrint
in interface DebugInterface
debugPrint
in class DebugInterfaceBase
str
- Stringlevel
- intpublic void debugPrintln(java.lang.String str, int level)
debugPrintln
in interface DebugInterface
debugPrintln
in class DebugInterfaceBase
str
- Stringpublic void debugPrintln(java.lang.Exception ex, int level)
debugPrintln
in interface DebugInterface
debugPrintln
in class DebugInterfaceBase
ex
- Exceptionlevel
- intprotected void logToCluster(java.lang.String str)
str
- Stringpublic void onMessage(DebugClusterMessage msg)
onMessage
in interface com.hazelcast.core.MessageListener
msg
- DebugClusterMessageCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.