|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.services.StandardManager
wt.fv.master.StandardMasterService
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
Nested Class Summary | |
private class |
StandardMasterService.ConfigBroadcastThread
|
private class |
StandardMasterService.ContentReplicationSession
|
(package private) static class |
StandardMasterService.DeliverSiteConfig
|
(package private) class |
StandardMasterService.FvMasterServiceEventListener
|
static class |
StandardMasterService.ReplicaOverflowListener
|
Field Summary | |
private static int |
bufferSize
|
private static String |
CLASSNAME
|
static String |
CONTENT_TYPE_HDR
|
private static String |
inboxName
|
private static Class |
inboxType
|
private static String |
outboxName
|
private static Class |
outboxType
|
private static String |
RESOURCE
|
private static FvSurrogate |
surrogate
|
private static int |
threadCount
|
private static int |
threadNumMax
|
private static String |
transportName
|
Fields inherited from class wt.services.StandardManager |
|
Fields inherited from interface wt.services.Manager |
MANAGER_SERVICE, STARTUP_AUTOMATIC, STARTUP_MANUAL, STATUS_EMERGENCY_SHUTDOWN, STATUS_EMERGENCY_SHUTTING_DOWN, STATUS_SHUTDOWN, STATUS_SHUTDOWN_ERRORS, STATUS_SHUTDOWN_FAILURE, STATUS_SHUTTING_DOWN, STATUS_STARTED, STATUS_STARTED_ERRORS, STATUS_STARTING_UP, STATUS_STARTUP_FAILURE |
Constructor Summary | |
StandardMasterService()
|
Method Summary | |
ReplicaFolder |
addFolder(ReplicaVault vault,
ReplicaFolder folder)
Add a folder to a given vault. |
FvPolicyRule |
addRemotePolicyRule(FvPolicyRule rule)
Adds a policy rule. |
void |
broadcastConfig(Site site)
Broadcasts configuration to the replica site. |
private void |
brodcastSiteConfigOnStartUp()
|
static void |
checkUpdateRelSiteConfig(Persistable object)
|
private static void |
deliverSiteConfig(String site,
String destURL,
SiteDesc retHash)
We will be using the delivery service to send the site info back to the site. |
static void |
doContentReplication(ReplicaVault theVault,
ContReplHistory history)
This is the method which is called by the StandardSchedulingService when it is time to replicate the content of a vault to a remote vault. |
static void |
doDirectDownload(HTTPRequest req,
HTTPResponse resp)
|
private void |
doReplication(ReplicaVault vault,
ContReplHistory crHistory)
|
private void |
doThreadedReplication(ReplicaVault vault,
ContReplHistory crHistory)
|
static void |
generateSiteConfig(HTTPRequest req,
HTTPResponse resp)
Method generates the configuration info for each site keyed by site host. |
Vector |
getAllContentReplSites()
Retrieves all sites which are able to participate in the Content Replication process. |
FvPolicyRule[] |
getAllRemotePolicyRules(String domainName)
Returns all of the policy rules Supported API: false |
Vector |
getAlternativeURLs(ApplicationData appData,
ContentHolder holder,
boolean downloadFromMaster)
The method returns a vector of URLs. |
String |
getConceptualClassname()
Deprecated. |
Site |
getCurrentPreferredSite()
Retrieves the current preferred site for the active principal. |
Vector |
getFolders(Site site,
ReplicaVault vault)
Returns all folders in a vault as an Enumeration. |
FvPolicyItem[] |
getRemotePolicyItems(Selector sel)
Supported API: false |
Enumeration |
getRemotePolicyRules(ReplicaVault vault)
Supported API: false |
Enumeration |
getRemotePolicyRules(Selector sel)
Returns a policy rule for a given selector. |
Vector |
getRemoteVaults(Site site)
Supported API: false |
private void |
initiateBroadcastConfig()
|
private static void |
initInbox()
|
FvMount |
mountFolder(FvHost host,
ReplicaFolder folder,
String path)
Mounts a replica folder to a given host. |
ReplicaFolder |
moveFolder(ReplicaFolder folder,
ReplicaVault newVault)
Moves a folder to another vault. |
static StandardMasterService |
newStandardMasterService()
Default factory for the class. |
private void |
onContReplDeliveryFailure(ActionShippingItem item)
|
protected static void |
onReplicaSaveFailure(Object object)
|
protected void |
performStartupProcess()
Initialization tasks performed by the engine service. |
private void |
performStartupProcessControlAccess()
|
private void |
preReplicationRepItemCleanUp(ReplicaVault rv)
|
void |
purgeReplicatedItems(Site site,
ReplicaVault vault,
boolean fullPurge)
Method deletes all ReplicatedItem objects belonging to supplied site, vault pair. |
private void |
purgeUndeliveredMasteredOnReplicaItems()
|
void |
remoteCleanUpFolder(ReplicaVault vault,
ReplicaFolder folder,
Enumeration itemsToRemove)
|
static void |
remoteCleanUpFolderComplete(Long vaultID,
Long folderID,
Vector removedItems)
|
void |
remoteCopyItemVaultToVault(ReplicaVault destVault,
ReplicatedItem itemToCopy,
ReplicaFolder fromFolder,
ContReplHistory session)
|
void |
replicateStreamed(Streamed obj,
ReplicaVault rVault,
ContReplHistory session)
|
static void |
replicateStreamedComplete(Long rItemID,
Long folderID,
Long sessionID,
Long folderToMarkReadOnlyID)
|
void |
setPreferredSite(Site site)
Set the preferred site for content cache and content replication for the current user. |
static void |
updateSiteConfig(Site remSite)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private static final String outboxName
private static final Class outboxType
private static final String inboxName
private static final Class inboxType
private static final String transportName
private static final int threadNumMax
private static int threadCount
private static int bufferSize
public static final String CONTENT_TYPE_HDR
private static FvSurrogate surrogate
Constructor Detail |
public StandardMasterService()
Method Detail |
public String getConceptualClassname()
getConceptualClassname
in interface NetFactor
getConceptualClassname
in class StandardManager
protected void performStartupProcess() throws ManagerException
performStartupProcess
in class StandardManager
ManagerException
public static void doContentReplication(ReplicaVault theVault, ContReplHistory history) throws WTException
theVault
- history
-
WTException
public static StandardMasterService newStandardMasterService() throws WTException
WTException
public FvPolicyRule addRemotePolicyRule(FvPolicyRule rule) throws WTException
addRemotePolicyRule
in interface MasterService
rule
-
WTException
public Enumeration getRemotePolicyRules(Selector sel) throws WTException
getRemotePolicyRules
in interface MasterService
sel
-
WTException
public Enumeration getRemotePolicyRules(ReplicaVault vault) throws WTException
getRemotePolicyRules
in interface MasterService
vault
-
WTException
public FvPolicyRule[] getAllRemotePolicyRules(String domainName) throws WTException
getAllRemotePolicyRules
in interface MasterService
domainName
-
WTException
public ReplicaFolder addFolder(ReplicaVault vault, ReplicaFolder folder) throws WTException
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
addFolder
in interface MasterService
vault
- folder
-
WTException
public Vector getFolders(Site site, ReplicaVault vault) throws WTException
getFolders
in interface MasterService
site
- vault
-
WTException
public Vector getRemoteVaults(Site site) throws WTException
getRemoteVaults
in interface MasterService
site
-
WTException
public FvMount mountFolder(FvHost host, ReplicaFolder folder, String path) throws WTPropertyVetoException, WTException
mountFolder
in interface MasterService
host
- folder
- path
-
WTPropertyVetoException
WTException
public ReplicaFolder moveFolder(ReplicaFolder folder, ReplicaVault newVault) throws WTException, WTPropertyVetoException
moveFolder
in interface MasterService
folder
- the folder to be moved.newVault
- the vault that the folder is to be moved to.
WTException
WTPropertyVetoException
public FvPolicyItem[] getRemotePolicyItems(Selector sel) throws WTException
getRemotePolicyItems
in interface MasterService
sel
-
WTException
public Vector getAlternativeURLs(ApplicationData appData, ContentHolder holder, boolean downloadFromMaster) throws QueryException, WTException, IOException
getAlternativeURLs
in interface MasterService
appData
- holder
- downloadFromMaster
-
QueryException
WTException
IOException
public void purgeReplicatedItems(Site site, ReplicaVault vault, boolean fullPurge) throws WTException
purgeReplicatedItems
in interface MasterService
site
- vault
- fullPurge
-
WTException
public void broadcastConfig(Site site) throws WTException
broadcastConfig
in interface MasterService
site
-
WTException
public Vector getAllContentReplSites() throws WTException
getAllContentReplSites
in interface MasterService
WTException
public Site getCurrentPreferredSite() throws WTException
getCurrentPreferredSite
in interface MasterService
WTException
public void setPreferredSite(Site site) throws WTException
setPreferredSite
in interface MasterService
site
-
WTException
public static void generateSiteConfig(HTTPRequest req, HTTPResponse resp) throws WTException
WTException
private static void deliverSiteConfig(String site, String destURL, SiteDesc retHash)
private static void initInbox() throws WTException
WTException
public void replicateStreamed(Streamed obj, ReplicaVault rVault, ContReplHistory session) throws WTException
WTException
public static void replicateStreamedComplete(Long rItemID, Long folderID, Long sessionID, Long folderToMarkReadOnlyID) throws WTException
WTException
private void doThreadedReplication(ReplicaVault vault, ContReplHistory crHistory) throws WTException
WTException
private void doReplication(ReplicaVault vault, ContReplHistory crHistory) throws WTException
WTException
public void remoteCleanUpFolder(ReplicaVault vault, ReplicaFolder folder, Enumeration itemsToRemove) throws WTException
WTException
public static void remoteCleanUpFolderComplete(Long vaultID, Long folderID, Vector removedItems) throws WTException
WTException
public void remoteCopyItemVaultToVault(ReplicaVault destVault, ReplicatedItem itemToCopy, ReplicaFolder fromFolder, ContReplHistory session) throws WTException
WTException
public static void updateSiteConfig(Site remSite) throws WTException
WTException
public static void checkUpdateRelSiteConfig(Persistable object) throws WTException
WTException
private void onContReplDeliveryFailure(ActionShippingItem item)
private void preReplicationRepItemCleanUp(ReplicaVault rv) throws WTException
WTException
private void initiateBroadcastConfig()
private void brodcastSiteConfigOnStartUp()
protected static void onReplicaSaveFailure(Object object) throws WTException, WTPropertyVetoException
WTException
WTPropertyVetoException
private void purgeUndeliveredMasteredOnReplicaItems() throws WTException
WTException
private void performStartupProcessControlAccess() throws ManagerException
ManagerException
public static void doDirectDownload(HTTPRequest req, HTTPResponse resp) throws WTException
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |