uk.ac.starlink.plastic
Class ServerSet

java.lang.Object
  extended byuk.ac.starlink.plastic.ServerSet

public class ServerSet
extends Object

Provides the servers (XML-RPC and RMI-LITE) which are required for a functioning hub.

Since:
16 Feb 2006
Author:
Mark Taylor

Constructor Summary
ServerSet(File configFile)
          Constructs a new ServerSet.
 
Method Summary
 void finalize()
           
 net.ladypleaser.rmilite.Server getRmiServer()
          Returns a running RMI server associated with this object.
 org.apache.xmlrpc.WebServer getXmlRpcServer()
          Returns a running XML-RPC server associated with this object.
 URL getXmlRpcUrl()
          Returns the URL for the XML-RPC server associated with this object.
 void stop()
          Tidies up when the servers provided by this object are no longer requires.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerSet

public ServerSet(File configFile)
          throws IOException,
                 RemoteException
Constructs a new ServerSet. If a configFile is specified it will be used to record details of the current configuration, in the standard PLASTIC way (serialised properties). If it's null, this information will not be recorded.

Parameters:
configFile - file for storing configuration of the running PLASTIC hub
Method Detail

getRmiServer

public net.ladypleaser.rmilite.Server getRmiServer()
Returns a running RMI server associated with this object.

Returns:
RMI server

getXmlRpcServer

public org.apache.xmlrpc.WebServer getXmlRpcServer()
Returns a running XML-RPC server associated with this object.

Returns:
XML-RPC server

getXmlRpcUrl

public URL getXmlRpcUrl()
Returns the URL for the XML-RPC server associated with this object.

Returns:
XML-RPC URL

stop

public void stop()
Tidies up when the servers provided by this object are no longer requires. This includes shutting down the servers and deleting the config file, as long as it's the one we wrote. May safely be called multiple times.


finalize

public void finalize()
              throws Throwable
Throws:
Throwable


Copyright © 2006 \\ CLRC: Central Laboratory of the Research Councils. All Rights Reserved.