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 


Constructor Index

 o JVMServiceActivator()

Method Index

 o downMessageHandler()
Does nothing.
 o finalize()
 o getClient()
This method provides a reference to an existing, connected, logged-in Client, able to communicate with other active entities in the medium.
 o getClient()
 o getSandboxProperties()
This is intended to allow the loaded sandboxrunnable to access any other properties from within the sandbox environment.
 o getSandboxProperty(Object)
This accesses a particular property from within the sandbox.
 o newmsg(EntityID, Message)
 o registerServiceProvider(ServiceProvider)
 o removeServiceProvider(ServiceProvider)
 o run()
This basically maintains the connection and ...
 o setConnectionParams(ServerID, String, String)
This is a specific method designed to set the internally used variables, before a call to startServiceActivator.
 o setSandboxProperty(Object, Object)
This allows the loaded SandboxRunnable to access certain areas from within the sandbox itself, maybe for providing return data etc.
 o startServiceActivator(Object)
In this case the parameter is ignored.
 o stopServiceActivator()
 o upMessageHandler()
Does nothing.

Constructors

 o JVMServiceActivator
 public JVMServiceActivator()

Methods

 o registerServiceProvider
 public boolean registerServiceProvider(ServiceProvider sp)
See Also:
registerServiceProvider
 o removeServiceProvider
 public void removeServiceProvider(ServiceProvider sp)
See Also:
removeServiceProvider
 o 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
 o stopServiceActivator
 public synchronized void stopServiceActivator()
See Also:
stopServiceActivator
 o getClient
 public Client getClient()
See Also:
getClient
 o run
 public void run()
This basically maintains the connection and ... ?

Overrides:
run in class Thread
 o finalize
 protected void finalize()
Overrides:
finalize in class Object
 o newmsg
 public void newmsg(EntityID eid,
                    Message msg)
See Also:
newmsg
 o upMessageHandler
 public boolean upMessageHandler()
Does nothing.

See Also:
upMessageHandler
 o downMessageHandler
 public void downMessageHandler()
Does nothing.

See Also:
downMessageHandler
 o 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