|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.paho.client.mqttv3.util.Debug
public class Debug
Utility to help debug problems with the Paho MQTT client Once initialised a call to dumpClientDebug will force any memory trace together with pertinent client and system state to the main log facility. No client wide lock is taken when the dump is progress. This means the set of client state may not be consistent as the client can still be processing work while the dump is in progress.
Constructor Summary | |
---|---|
Debug(String clientID,
ClientComms comms)
Set the debug facility up for a specific client |
Method Summary | |
---|---|
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 String |
dumpProperties(Properties props,
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 String |
left(String s,
int width,
char fillChar)
Left justify a string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Debug(String clientID, ClientComms comms)
clientID
- the ID of the client being debuggedcomms
- the ClientComms object of the client being debuggedMethod Detail |
---|
public 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 String dumpProperties(Properties props, String name)
public static String left(String s, int width, char fillChar)
s
- the string to justifywidth
- the field width to justify withinfillChar
- the character to fill with
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |