public class PythonProxy extends Service
exec(String, Object[])
method.
FIXME - although this is a great idea & implementation, something more general needs to exist in order
to interoperate between processes - it will be coming as a network overlay & addressing system in the
next releaseModifier and Type | Class and Description |
---|---|
class |
PythonProxy.InputQueueThread |
Modifier and Type | Field and Description |
---|---|
int |
retTimeout |
boolean |
startNativeService |
boolean |
startTerminal |
static WebGui |
webgui |
cfgDir, dnaPool, MESSAGE_RECORDING_FORMAT_BINARY, MESSAGE_RECORDING_FORMAT_XML
Constructor and Description |
---|
PythonProxy(java.lang.String n) |
Modifier and Type | Method and Description |
---|---|
static ServiceType |
addMetaData(ServiceType meta) |
java.lang.Object |
exec(Message msg)
Execute Message msg on the native service this class represents.
|
java.lang.Object |
exec(java.lang.String method,
java.lang.Object[] dat)
Execute method with params dat on the native service this class represents.
|
static org.slf4j.Logger |
getLogger() |
static ServiceType |
getMetaData()
This static method returns all the details of the class without it having
to be constructed.
|
void |
handshake()
This is called by the native service to start the handshake sequence.
|
void |
log(java.lang.String txt) |
static void |
main(java.lang.String[] args) |
boolean |
preProcessHook(Message msg)
preProcessHook is used to intercept messages and process or route them
before being processed/invoked in the Service.
|
void |
returnData(java.lang.Object obj) |
void |
startNativeService()
This is used to start the native service.
|
void |
startService() |
addListener, addListener, addTask, addTask, addTask, addTaskOneShot, allowDisplay, allowDisplay, attach, attach, broadcastState, buildDna, buildDna, buildDnaKeys, buildDnaNames, clearLastError, close, containsTask, copyShallowFrom, createPeer, createPeer, createRootReserved, detach, detach, detach, echoHeartbeat, error, error, error, getAttached, getCfgDir, getComm, getDeclaredMethodNames, getDeclaredMethods, getDescription, getDna, getDnaString, getHostName, getInbox, getInstanceId, getIntanceName, getInterfaceSet, getLastError, getMessageSet, getMetaData, getMethodMap, getMethodNames, getMethods, getMethodToolTip, getMsg, getName, getNotifyList, getNotifyListKeySet, getOutbox, getPeerKey, getPeerName, getServiceResourceFile, getSimpleName, getTasks, getThisThread, getType, hasError, hasPeers, help, help, in, info, info, invoke, invoke, invoke, invokeOn, isAttached, isAttached, isLocal, isReady, isRunning, isRuntime, isVirtual, load, load, logTimeEnable, mergeDna, mergeDna, mergePeerDna, movePeerDna, out, out, preRoutingHook, publishError, publishQueueStats, publishState, publishStats, publishStatus, purgeTask, purgeTasks, releasePeers, releaseService, removeAllListeners, removeListener, requiresSecurity, reserve, reserve, reserveRoot, reserveRoot, reserveRootAs, run, save, save, save, send, send, send, send, sendBlocking, sendBlocking, sendBlocking, sendBlocking, sendPeer, setInstanceId, setName, setPeer, setSecurityProvider, setState, setThisThread, setVirtual, sleep, stackToString, startHeartbeat, startPeer, startPeer, startRecording, stopHeartbeat, stopMsgRecording, stopService, subscribe, subscribe, subscribe, toString, unsubscribe, unsubscribe, unsubscribe, updateStats, warn, warn
public static WebGui webgui
public boolean startNativeService
public boolean startTerminal
public int retTimeout
public boolean preProcessHook(Message msg)
preProcessHook
in class Service
Service.preProcessHook(org.myrobotlab.framework.Message)
public static ServiceType addMetaData(ServiceType meta)
public static ServiceType getMetaData()
public void startService()
startService
in interface ServiceInterface
startService
in class Service
public java.lang.Object exec(java.lang.String method, java.lang.Object[] dat)
public java.lang.Object exec(Message msg)
public void returnData(java.lang.Object obj)
public void log(java.lang.String txt)
public void startNativeService()
public void handshake()
public static org.slf4j.Logger getLogger()
public static void main(java.lang.String[] args)