Version: 1.1.1

org.biomoby.registry.sync
Class CentralFactory

java.lang.Object
  extended by org.biomoby.registry.sync.CentralFactory

public final class CentralFactory
extends Object

Factory class to enable the access to the Central implementation of Biomoby. The static class provides access to the local and the master central.

Author:
groscurt

Method Summary
static CentralDigestImpl getLocalCentral()
          Returns the local central.
static CentralDigestImpl getMasterCentral()
          Returns the master central.
static void init(Properties configuration)
          Initialise the master and the local centrals.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

init

public static void init(Properties configuration)
                 throws MobyException
Initialise the master and the local centrals. The URLs and URIs for the centrals are given by the configuration.

Parameters:
configuration - the information about the endpoints of the centrals
Throws:
MobyException - whether the initialisation of the centrals failed

getLocalCentral

public static CentralDigestImpl getLocalCentral()
                                         throws MobyException
Returns the local central. This central will be updated in the process

Returns:
the local central
Throws:
MobyException - whether the local central is not initialised

getMasterCentral

public static CentralDigestImpl getMasterCentral()
                                          throws MobyException
Returns the master central. This central will be the central to get the update information from

Returns:
the master central
Throws:
MobyException - whether the master central is not initialised

Version: 1.1.1

Submit a bug or feature
Generated: Sat May 29 04:26:35 EDT 2010