All Packages Class Hierarchy This Package Previous Next Index
Class tlk.service.JVMServiceActivator
java.lang.Object
|
+----java.lang.Thread
|
+----jclass.SleepingThread
|
+----tlk.service.JVMServiceActivator
- public class JVMServiceActivator
- extends SleepingThread
- implements ServiceActivator
This is a service activator able to use the underlying communication
facilities provided by the JVM system.
NOT IMPLEMENTED YET
Written: Radu Sion
Version: 0.1
Source: JVMServiceActivator.java
Visit
Smart Software
-
JVMServiceActivator()
-
-
downMessageHandler()
- Does nothing.
-
finalize()
-
-
getClient()
- This method provides a reference to an existing, connected,
logged-in Client, able to communicate with other active entities in the
medium.
-
getClient()
-
-
getSandboxProperties()
- This is intended to allow the loaded sandboxrunnable to access any other
properties from within the sandbox environment.
-
getSandboxProperty(Object)
- This accesses a particular property from within the sandbox.
-
newmsg(EntityID, Message)
-
-
registerServiceProvider(ServiceProvider)
-
-
removeServiceProvider(ServiceProvider)
-
-
run()
- This basically maintains the connection and ...
-
setConnectionParams(ServerID, String, String)
- This is a specific method designed to set the internally used
variables, before a call to startServiceActivator.
-
setSandboxProperty(Object, Object)
- This allows the loaded SandboxRunnable to access certain areas from
within the sandbox itself, maybe for providing return data etc.
-
startServiceActivator(Object)
- In this case the parameter is ignored.
-
stopServiceActivator()
-
-
upMessageHandler()
- Does nothing.
JVMServiceActivator
public JVMServiceActivator()
registerServiceProvider
public boolean registerServiceProvider(ServiceProvider sp)
- See Also:
- registerServiceProvider
removeServiceProvider
public void removeServiceProvider(ServiceProvider sp)
- See Also:
- removeServiceProvider
startServiceActivator
public synchronized boolean startServiceActivator(Object obj) throws IOException, SimpleException, FullException
- In this case the parameter is ignored.
- Throws: IOException
- In the case of connection errors
- Throws: SimpleException
- In the case something unusual occured
- Throws: FullException
- In the case the server is full
- See Also:
- startServiceActivator, Client
stopServiceActivator
public synchronized void stopServiceActivator()
- See Also:
- stopServiceActivator
getClient
public Client getClient()
- See Also:
- getClient
run
public void run()
- This basically maintains the connection and ... ?
- Overrides:
- run in class Thread
finalize
protected void finalize()
- Overrides:
- finalize in class Object
newmsg
public void newmsg(EntityID eid,
Message msg)
- See Also:
- newmsg
upMessageHandler
public boolean upMessageHandler()
- Does nothing.
- See Also:
- upMessageHandler
downMessageHandler
public void downMessageHandler()
- Does nothing.
- See Also:
- downMessageHandler
setConnectionParams
public synchronized boolean setConnectionParams(ServerID s,
String username,
String password)
- This is a specific method designed to set the internally used
variables, before a call to startServiceActivator. startServiceActivator
returns false if called before this one. This can be called only
before the first call to startServiceactivator or after a call to
stopServiceActivator.
No parameter checking performed at this point.
- Parameters:
- s - ServerID of the server to connect to
- username - username to use at login time
- password - password to use at login time
- Returns:
- False if already connected, true otherwise
All Packages Class Hierarchy This Package Previous Next Index