org.gcube.datatransfer.scheduler.db
Class DataTransferDBManager

java.lang.Object
  extended by org.gcube.datatransfer.scheduler.db.DBManager
      extended by org.gcube.datatransfer.scheduler.db.DataTransferDBManager
All Implemented Interfaces:
Runnable

public class DataTransferDBManager
extends DBManager
implements Runnable


Nested Class Summary
 
Nested classes/interfaces inherited from class org.gcube.datatransfer.scheduler.db.DBManager
DBManager.BaseConsumer
 
Field Summary
 
Fields inherited from class org.gcube.datatransfer.scheduler.db.DBManager
backupFolder, backupIntervalMS, dbFileBaseFolder, dbFileName, dbName, persistenceFactory
 
Constructor Summary
DataTransferDBManager()
           
DataTransferDBManager(String dbConfigurationFileName, String persistenceRootPath, String propertyConfig)
           
 
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 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 storeTypeOfSchedule(TypeOfSchedule typeOfSchedule)
           
 void updateAgentInTransfer(String transferId, String agentid)
           
 void updateAgentStatus(String agentId, String status)
           
 void updateObjectFailedIDs(String transferId, String[] objectFailedIDs)
           
 void updateObjectTrasferredIDs(String transferId, String[] objectTrasferredIDs)
           
 void updateSourceInTransfer(String transferId, String sourceid)
           
 void updateSourceStatus(String sourceId, String status)
           
 void updateStorageInTransfer(String transferId, String storageid)
           
 void updateStorageStatus(String storageId, String status)
           
 void updateTransferError(String transferId, List<String> errors)
           
 void updateTransferIdOfAgentInTransfer(String transferId, String transferIdOfAgent)
           
 void updateTransferStartInstance(String transferId, Calendar startInstance)
           
 void updateTransferStatus(String transferId, String status)
           
 
Methods inherited from class org.gcube.datatransfer.scheduler.db.DBManager
backup, close, queryJSON, quote, toJSon, zipFolder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataTransferDBManager

public DataTransferDBManager(String dbConfigurationFileName,
                             String persistenceRootPath,
                             String propertyConfig)

DataTransferDBManager

public DataTransferDBManager()
Method Detail

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

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

updateAgentStatus

public void updateAgentStatus(String agentId,
                              String status)
                       throws Exception
Throws:
Exception

updateSourceStatus

public void updateSourceStatus(String sourceId,
                               String status)
                        throws Exception
Throws:
Exception

updateStorageStatus

public void updateStorageStatus(String storageId,
                                String status)
                         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 © 2012. All Rights Reserved.