org.gcube.datatransfer.scheduler.db
Class DataTransferDBManager
java.lang.Object
org.gcube.datatransfer.scheduler.db.DBManager
org.gcube.datatransfer.scheduler.db.DataTransferDBManager
- All Implemented Interfaces:
- Runnable
public class DataTransferDBManager
- extends DBManager
- implements Runnable
Method Summary |
void |
deleteAgent(Agent agent)
|
void |
deleteTransfer(Transfer transfer)
|
void |
deleteTransferObject(Set<TransferObject> transferObjects)
|
javax.jdo.PersistenceManager |
getPersistenceManager()
|
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 |
updateStorageInTransfer(String transferId,
String storageid)
|
void |
updateTransferError(String transferId,
List<String> errors)
|
void |
updateTransferIdOfAgentInTransfer(String transferId,
String transferIdOfAgent)
|
void |
updateTransferReadyObjects(String transferId,
boolean flag)
|
void |
updateTransferStartInstance(String transferId,
Calendar startInstance)
|
void |
updateTransferStatus(String transferId,
String status)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DataTransferDBManager
public DataTransferDBManager(String dbConfigurationFileName,
String persistenceRootPath,
String propertyConfig)
DataTransferDBManager
public DataTransferDBManager()
storeTransfer
public void storeTransfer(Transfer transfer)
throws Exception
- Throws:
Exception
storeTransferObject
public void storeTransferObject(Set<TransferObject> transferObjects)
throws Exception
- Throws:
Exception
storeTypeOfSchedule
public void storeTypeOfSchedule(TypeOfSchedule typeOfSchedule)
throws Exception
- Throws:
Exception
storePeriodicallyScheduled
public void storePeriodicallyScheduled(PeriodicallyScheduled periodicallyScheduled)
throws Exception
- Throws:
Exception
storeManuallyScheduled
public void storeManuallyScheduled(ManuallyScheduled manuallyScheduled)
throws Exception
- Throws:
Exception
storeAgent
public void storeAgent(Agent agent)
throws Exception
- Throws:
Exception
storeSource
public void storeSource(DataSource source)
throws Exception
- Throws:
Exception
storeStorage
public void storeStorage(DataStorage storage)
throws Exception
- Throws:
Exception
storeAgentStatistics
public void storeAgentStatistics(AgentStatistics agentStatistics)
throws Exception
- Throws:
Exception
storeTransferOutcomes
public void storeTransferOutcomes(TransferOutcome transferOutcome)
throws Exception
- Throws:
Exception
deleteTransfer
public void deleteTransfer(Transfer transfer)
throws Exception
- Throws:
Exception
deleteTransferObject
public void deleteTransferObject(Set<TransferObject> transferObjects)
throws Exception
- Throws:
Exception
deleteAgent
public void deleteAgent(Agent agent)
throws Exception
- Throws:
Exception
updateTransferStatus
public void updateTransferStatus(String transferId,
String status)
throws Exception
- Throws:
Exception
updateTransferError
public void updateTransferError(String transferId,
List<String> errors)
throws Exception
- Throws:
Exception
updateObjectTrasferredIDs
public void updateObjectTrasferredIDs(String transferId,
String[] objectTrasferredIDs)
throws Exception
- Throws:
Exception
updateObjectFailedIDs
public void updateObjectFailedIDs(String transferId,
String[] objectFailedIDs)
throws Exception
- Throws:
Exception
updateAgentInTransfer
public void updateAgentInTransfer(String transferId,
String agentid)
throws Exception
- Throws:
Exception
updateStorageInTransfer
public void updateStorageInTransfer(String transferId,
String storageid)
throws Exception
- Throws:
Exception
updateSourceInTransfer
public void updateSourceInTransfer(String transferId,
String sourceid)
throws Exception
- Throws:
Exception
updateTransferIdOfAgentInTransfer
public void updateTransferIdOfAgentInTransfer(String transferId,
String transferIdOfAgent)
throws Exception
- Throws:
Exception
updateTransferStartInstance
public void updateTransferStartInstance(String transferId,
Calendar startInstance)
throws Exception
- Throws:
Exception
updateTransferReadyObjects
public void updateTransferReadyObjects(String transferId,
boolean flag)
throws Exception
- Throws:
Exception
updateOutcomesInTransfer
public void updateOutcomesInTransfer(String transferId,
List<String> outcomes)
throws Exception
- Throws:
Exception
updateEverythingInAgent
public void updateEverythingInAgent(String agentId,
String agentIdOfIs,
String host,
int port)
throws Exception
- Throws:
Exception
updateEverythingInSource
public void updateEverythingInSource(String sourceId,
String dataSourceIdOfIS,
String dataSourceName,
String description,
String endpoint,
String username,
String pass,
String folder)
throws Exception
- Throws:
Exception
updateEverythingInStorage
public void updateEverythingInStorage(String id,
String idOfIS,
String dataStorageName,
String description,
String endpoint,
String username,
String pass)
throws Exception
- Throws:
Exception
updateAgentStatistics
public void updateAgentStatistics(String id,
int ongoing,
int failed,
int succeeded,
int canceled,
int total)
throws Exception
- Throws:
Exception
run
public void run()
- (non-Javadoc)
- Specified by:
run
in interface Runnable
- See Also:
Runnable.run()
getPersistenceManager
public javax.jdo.PersistenceManager getPersistenceManager()
Copyright © 2013. All Rights Reserved.