|
Oracle® On Track Communication SDK Documentation Release 1(1.0) E20955-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
waggle.core.api.XAPIPackage
public final class XAPIPackage
This is the API call package.
Constructor Summary | |
---|---|
XAPIPackage() Create an empty XAPIPackage. |
|
XAPIPackage(String moduleName, String methodName, Object[] arguments) Create a populated XAPIPackage. |
|
XAPIPackage(String moduleName, String methodName, Object[] arguments, String traceID) Create a populated XAPIPackage. |
Method Summary | ||
---|---|---|
Object |
execute(boolean remote) Execute this XAPIPackage call. |
|
Object[] |
getMethodArguments() Return the method arguments. |
|
String |
getMethodName() Returns the method name. |
|
String |
getModuleName() Returns the module name. |
|
int |
getNMethodArguments() Return the number of method arguments. |
|
static String |
getThreadTraceID() Get the thread's trace ID value. |
|
String |
getTraceID() Return any trace ID. |
|
boolean |
isModuleLocal() Determine if the specified module name is registered locally. |
|
waggle.core.serializer.XJSONSerializer |
serializeToJSON() Serialize an XAPIPackage as JSON. |
|
String |
serializeToJSONString() Serialize an XAPIPackage as JSON String. |
|
waggle.core.serializer.XXMLSerializer |
serializeToXML() Serialize an XAPIPackage as XML. |
|
String |
serializeToXMLString() Serialize an XAPIPackage as XML String. |
|
void |
setMethodInfo(String moduleName, String methodName, Object[] arguments, String traceID) Set the call information into an addressed XAPIPackage. |
|
static void |
setThreadTraceID(String traceID) Set the thread's trace ID value. |
|
|
stuff(Class<T> interfaceClass) Stuff an XAPIPackage. |
|
String |
toString() The toString() result should look like a method call. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public XAPIPackage()
public XAPIPackage(String moduleName, String methodName, Object[] arguments)
moduleName
- The module name.methodName
- The method name.arguments
- The arguments.public XAPIPackage(String moduleName, String methodName, Object[] arguments, String traceID)
moduleName
- The module name.methodName
- The method name.arguments
- The arguments.traceID
- Any trace ID. May be null.Method Detail |
---|
public void setMethodInfo(String moduleName, String methodName, Object[] arguments, String traceID)
moduleName
- The Module.methodName
- The Method.arguments
- The Arguments.traceID
- Any trace ID. May be null.public String getModuleName()
public String getMethodName()
public Object[] getMethodArguments()
public int getNMethodArguments()
public String getTraceID()
public boolean isModuleLocal()
public Object execute(boolean remote) throws Throwable
remote
- This execute comes from an remote client.Throwable
- Lots of stuff.public waggle.core.serializer.XXMLSerializer serializeToXML()
public waggle.core.serializer.XJSONSerializer serializeToJSON()
public String serializeToXMLString()
public String serializeToJSONString()
public String toString()
toString
in class Object
public <T extends XAPIInterface> T stuff(Class<T> interfaceClass)
Servers can use this to stuff a package to be sent to a client on a back-channel.
Clients can use this to stuff a package to be sent to a server on a front-channel.
T
- The interface class.interfaceClass
- The interface class.public static String getThreadTraceID()
public static void setThreadTraceID(String traceID)
traceID
- The thread's trace ID value. May be null.
|
Oracle® On Track Communication SDK Documentation Release 1(1.0) E20955-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |