DBManager.BaseConsumerbackupFolder, backupIntervalMS, dbFileBaseFolder, dbFileName, dbName, persistenceFactory, prop| Constructor and Description |
|---|
DataTransferDBManager() |
DataTransferDBManager(String dbConfigurationFileName,
String persistenceRootPath,
String propertyConfig) |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteAgent(Agent agent) |
void |
deleteTransfer(Transfer transfer) |
void |
deleteTransferObject(Set<TransferObject> transferObjects) |
javax.jdo.PersistenceManager |
getPersistenceManager() |
void |
resetProgressInTransfer(String transferId) |
void |
run()
(non-Javadoc)
|
void |
storeAgent(Agent agent) |
void |
storeAgentStatistics(AgentStatistics agentStatistics) |
void |
storeManuallyScheduled(ManuallyScheduled manuallyScheduled) |
void |
storePeriodicallyScheduled(PeriodicallyScheduled periodicallyScheduled) |
void |
storeSource(DataSource source) |
void |
storeStorage(DataStorage storage) |
void |
storeTransfer(Transfer transfer) |
void |
storeTransferObject(Set<TransferObject> transferObjects) |
void |
storeTransferOutcomes(TransferOutcome transferOutcome) |
void |
storeTypeOfSchedule(TypeOfSchedule typeOfSchedule) |
void |
updateAgentInTransfer(String transferId,
String agentid) |
void |
updateAgentStatistics(String id,
int ongoing,
int failed,
int succeeded,
int canceled,
int total) |
void |
updateEverythingInAgent(String agentId,
String agentIdOfIs,
String host,
int port) |
void |
updateEverythingInSource(String sourceId,
String dataSourceIdOfIS,
String dataSourceName,
String description,
String endpoint,
String username,
String pass,
String folder) |
void |
updateEverythingInStorage(String id,
String idOfIS,
String dataStorageName,
String description,
String endpoint,
String username,
String pass) |
void |
updateObjectFailedIDs(String transferId,
String[] objectFailedIDs) |
void |
updateObjectTrasferredIDs(String transferId,
String[] objectTrasferredIDs) |
void |
updateOutcomesInTransfer(String transferId,
List<String> outcomes) |
void |
updateSourceInTransfer(String transferId,
String sourceid) |
void |
updateStartTimeInTransfer(String transferId,
long startTime) |
void |
updateStorageInTransfer(String transferId,
String storageid) |
void |
updateTotalTimeInTransfer(String transferId,
long totalTime) |
void |
updateTransferBytes(String transferId,
long total_size,
long transferredBytes) |
void |
updateTransferError(String transferId,
List<String> errors) |
void |
updateTransferIdOfAgentInTransfer(String transferId,
String transferIdOfAgent) |
void |
updateTransferReadyObjects(String transferId,
boolean flag) |
void |
updateTransferStartInstanceString(String transferId,
String startInstanceString) |
void |
updateTransferStatus(String transferId,
String status) |
void |
updateTreeOutcomeInTransfer(String transferId,
String exception,
int totalReadTrees,
int totalWrittenTrees) |
close, getScheduledBackupInHours, startBackUp, zipFolderpublic DataTransferDBManager(String dbConfigurationFileName, String persistenceRootPath, String propertyConfig)
public DataTransferDBManager()
public void storeTransferObject(Set<TransferObject> transferObjects) throws Exception
Exceptionpublic void storeTypeOfSchedule(TypeOfSchedule typeOfSchedule) throws Exception
Exceptionpublic void storePeriodicallyScheduled(PeriodicallyScheduled periodicallyScheduled) throws Exception
Exceptionpublic void storeManuallyScheduled(ManuallyScheduled manuallyScheduled) throws Exception
Exceptionpublic void storeSource(DataSource source) throws Exception
Exceptionpublic void storeStorage(DataStorage storage) throws Exception
Exceptionpublic void storeAgentStatistics(AgentStatistics agentStatistics) throws Exception
Exceptionpublic void storeTransferOutcomes(TransferOutcome transferOutcome) throws Exception
Exceptionpublic void deleteTransferObject(Set<TransferObject> transferObjects) throws Exception
Exceptionpublic void updateTransferStatus(String transferId, String status) throws Exception
Exceptionpublic void updateTransferBytes(String transferId, long total_size, long transferredBytes) throws Exception
Exceptionpublic void updateTreeOutcomeInTransfer(String transferId, String exception, int totalReadTrees, int totalWrittenTrees) throws Exception
Exceptionpublic void updateTransferError(String transferId, List<String> errors) throws Exception
Exceptionpublic void updateObjectTrasferredIDs(String transferId, String[] objectTrasferredIDs) throws Exception
Exceptionpublic void updateObjectFailedIDs(String transferId, String[] objectFailedIDs) throws Exception
Exceptionpublic void updateAgentInTransfer(String transferId, String agentid) throws Exception
Exceptionpublic void updateStartTimeInTransfer(String transferId, long startTime) throws Exception
Exceptionpublic void updateTotalTimeInTransfer(String transferId, long totalTime) throws Exception
Exceptionpublic void updateStorageInTransfer(String transferId, String storageid) throws Exception
Exceptionpublic void updateSourceInTransfer(String transferId, String sourceid) throws Exception
Exceptionpublic void updateTransferIdOfAgentInTransfer(String transferId, String transferIdOfAgent) throws Exception
Exceptionpublic void updateTransferStartInstanceString(String transferId, String startInstanceString) throws Exception
Exceptionpublic void updateTransferReadyObjects(String transferId, boolean flag) throws Exception
Exceptionpublic void updateOutcomesInTransfer(String transferId, List<String> outcomes) throws Exception
Exceptionpublic void updateEverythingInAgent(String agentId, String agentIdOfIs, String host, int port) throws Exception
Exceptionpublic void updateEverythingInSource(String sourceId, String dataSourceIdOfIS, String dataSourceName, String description, String endpoint, String username, String pass, String folder) throws Exception
Exceptionpublic void updateEverythingInStorage(String id, String idOfIS, String dataStorageName, String description, String endpoint, String username, String pass) throws Exception
Exceptionpublic void updateAgentStatistics(String id, int ongoing, int failed, int succeeded, int canceled, int total) throws Exception
Exceptionpublic void resetProgressInTransfer(String transferId) throws Exception
Exceptionpublic void run()
run in interface RunnableRunnable.run()public javax.jdo.PersistenceManager getPersistenceManager()
Copyright © 2016. All Rights Reserved.