org.openrdf.sesame.server.rmi
Class FactoryInterfaceImpl

java.lang.Object
  extended byorg.openrdf.sesame.server.rmi.FactoryInterfaceImpl
All Implemented Interfaces:
FactoryInterface, KeepAliveWhenUnreferenced

public class FactoryInterfaceImpl
extends Object
implements FactoryInterface, KeepAliveWhenUnreferenced


Constructor Summary
FactoryInterfaceImpl()
           
 
Method Summary
static void bind()
          bind() - register the first and only FactoryInterface instance to the RMI registry on the localhost.
static void bind(Integer port)
           
 SesameService getService()
          getService() - create an instance implementing the ServicesInterface.
static void main(String[] options)
          test bind/unbind code
 void stopService()
          To shutdown a running Sesame server.
static void unbind()
          unbind() - deregister the only FactoryInterface instance from the running RMI registry
static void unbind(Integer port)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FactoryInterfaceImpl

public FactoryInterfaceImpl()
                     throws RemoteException
Method Detail

bind

public static void bind()
bind() - register the first and only FactoryInterface instance to the RMI registry on the localhost. The procedureis the following: - tries to get a ref to the running registry on the default port - make attemt to bind or either rebind an instance to it - if the bind/rebind fails the it tries to create a new registry on the localhost listening on the default port - make a new attamt to bind the new FactoryInterface instance to that registry


bind

public static void bind(Integer port)

unbind

public static void unbind()
unbind() - deregister the only FactoryInterface instance from the running RMI registry


unbind

public static void unbind(Integer port)

getService

public SesameService getService()
getService() - create an instance implementing the ServicesInterface.

Specified by:
getService in interface FactoryInterface
Returns:
the new instance

stopService

public void stopService()
Description copied from interface: FactoryInterface
To shutdown a running Sesame server.

Specified by:
stopService in interface FactoryInterface

main

public static void main(String[] options)
test bind/unbind code



Copyright © 2002-2006 Aduna BV, GNU LGPL License applies.