wt.fv.master
Class StandardMasterService

java.lang.Object
  extended by wt.services.StandardManager
      extended by wt.fv.master.StandardMasterService
All Implemented Interfaces:
Serializable, NetFactor, MasterService, wt.services.Manager

public class StandardMasterService
extends StandardManager
implements MasterService, Serializable

Standard implementation of the file vault Master service. Contains implementation of the client and server APIs.These APIs can be accessed using following pattern: MasterHelper.service.API_Name()

Use the newStandardMasterService static factory method(s), not the StandardMasterService constructor, to construct instances of this class. Instances must be constructed using the static factory(s), in order to ensure proper initialization of the instance.



Supported API: true

Extendable: false

See Also:
Serialized Form

Nested Class Summary
static class wt.fv.master.StandardMasterService.ReplicaOverflowListener
           
 
Method Summary
 wt.fv.master.ReplicaFolder addFolder(wt.fv.Vault vault, wt.fv.master.ReplicaFolder folder)
          Add a folder to a given vault.
 wt.fv.FvPolicyRule addRemotePolicyRule(wt.fv.FvPolicyRule rule)
          Adds a policy rule.
 void broadcastConfig(wt.intersvrcom.Site site)
          Broadcasts configuration to the replica site.
 Vector getAllContentReplSites()
          Retrieves all sites which are able to participate in the Content Replication process.
 wt.intersvrcom.Site getCurrentPreferredSite()
          Retrieves the current preferred site for the active principal.
 wt.fv.FvMount mountFolder(wt.fv.FvHost host, wt.fv.master.ReplicaFolder folder, String path)
          Mounts a replica folder to a given host.
 
Methods inherited from class wt.services.StandardManager
getManagerService, getManagerStatus, getName, getStartupType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

addRemotePolicyRule

public wt.fv.FvPolicyRule addRemotePolicyRule(wt.fv.FvPolicyRule rule)
                                       throws WTException
Adds a policy rule. A policy rule will not be added if a different policy rule exists for vault from the same site and a given selector.

Supported API: true

Specified by:
addRemotePolicyRule in interface MasterService
Parameters:
rule -
Returns:
FvPolicyRule
Throws:
WTException

addFolder

public wt.fv.master.ReplicaFolder addFolder(wt.fv.Vault vault,
                                            wt.fv.master.ReplicaFolder folder)
                                     throws WTException
Add a folder to a given vault. The specified folder's number will define an order in which the folder is going to be used in a vault.

Specifying a number that already exists for a given vault results in shifting vaults to make a room for a new one.

Specifying -1 results in adding a folder to the end of the list.

Supported API: true

Specified by:
addFolder in interface MasterService
Parameters:
vault -
folder -
Returns:
ReplicaFolder
Throws:
WTException

mountFolder

public wt.fv.FvMount mountFolder(wt.fv.FvHost host,
                                 wt.fv.master.ReplicaFolder folder,
                                 String path)
                          throws WTPropertyVetoException,
                                 WTException
Mounts a replica folder to a given host.

Supported API: true

Specified by:
mountFolder in interface MasterService
Parameters:
host -
folder -
path -
Returns:
FvMount
Throws:
WTPropertyVetoException
WTException

broadcastConfig

public void broadcastConfig(wt.intersvrcom.Site site)
                     throws WTException
Broadcasts configuration to the replica site.

Supported API: true

Specified by:
broadcastConfig in interface MasterService
Parameters:
site -
Throws:
WTException

getAllContentReplSites

public Vector getAllContentReplSites()
                              throws WTException
Retrieves all sites which are able to participate in the Content Replication process.

Supported API: true

Specified by:
getAllContentReplSites in interface MasterService
Returns:
Vector
Throws:
WTException

getCurrentPreferredSite

public wt.intersvrcom.Site getCurrentPreferredSite()
                                            throws WTException
Retrieves the current preferred site for the active principal. If no preferred site is set for the active principal, returns null.

Supported API: true

Specified by:
getCurrentPreferredSite in interface MasterService
Returns:
Site
Throws:
WTException