wt.fv.master
Interface MasterService

All Known Implementing Classes:
StandardMasterService

public interface MasterService

The MasterService service presents an interface (accessible also in the client) to the functions provided in the server by the StandardMasterService.

Supported API: true

Extendable: false


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.
 

Method Detail

addRemotePolicyRule

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

Parameters:
rule -
Returns:
FvPolicyRule
Throws:
WTException

addFolder

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

Parameters:
vault -
folder -
Returns:
ReplicaFolder
Throws:
WTException

mountFolder

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

Parameters:
host -
folder -
path -
Returns:
FvMount
Throws:
WTPropertyVetoException
WTException

broadcastConfig

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

Supported API: true

Parameters:
site -
Throws:
WTException

getAllContentReplSites

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

Supported API: true

Returns:
Vector
Throws:
WTException

getCurrentPreferredSite

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

Returns:
Site
Throws:
WTException