|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.globus.transfer.reliable.service.TransferWork
Does the actual transfer
| Field Summary | |
private int |
attempts
|
private ReliableFileTransferDbAdapter |
dbAdapter
|
private DeleteClient |
deleteClient
|
private static Vector |
deleteClients
|
private RFTFaultResourcePropertyType |
fault
|
private static org.globus.util.I18n |
i18n
|
private static org.apache.commons.logging.Log |
logger
|
private int |
maxAttempts
|
private OverallStatus |
overallStatus
|
private ResourceProperty |
overallStatusRP
|
private int |
requestId
|
private RequestStatusType |
requestStatusType
|
private ResourceProperty |
requestStatusTypeRP
|
private RFTResourceManager |
resourceManager
|
private ResourcePropertySet |
rpSet
|
private int |
status
|
private TransferClient |
transferClient
|
private static Vector |
transferClients
List of transfer clients to be used across resources for same user. |
private TransferType |
transferJob
|
private commonj.work.WorkManager |
workManager
|
| Constructor Summary | |
TransferWork(int requestId,
ResourcePropertySet rpSet,
TransferType transferJob)
Constructor for the TransferWork object |
|
| Method Summary | |
private boolean |
checkDelete()
|
static void |
closeTransferClients(int requestId)
Closes the active transfer clients when a resource is removed |
private DeleteClient |
getDeleteClient()
|
private TransferClient |
getNewClient()
|
int |
getStatus()
Gets the status attribute of the TransferWork object |
private TransferClient |
getTransferClient()
Gets the transferClient attribute of the TransferWork object |
private String |
getTransferIdentifiers()
|
boolean |
isDaemon()
|
private void |
processStates()
|
void |
release()
releases the thread resources |
void |
run()
Main processing method for the TransferWork object |
private void |
setFault(Exception e)
|
private void |
setRequestStatus()
Sets the request status resource property |
void |
setResourceManager(RFTResourceManager resourceManager)
|
void |
setTransferJob(TransferType transferJob)
|
void |
setWorkManager(commonj.work.WorkManager workManager)
|
private void |
startDirTransfer()
|
private void |
startNewTransfer()
|
private void |
statusChanged(int status)
generates notification of status changes of a request |
static void |
stopActiveTransfers(int requestId,
int fromId,
int toId)
used to stop the active transfers. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private TransferType transferJob
private int status
private int attempts
private int requestId
private ReliableFileTransferDbAdapter dbAdapter
private static org.apache.commons.logging.Log logger
private static org.globus.util.I18n i18n
private static Vector transferClients
private static Vector deleteClients
private OverallStatus overallStatus
private ResourceProperty overallStatusRP
private RequestStatusType requestStatusType
private ResourceProperty requestStatusTypeRP
private ResourcePropertySet rpSet
private int maxAttempts
private commonj.work.WorkManager workManager
private RFTFaultResourcePropertyType fault
private TransferClient transferClient
private DeleteClient deleteClient
private RFTResourceManager resourceManager
| Constructor Detail |
public TransferWork(int requestId,
ResourcePropertySet rpSet,
TransferType transferJob)
requestId - rpSet - transferJob - | Method Detail |
public void setTransferJob(TransferType transferJob)
transferJob - public boolean isDaemon()
isDaemon in interface commonj.work.Workpublic void release()
release in interface commonj.work.Workpublic int getStatus()
public void setResourceManager(RFTResourceManager resourceManager)
throws RftDBException
RftDBExceptionprivate void statusChanged(int status)
status - private void setRequestStatus()
public void setWorkManager(commonj.work.WorkManager workManager)
workManager -
public static void stopActiveTransfers(int requestId,
int fromId,
int toId)
requestId - toId - fromId - public static void closeTransferClients(int requestId)
requestId -
private TransferClient getTransferClient()
throws RftException,
RftTransientException,
RftDBException
RftException
RftTransientException
RftDBException
private DeleteClient getDeleteClient()
throws RftDBException,
RftException,
RftTransientException
RftDBException
RftException
RftTransientException
private TransferClient getNewClient()
throws RftException,
RftTransientException,
RftDBException
RftException
RftTransientException
RftDBExceptionprivate void setFault(Exception e)
private void processStates()
private void startDirTransfer()
private void startNewTransfer()
private boolean checkDelete()
public void run()
run in interface Runnableprivate String getTransferIdentifiers()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||