DBManager.BaseConsumer
backupFolder, backupIntervalMS, dbFileBaseFolder, dbFileName, dbName, persistenceFactory
Constructor and Description |
---|
DataTransferDBManager()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addTransferObjectCompleted(String objId) |
boolean |
checkIfTransferExist(String id) |
javax.jdo.PersistenceManager |
getPersistenceManager() |
ArrayList<org.gcube.datatransfer.common.outcome.FileTransferOutcome> |
getTransferObjectOutCome(String transferId) |
String |
getTransferObjectOutComeAsRS(String transferId) |
String |
getTransferStatus(String transferId) |
org.gcube.datatransfer.common.outcome.TreeTransferOutcome |
getTransferTreeOutCome(String transferId) |
org.gcube.datatransfer.agent.stubs.datatransferagent.MonitorTransferReportMessage |
getTrasferProgress(String transferId) |
org.gcube.datatransfer.common.agent.Types.MonitorTransferReportMessage |
getTrasferProgressType(String transferId) |
void |
run()
(non-Javadoc)
|
void |
storeTransfer(Transfer transfer) |
void |
storeTransferObject(Set<TransferObject> transferObjects) |
void |
updateLastNotificationMsgSent(String transferId,
boolean value) |
void |
updateReadTreesInTransfer(String transferId,
int val) |
void |
updateTransfer(String id) |
void |
updateTransferJDO(String transferId,
String[] inputURIs,
long totalsize) |
void |
updateTransferObjectInfo(String objId,
long size) |
void |
updateTransferObjectStatus(String objId,
String status) |
void |
updateTransferSubmitterEndpoint(String transferId,
String submitterEndpoint) |
void |
updateWrittenTreesInTransfer(String transferId,
int val) |
public boolean checkIfTransferExist(String id) throws Exception
Transfer
- transferObjects
- Exception
public void storeTransferObject(Set<TransferObject> transferObjects) throws Exception
Exception
public void updateTransferSubmitterEndpoint(String transferId, String submitterEndpoint) throws Exception
Exception
public void updateLastNotificationMsgSent(String transferId, boolean value) throws Exception
Exception
public String getTransferStatus(String transferId) throws Exception
Exception
public void updateTransferObjectStatus(String objId, String status) throws Exception
Exception
public void updateReadTreesInTransfer(String transferId, int val) throws Exception
Exception
public void updateWrittenTreesInTransfer(String transferId, int val) throws Exception
Exception
public void updateTransferObjectInfo(String objId, long size) throws Exception
Exception
public void addTransferObjectCompleted(String objId) throws Exception
Exception
public void updateTransferJDO(String transferId, String[] inputURIs, long totalsize) throws Exception
Exception
public void run()
run
in interface Runnable
Runnable.run()
public javax.jdo.PersistenceManager getPersistenceManager()
public String getTransferObjectOutComeAsRS(String transferId) throws Exception
Exception
public ArrayList<org.gcube.datatransfer.common.outcome.FileTransferOutcome> getTransferObjectOutCome(String transferId) throws Exception
Exception
public org.gcube.datatransfer.common.outcome.TreeTransferOutcome getTransferTreeOutCome(String transferId) throws Exception
Exception
public org.gcube.datatransfer.agent.stubs.datatransferagent.MonitorTransferReportMessage getTrasferProgress(String transferId)
public org.gcube.datatransfer.common.agent.Types.MonitorTransferReportMessage getTrasferProgressType(String transferId)
Copyright © 2015. All Rights Reserved.