|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.services.StandardManager
wt.fv.replica.StandardReplicaService
Use the newStandardReplicaService
static factory method(s),
not the StandardReplicaService
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: false
Extendable: false
Nested Class Summary | |
private class |
StandardReplicaService.FetchThread
|
Field Summary | |
private static ConfigCache |
_configCache
|
private static Object |
_configLock
|
private static Hashtable |
_folderKeys
|
private static Hashtable |
_masterID2URLKeys
|
private static Hashtable |
_mastersReady
|
private static String |
_myHostName
|
private static ResourceBundle |
_rb
|
private static Hashtable |
_vaultKeys
|
private static int |
bufferSize
|
private static String |
CLASSNAME
|
static String |
CONTENT_TYPE_HDR
|
private static String |
inboxName
|
private static String |
outboxName
|
private static String |
RESOURCE
|
private Vector |
siteDescConfig
|
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 | |
StandardReplicaService()
|
Method Summary | |
static ActionShippingItem |
acceptReplicateStreamed(Long replSessionID,
Long replicatedItemID,
Long replicaVaultID,
String siteURL,
InputStream contentStream)
|
static ActionShippingItem |
cleanUpFilesInFolder(Long folderID,
Vector filesToDelete,
String siteURL,
ActionShippingItem reply)
|
static ActionShippingItem |
copyFileFromVaultToVault(Long sessionID,
Long destItemID,
Long destVaultID,
Long origFolderID,
Long origItemID,
String siteURL)
|
static void |
doDownload(HTTPRequest req,
HTTPResponse resp)
Supported API: false |
private FolderDesc |
findActiveFolder(VaultDesc vault)
|
String |
findFolderPathInCache(String siteUrl,
long fid)
Deprecated. |
FolderDesc |
findFolderToSaveFile(String site_url,
long vault_id)
Finds the folder on the local system to save the file to? Supported API: false |
String |
getConceptualClassname()
Deprecated. |
private ConfigCache |
getConfigCache()
Returns the configuration information stored in the ServerManger. |
private void |
getConfigCacheFromMaster(String masterHost)
|
FolderDesc |
getFolderDescById(String siteUrl,
long id)
Gets a folder description object given the site and object ID. |
static String |
getFolderPathFromCache(String masterURL,
Long folderId)
Supported API: false |
private static String |
getMyHostName()
|
private static ActionShippingItem |
handleExeptionOnAcceptReplicateStreamed(ActionShippingItem reply,
Long replicatedItemID,
Long rSessionID,
Long folderToRO)
|
private void |
initConfigCache()
If the config info is already in the cache get it. |
private static void |
initConfigInfo(String masterUrl)
|
private boolean |
isMasterReady(String master)
|
private static void |
logCurrDesc(HostDesc currDesc)
|
static StandardReplicaService |
newStandardReplicaService()
Default factory for the class. |
protected void |
performStartupProcess()
Initialization tasks performed by the engine service. |
private static void |
printCurrDesc(HostDesc currDesc)
|
static void |
receiveConfigInfo(String master,
SiteDesc theConfigInfo)
This is the Doer method that processes the input information from the HTTPRequest that we posted earlier. |
private static boolean |
replCopyFile(BackupedFile fromFile,
BackupedFile toFile,
FolderDesc destFolder)
|
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 Vector siteDescConfig
private static ConfigCache _configCache
private static String _myHostName
private static Object _configLock
private static Hashtable _mastersReady
private static Hashtable _folderKeys
private static Hashtable _vaultKeys
private static Hashtable _masterID2URLKeys
public static final String CONTENT_TYPE_HDR
private static ResourceBundle _rb
private static final String outboxName
private static final String inboxName
private static final String transportName
private static int bufferSize
Constructor Detail |
public StandardReplicaService()
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 doDownload(HTTPRequest req, HTTPResponse resp) throws WTException
req
- resp
-
WTException
public static String getFolderPathFromCache(String masterURL, Long folderId) throws WTException
masterURL
- folderId
-
WTException
public static StandardReplicaService newStandardReplicaService() throws WTException
WTException
public FolderDesc getFolderDescById(String siteUrl, long id) throws WTException
getFolderDescById
in interface ReplicaServiceSvr
siteUrl
- id
-
WTException
public FolderDesc findFolderToSaveFile(String site_url, long vault_id) throws WTException
findFolderToSaveFile
in interface ReplicaServiceSvr
site_url
- vault_id
-
WTException
public String findFolderPathInCache(String siteUrl, long fid) throws WTException
findFolderPathInCache
in interface ReplicaServiceSvr
siteUrl
- fid
-
WTException
private ConfigCache getConfigCache() throws MethodServerException
MethodServerException
private static String getMyHostName()
private void initConfigCache()
private boolean isMasterReady(String master)
private void getConfigCacheFromMaster(String masterHost)
public static void receiveConfigInfo(String master, SiteDesc theConfigInfo)
private static void printCurrDesc(HostDesc currDesc)
private static void logCurrDesc(HostDesc currDesc)
private static void initConfigInfo(String masterUrl)
private FolderDesc findActiveFolder(VaultDesc vault)
public static ActionShippingItem acceptReplicateStreamed(Long replSessionID, Long replicatedItemID, Long replicaVaultID, String siteURL, InputStream contentStream)
private static ActionShippingItem handleExeptionOnAcceptReplicateStreamed(ActionShippingItem reply, Long replicatedItemID, Long rSessionID, Long folderToRO)
public static ActionShippingItem cleanUpFilesInFolder(Long folderID, Vector filesToDelete, String siteURL, ActionShippingItem reply)
public static ActionShippingItem copyFileFromVaultToVault(Long sessionID, Long destItemID, Long destVaultID, Long origFolderID, Long origItemID, String siteURL)
private static boolean replCopyFile(BackupedFile fromFile, BackupedFile toFile, FolderDesc destFolder)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |