public class RemoteInterface extends MINAEndpoint implements IInstrument, IParameterized
Modifier and Type | Field and Description |
---|---|
protected IBreakpointListener |
_breakpointListener |
protected RemoteIOHandler |
_handler |
protected IModelListener |
_modelListener |
protected IACTRRuntimeListener |
_runtimeListener |
static java.lang.String |
EXECUTOR_PARAM |
static java.lang.String |
SEND_MODEL_ON_SUSPEND_PARAM |
ADDRESS, CRED_CLASS, CREDENTAILS, PROTOCOL_CLASS, SERVICE_CLASS, TRANSPORT_CLASS
Constructor and Description |
---|
RemoteInterface() |
Modifier and Type | Method and Description |
---|---|
protected void |
connect() |
protected void |
disconnect(boolean force)
try to establish the connection
|
void |
disconnectSafe(boolean force)
safely disconnect asynchronously..
|
static RemoteInterface |
getActiveRemoteInterface() |
java.util.concurrent.Executor |
getExecutor() |
RemoteIOHandler |
getHandler() |
BaseIOHandler |
getIOHandler()
return the io handler that handles all the communications
|
java.lang.String |
getParameter(java.lang.String key)
return parameter value - null if not defined.
|
java.util.Collection<java.lang.String> |
getPossibleParameters()
Return all parameters that can be read
|
void |
initialize()
perform any dependent initialization.
|
void |
install(IModel model)
Description of the Method
|
protected static void |
setActiveRemoteInterface(RemoteInterface remoteInterface) |
void |
setExecutor(java.util.concurrent.Executor executor) |
void |
setParameter(java.lang.String key,
java.lang.String value)
Set the named parameter
|
void |
setSendOnSuspend(boolean send) |
void |
uninstall(IModel model)
Description of the Method
|
boolean |
willSendOnSuspend() |
disconnect, getActualAddress, getActualCredentials, getClass, getExecutorService, getSetableParameters, instance, setAddressInfo, setCredentialInformation, setCredentialsClass, setExecutorService, setProtocol, setService, setTransportProvider
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getSetableParameters
public static final java.lang.String EXECUTOR_PARAM
public static final java.lang.String SEND_MODEL_ON_SUSPEND_PARAM
protected RemoteIOHandler _handler
protected IACTRRuntimeListener _runtimeListener
protected IBreakpointListener _breakpointListener
protected IModelListener _modelListener
public static RemoteInterface getActiveRemoteInterface()
protected static void setActiveRemoteInterface(RemoteInterface remoteInterface)
public RemoteIOHandler getHandler()
public BaseIOHandler getIOHandler()
MINAEndpoint
getIOHandler
in class MINAEndpoint
public java.util.concurrent.Executor getExecutor()
public void setExecutor(java.util.concurrent.Executor executor)
public void initialize()
IInstrument
initialize
in interface IInitializable
initialize
in interface IInstrument
IInstrument.initialize()
public void install(IModel model)
IInstrument
install
in interface IInstallable
install
in interface IInstrument
model
- Description of the ParameterIInstrument.install(org.jactr.core.model.IModel)
public void uninstall(IModel model)
IInstrument
uninstall
in interface IInstallable
uninstall
in interface IInstrument
model
- Description of the ParameterIInstrument.uninstall(org.jactr.core.model.IModel)
protected void disconnect(boolean force) throws java.lang.Exception
MINAEndpoint
disconnect
in class MINAEndpoint
java.lang.Exception
public void disconnectSafe(boolean force)
protected void connect() throws java.lang.Exception
connect
in class MINAEndpoint
java.lang.Exception
public java.util.Collection<java.lang.String> getPossibleParameters()
IParameterized
getPossibleParameters
in interface IParameterized
getPossibleParameters
in class MINAEndpoint
IParameterized.getPossibleParameters()
public java.lang.String getParameter(java.lang.String key)
IParameterized
getParameter
in interface IParameterized
getParameter
in class MINAEndpoint
key
- Description of the ParameterIParameterized.getParameter(java.lang.String)
public void setParameter(java.lang.String key, java.lang.String value)
IParameterized
setParameter
in interface IParameterized
setParameter
in class MINAEndpoint
IParameterized.setParameter(java.lang.String,
java.lang.String)
public boolean willSendOnSuspend()
public void setSendOnSuspend(boolean send)