Class RemoteServerFactory
java.lang.Object
de.mid.innovator.m2msdk.model.remote.RemoteServerFactory
- All Implemented Interfaces:
FactoryInterface,RemoteProcessInterface,Remote
This factory manages the ports to be used by the client.
The factory also creates new servers via the remote host.
The factory itself has to be started manually.
- Version:
- 11.4.1
- Author:
- jmback
-
Constructor Summary
ConstructorsConstructorDescriptionRemoteServerFactory(SessionInterface iSession, RemoteHost iHost, String[] iArgs) Construct the factory. -
Method Summary
-
Constructor Details
-
RemoteServerFactory
Construct the factory.- Parameters:
iSession-iHost- remote hostiArgs- arguments of Java application
-
-
Method Details
-
getPortOfSession
Description copied from interface:FactoryInterfaceGet a new session from factory.- Specified by:
getPortOfSessionin interfaceFactoryInterface- Returns:
- port number for new session -1 if no session available
-
getName
Description copied from interface:RemoteProcessInterfaceGet name of server process- Specified by:
getNamein interfaceRemoteProcessInterface- Returns:
- name as string
-
getState
Description copied from interface:RemoteProcessInterfaceGet state of server process- Specified by:
getStatein interfaceRemoteProcessInterface- Returns:
- state of process
-
abort
public void abort()Description copied from interface:RemoteProcessInterfaceAbort a process. true if process has aborted- Specified by:
abortin interfaceRemoteProcessInterface
-
isRunning
public boolean isRunning() -
use
Description copied from interface:RemoteProcessInterfaceUse this process.- Specified by:
usein interfaceRemoteProcessInterface- Throws:
RemoteException
-
waitProcess
public void waitProcess()Wait for server.
-