TPTP 4.6.0 Platform Project
Public API Specification

org.eclipse.hyades.automation.server
Class KeepAliveService

java.lang.Object
  extended by org.eclipse.hyades.automation.core.AbstractService
      extended by org.eclipse.hyades.automation.server.AbstractService
          extended by org.eclipse.hyades.automation.server.KeepAliveService
All Implemented Interfaces:
java.io.Serializable, Service

public class KeepAliveService
extends AbstractService

The keep-alive automation server is a service that serves as an RMI server entry point into an automation server instance and provides access without having to launch a new Eclipse instance each time a service is required. This is basically a meta-service that helps maintain the automation server while keep-alive is required. This service starts up the RNI server appropriately and then keeps a monitoring thread alive that shuts down the automation server after a given timeout is exceeded. The timeout neglects the time taken to execute the service. The timeout should be compared against the time since the end of the service invocation to the beginning of a new service request. This means the background timer thread will be disabled as a request comes in to the automation server and reset at the end of the invocation.

See Also:
Serialized Form

Nested Class Summary
static class KeepAliveService.CustomSecurityManager
          Specialized RMI security manager for use with keep alive automation server running code
static class KeepAliveService.RemoteObject
          Remote object is the primary object exposed to the clients, it implements and is commanded through its automation server interface (that is a remote interface)
 
Nested classes/interfaces inherited from interface org.eclipse.hyades.automation.core.Service
Service.Discoverable, Service.Executable, Service.Requestable
 
Constructor Summary
KeepAliveService()
          Default constructor supporting extension instantiation
 
Method Summary
 java.lang.Object execute()
          Execute the service
 
Methods inherited from class org.eclipse.hyades.automation.server.AbstractService
execute
 
Methods inherited from class org.eclipse.hyades.automation.core.AbstractService
configure, configure, createMemento, getIdentifier, getPublicProperties, getRoot, setMemento, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

KeepAliveService

public KeepAliveService()
Default constructor supporting extension instantiation

Method Detail

execute

public java.lang.Object execute()
Description copied from interface: Service
Execute the service

Returns:
return the return value, the return value currently only contains the java process execute command, unidirectional communication is only possible

TPTP 4.6.0 Platform Project
Public API Specification