DBManager.BaseConsumer
backupFolder, 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, zipFolder
public DataTransferDBManager(String dbConfigurationFileName, String persistenceRootPath, String propertyConfig)
public DataTransferDBManager()
public void storeTransferObject(Set<TransferObject> transferObjects) throws Exception
Exception
public void storeTypeOfSchedule(TypeOfSchedule typeOfSchedule) throws Exception
Exception
public void storePeriodicallyScheduled(PeriodicallyScheduled periodicallyScheduled) throws Exception
Exception
public void storeManuallyScheduled(ManuallyScheduled manuallyScheduled) throws Exception
Exception
public void storeSource(DataSource source) throws Exception
Exception
public void storeStorage(DataStorage storage) throws Exception
Exception
public void storeAgentStatistics(AgentStatistics agentStatistics) throws Exception
Exception
public void storeTransferOutcomes(TransferOutcome transferOutcome) throws Exception
Exception
public void deleteTransferObject(Set<TransferObject> transferObjects) throws Exception
Exception
public void updateTransferStatus(String transferId, String status) throws Exception
Exception
public void updateTransferBytes(String transferId, long total_size, long transferredBytes) throws Exception
Exception
public void updateTreeOutcomeInTransfer(String transferId, String exception, int totalReadTrees, int totalWrittenTrees) throws Exception
Exception
public void updateTransferError(String transferId, List<String> errors) throws Exception
Exception
public void updateObjectTrasferredIDs(String transferId, String[] objectTrasferredIDs) throws Exception
Exception
public void updateObjectFailedIDs(String transferId, String[] objectFailedIDs) throws Exception
Exception
public void updateAgentInTransfer(String transferId, String agentid) throws Exception
Exception
public void updateStartTimeInTransfer(String transferId, long startTime) throws Exception
Exception
public void updateTotalTimeInTransfer(String transferId, long totalTime) throws Exception
Exception
public void updateStorageInTransfer(String transferId, String storageid) throws Exception
Exception
public void updateSourceInTransfer(String transferId, String sourceid) throws Exception
Exception
public void updateTransferIdOfAgentInTransfer(String transferId, String transferIdOfAgent) throws Exception
Exception
public void updateTransferStartInstanceString(String transferId, String startInstanceString) throws Exception
Exception
public void updateTransferReadyObjects(String transferId, boolean flag) throws Exception
Exception
public void updateOutcomesInTransfer(String transferId, List<String> outcomes) throws Exception
Exception
public void updateEverythingInAgent(String agentId, String agentIdOfIs, String host, int port) throws Exception
Exception
public void updateEverythingInSource(String sourceId, String dataSourceIdOfIS, String dataSourceName, String description, String endpoint, String username, String pass, String folder) throws Exception
Exception
public void updateEverythingInStorage(String id, String idOfIS, String dataStorageName, String description, String endpoint, String username, String pass) throws Exception
Exception
public void updateAgentStatistics(String id, int ongoing, int failed, int succeeded, int canceled, int total) throws Exception
Exception
public void resetProgressInTransfer(String transferId) throws Exception
Exception
public void run()
run
in interface Runnable
Runnable.run()
public javax.jdo.PersistenceManager getPersistenceManager()
Copyright © 2020. All Rights Reserved.