wt.fv.replica
Class FvReplicaTool
java.lang.Object
wt.fv.replica.FvReplicaTool
- All Implemented Interfaces:
- RemoteAccess
- public class FvReplicaTool
- extends Object
- implements RemoteAccess
Nested Class Summary |
static class |
FvReplicaTool.DuplBatch
Inner class to carry information between client and server |
Method Summary |
(package private) boolean |
createListsOfDuplicateReplicatedItems(Site targetSite,
ReplicaVault targetVault,
FvHost targetReplicaHost,
File saveFileDir)
|
(package private) boolean |
deleteDuplicatesOnMaster(File sourceOfDuplicates)
|
(package private) boolean |
deleteDuplicatesOnReplica(File dupSourceFile)
|
void |
execute(String[] args)
|
private FvHost |
getHostByName(String hname)
|
private String |
getMode(String inMode)
|
private ReplicaVault |
getReplicaVaultByName(String vname)
|
private static Site |
getSiteByName(String name)
|
static void |
main(String[] args)
|
private static void |
print(String msg)
|
private boolean |
processMode(String mode,
String[] in_args)
|
private FvReplicaTool.DuplBatch |
serverRequestor_getDuplicatesBatch(Site targetSite,
ReplicaVault targetVault,
FvHost targetReplicaHost,
long startFromStreamId,
Hashtable folderHash)
|
private FvReplicaTool.DuplBatch |
serverRequestor_removeDuplicatesOnMaster(FvReplicaTool.DuplBatch batchToRemove)
|
static FvReplicaTool.DuplBatch |
serverSide_getDuplBatch(Site targetSite,
ReplicaVault targetVault,
FvHost targetReplicaHost,
long startFromStreamId,
Hashtable folderPathHash)
|
private static Hashtable |
serverSide_getReplicaHostMounts(FvHost targetReplicaHost,
Site targetSite,
ReplicaVault targetVault)
|
private static Vector |
serverSide_GetSortedReplicatedItemsBatch(Site targetSite,
ReplicaVault targetVault,
long startFromStreamId)
|
private static int |
serverSide_recordDuplicates(Vector identicalRI,
Hashtable folderOID_mountPath,
FvReplicaTool.DuplBatch batch)
|
static FvReplicaTool.DuplBatch |
serverSide_removeDuplicatesOnMaster(FvReplicaTool.DuplBatch batchToRemove)
|
private static void |
usage()
|
private static void |
usageFull()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SERVER
static final boolean SERVER
CLASSNAME
private static final String CLASSNAME
FC_RESOURCE
private static final String FC_RESOURCE
- See Also:
- Constant Field Values
MODE_RETRIEVE_DUPLICATES
private static final String MODE_RETRIEVE_DUPLICATES
- See Also:
- Constant Field Values
MODE_DELETE_DUPLICATES_MASTER
private static final String MODE_DELETE_DUPLICATES_MASTER
- See Also:
- Constant Field Values
MODE_DELETE_DUPLICATES_REPLICA
private static final String MODE_DELETE_DUPLICATES_REPLICA
- See Also:
- Constant Field Values
MODE_HELP
private static final String MODE_HELP
- See Also:
- Constant Field Values
DEFAULT_BATCH_SIZE
private static int DEFAULT_BATCH_SIZE
MASTER_F_TAG
private static final String MASTER_F_TAG
- See Also:
- Constant Field Values
REPLICA_F_TAG
private static final String REPLICA_F_TAG
- See Also:
- Constant Field Values
GENERIC_PATH_SEPARATOR
private static final String GENERIC_PATH_SEPARATOR
- See Also:
- Constant Field Values
FILE_DELIMITER
private static final String FILE_DELIMITER
- See Also:
- Constant Field Values
FvReplicaTool
public FvReplicaTool()
main
public static void main(String[] args)
execute
public void execute(String[] args)
processMode
private boolean processMode(String mode,
String[] in_args)
throws WTException
- Throws:
WTException
createListsOfDuplicateReplicatedItems
boolean createListsOfDuplicateReplicatedItems(Site targetSite,
ReplicaVault targetVault,
FvHost targetReplicaHost,
File saveFileDir)
throws WTException
- Throws:
WTException
getMode
private String getMode(String inMode)
serverSide_getDuplBatch
public static FvReplicaTool.DuplBatch serverSide_getDuplBatch(Site targetSite,
ReplicaVault targetVault,
FvHost targetReplicaHost,
long startFromStreamId,
Hashtable folderPathHash)
throws WTException
- Throws:
WTException
serverRequestor_getDuplicatesBatch
private FvReplicaTool.DuplBatch serverRequestor_getDuplicatesBatch(Site targetSite,
ReplicaVault targetVault,
FvHost targetReplicaHost,
long startFromStreamId,
Hashtable folderHash)
throws WTException
- Throws:
WTException
serverRequestor_removeDuplicatesOnMaster
private FvReplicaTool.DuplBatch serverRequestor_removeDuplicatesOnMaster(FvReplicaTool.DuplBatch batchToRemove)
throws WTException
- Throws:
WTException
serverSide_removeDuplicatesOnMaster
public static FvReplicaTool.DuplBatch serverSide_removeDuplicatesOnMaster(FvReplicaTool.DuplBatch batchToRemove)
throws WTException
- Throws:
WTException
deleteDuplicatesOnMaster
boolean deleteDuplicatesOnMaster(File sourceOfDuplicates)
throws WTException
- Throws:
WTException
deleteDuplicatesOnReplica
boolean deleteDuplicatesOnReplica(File dupSourceFile)
throws WTException
- Throws:
WTException
getSiteByName
private static Site getSiteByName(String name)
throws WTException
- Throws:
WTException
getReplicaVaultByName
private ReplicaVault getReplicaVaultByName(String vname)
throws WTException
- Throws:
WTException
getHostByName
private FvHost getHostByName(String hname)
throws WTException
- Throws:
WTException
serverSide_getReplicaHostMounts
private static Hashtable serverSide_getReplicaHostMounts(FvHost targetReplicaHost,
Site targetSite,
ReplicaVault targetVault)
throws WTException
- Throws:
WTException
serverSide_GetSortedReplicatedItemsBatch
private static Vector serverSide_GetSortedReplicatedItemsBatch(Site targetSite,
ReplicaVault targetVault,
long startFromStreamId)
throws WTException
- Throws:
WTException
serverSide_recordDuplicates
private static int serverSide_recordDuplicates(Vector identicalRI,
Hashtable folderOID_mountPath,
FvReplicaTool.DuplBatch batch)
print
private static void print(String msg)
usageFull
private static void usageFull()
usage
private static void usage()