|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.echarts.servlet.sip.JavaToEChartsMachine
public abstract class JavaToEChartsMachine
Abstract class that can be subclassed for the purposes of providing
an interface to an ECharts for SIP Servlets machine from its
external environment. An interface that subclasses this class has
access to a machine's ECharts monitor by way of putEvent()
. It also has the option of overriding this class's
init()
method
to initialize the instance. This class also provides a factory
method to create an interface instance and a convenience method to
create a new feature box and provide it with a EChartsMachineToJava
instance.
Constructor Summary | |
---|---|
JavaToEChartsMachine()
|
Method Summary | ||
---|---|---|
static
|
getInstance(SipApplicationSession appSession)
Gets existing JavaToEChartsMachine instance for specified appSession, or creates a new one if none currently exists. |
|
static
|
getInstance(java.lang.String uid)
Gets existing JavaToEChartsMachine instance for specified appSession id, or creates a new one if no instance currently exists. |
|
protected void |
init(TransitionMachine machine)
This method is called immediately after new JavaToEChartsMachine instance is created. |
|
protected void |
putEvent(MachineMonitorEvent event)
Put an event to the machine's monitor. |
|
protected void |
setBox(FeatureBox box)
Initializes this instance to use the putEvent() method if an
instance of this class is created via a direct call to a
constructor, rather than indeirectly via getInstance() . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JavaToEChartsMachine()
Method Detail |
---|
public static final <T extends JavaToEChartsMachine> T getInstance(java.lang.String uid) throws java.lang.Exception
sasId
- the SIP application session ID associated with the
JavaToEChartsMachine instance to be created
java.lang.Exception
- if no application session is associated with specified sasIdpublic static final <T extends JavaToEChartsMachine> T getInstance(SipApplicationSession appSession) throws java.lang.Exception
appSession
- the SIP application session associated with
the JavaToEChartsMachine instance to be created
java.lang.Exception
protected void setBox(FeatureBox box)
putEvent()
method if an
instance of this class is created via a direct call to a
constructor, rather than indeirectly via getInstance()
. There is no
need to use this method if this instance is created the usual
way via a call to getInstance()
since the initialization will occur
automatically.
box
- FeatureBox instance associated with this interface
instance.protected void putEvent(MachineMonitorEvent event)
event
- the event to put to the monitorprotected void init(TransitionMachine machine) throws java.lang.Exception
machine
- application machine instance associated with
this instance's SIP application session
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |