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
 
 Visit 
 Smart Software 
   
  -   JVMServiceActivator() JVMServiceActivator()
-  
   
  -   downMessageHandler() downMessageHandler()
-   Does nothing.
  
-   finalize() finalize()
-  
  
-   getClient() getClient()
-   This method provides a reference to an existing, connected, 
 logged-in Client, able to communicate with other active entities in the 
 medium.
  
-   getClient() getClient()
-   
  
-   getSandboxProperties() getSandboxProperties()
-   This is intended to allow the loaded sandboxrunnable to access any other
 properties from within the sandbox environment.
  
-   getSandboxProperty(Object) getSandboxProperty(Object)
-   This accesses a particular property from within the sandbox.
  
-   newmsg(EntityID, Message) newmsg(EntityID, Message)
-   
  
-   registerServiceProvider(ServiceProvider) registerServiceProvider(ServiceProvider)
-  
 
  
-   removeServiceProvider(ServiceProvider) removeServiceProvider(ServiceProvider)
-   
  
-   run() run()
-   This basically maintains the connection and ...
  
-   setConnectionParams(ServerID, String, String) setConnectionParams(ServerID, String, String)
-   This is a specific method designed to set the internally used 
 variables, before a call to startServiceActivator.
  
-   setSandboxProperty(Object, Object) 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) startServiceActivator(Object)
-   In this case the parameter is ignored.
  
-   stopServiceActivator() stopServiceActivator()
-   
  
-   upMessageHandler() upMessageHandler()
-   Does nothing.
   
 JVMServiceActivator
JVMServiceActivator
 public JVMServiceActivator()
   
 registerServiceProvider
registerServiceProvider
 public boolean registerServiceProvider(ServiceProvider sp)
  - 
    -  See Also:
    
-  registerServiceProvider
  
 
 removeServiceProvider
removeServiceProvider
 public void removeServiceProvider(ServiceProvider sp)
  - 
    -  See Also:
    
-  removeServiceProvider
  
 
 startServiceActivator
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
stopServiceActivator
 public synchronized void stopServiceActivator()
  - 
    -  See Also:
    
-  stopServiceActivator
  
 
 getClient
getClient
 public Client getClient()
  - 
    -  See Also:
    
-  getClient
  
 
 run
run
 public void run()
  -  This basically maintains the connection and ... ?
   
- 
    -  Overrides:
    
-  run in class Thread
  
 
 finalize
finalize
 protected void finalize()
  - 
    -  Overrides:
    
-  finalize in class Object
  
 
 newmsg
newmsg
 public void newmsg(EntityID eid,
                    Message msg)
  - 
    -  See Also:
    
-  newmsg
  
 
 upMessageHandler
upMessageHandler
 public boolean upMessageHandler()
  -  Does nothing.
   
- 
    -  See Also:
    
-  upMessageHandler
  
 
 downMessageHandler
downMessageHandler
 public void downMessageHandler()
  -  Does nothing.
   
- 
    -  See Also:
    
-  downMessageHandler
  
 
 setConnectionParams
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