public class Debug
extends java.lang.Object
Constructor and Description |
---|
Debug(java.lang.String clientID,
ClientComms comms)
Set the debug facility up for a specific client
|
Modifier and Type | Method and Description |
---|---|
void |
dumpBaseDebug()
Dump of JVM wide debug info.
|
void |
dumpClientComms()
Dump interesting variables from ClientComms
|
void |
dumpClientDebug()
Dump maximum debug info.
|
void |
dumpClientState()
Dump interesting variables from ClientState
|
void |
dumpConOptions()
Dump Connection options
|
protected void |
dumpMemoryTrace()
If memory trace is being used a request is made to push it to the target handler.
|
static java.lang.String |
dumpProperties(java.util.Properties props,
java.lang.String name)
Return a set of properties as a formatted string
|
void |
dumpSystemProperties()
Dump the current set of system.properties to a log record
|
protected void |
dumpVersion()
Dump information that show the version of the MQTT client being used.
|
static java.lang.String |
left(java.lang.String s,
int width,
char fillChar)
Left justify a string.
|
public Debug(java.lang.String clientID, ClientComms comms)
clientID
- the ID of the client being debuggedcomms
- the ClientComms object of the client being debuggedpublic void dumpClientDebug()
public void dumpBaseDebug()
protected void dumpMemoryTrace()
protected void dumpVersion()
public void dumpSystemProperties()
public void dumpClientState()
public void dumpClientComms()
public void dumpConOptions()
public static java.lang.String dumpProperties(java.util.Properties props, java.lang.String name)
public static java.lang.String left(java.lang.String s, int width, char fillChar)
s
- the string to justifywidth
- the field width to justify withinfillChar
- the character to fill with