|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.echarts.monitor.PrettyPrintFormatter
public class PrettyPrintFormatter
Class defining method for portraying a monitor event in multi-line, human-readable format.
Field Summary | |
---|---|
protected static java.text.SimpleDateFormat |
EVENT_DATE_FORMAT
Date format used for event date stamps. |
protected static java.lang.String |
LINESEP
|
Constructor Summary | |
---|---|
PrettyPrintFormatter()
|
Method Summary | |
---|---|
boolean |
multiLineLocalState(boolean multiLineLocalState)
When set, local machine state is printed one state per line. |
boolean |
packageNames(boolean packageNames)
When set, package name prefixes are included in class name values in machine debug events e.g. |
java.lang.String |
portray(MachineMonitorEvent event)
When method accepted by monitor's event filter, this method called to pretty print the event. |
java.lang.String |
portrayClass(java.lang.String className)
References packageNames flag to determine how class names should be portrayed. |
java.lang.StringBuffer |
portrayInfoEvent(InfoEvent event)
Pretty print an info event. |
java.lang.StringBuffer |
portrayLocalState(java.lang.String localState)
References multiLineLocalState flag to determine how local state should be portrayed. |
java.lang.StringBuffer |
portrayMachineLifecycleEvent(MachineLifecycleEvent event)
Pretty print a machine lifecycle event. |
java.lang.StringBuffer |
portrayMachineStateEvent(MachineStateEvent event)
Pretty print a machine state event. |
java.lang.StringBuffer |
portrayMessagelessTransitionEvent(MessagelessTransitionEvent event)
Pretty print a messageless transition event. |
java.lang.StringBuffer |
portrayMessageTransitionEvent(MessageTransitionEvent event)
Pretty print a message transition event. |
java.lang.StringBuffer |
portrayOtherEvent(MachineMonitorEvent event)
Pretty print a non-ECharts event. |
java.lang.StringBuffer |
portrayOtherEventProperties(MachineMonitorEvent event,
java.lang.String[] props)
Pretty print non-ECharts properties associated with a non-ECharts event. |
java.lang.StringBuffer |
portrayState(java.lang.String stateString)
Pretty print a machine state string. |
java.lang.StringBuffer |
portrayStateIndent(int depth)
Return padding string to indent states at specified depth. |
java.lang.String |
portrayStatePath(java.lang.String statePath)
Pretty print a machine state path string. |
boolean |
statePathMachineNames(boolean statePathMachineNames)
When set, external machine class names prefix their associated state names in the portrayal of machine state paths. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final java.lang.String LINESEP
protected static final java.text.SimpleDateFormat EVENT_DATE_FORMAT
Constructor Detail |
---|
public PrettyPrintFormatter()
Method Detail |
---|
public final boolean packageNames(boolean packageNames)
public final boolean statePathMachineNames(boolean statePathMachineNames)
public final boolean multiLineLocalState(boolean multiLineLocalState)
public java.lang.String portray(MachineMonitorEvent event)
portray
in interface PrintStreamFormatter
public java.lang.StringBuffer portrayMessagelessTransitionEvent(MessagelessTransitionEvent event)
public java.lang.StringBuffer portrayMessageTransitionEvent(MessageTransitionEvent event)
public java.lang.StringBuffer portrayMachineStateEvent(MachineStateEvent event)
public java.lang.StringBuffer portrayMachineLifecycleEvent(MachineLifecycleEvent event)
public java.lang.StringBuffer portrayInfoEvent(InfoEvent event)
public java.lang.StringBuffer portrayOtherEvent(MachineMonitorEvent event)
public java.lang.StringBuffer portrayOtherEventProperties(MachineMonitorEvent event, java.lang.String[] props)
public java.lang.StringBuffer portrayState(java.lang.String stateString)
public java.lang.StringBuffer portrayStateIndent(int depth)
public java.lang.StringBuffer portrayLocalState(java.lang.String localState)
public java.lang.String portrayStatePath(java.lang.String statePath)
public java.lang.String portrayClass(java.lang.String className)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |