|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.globus.transfer.reliable.service.TransferClient
Transfer Client
| Field Summary | |
private int |
attempts
|
private org.ietf.jgss.GSSCredential |
credential
|
private org.globus.util.GlobusURL |
destinationGlobusURL
|
private org.globus.ftp.GridFTPClient |
destinationHost
|
private String |
destinationPath
|
private String |
destinationSubjectName
|
private static org.globus.util.I18n |
i18n
|
private static org.apache.commons.logging.Log |
logger
|
private MyMarkerListener |
markerListener
|
private int |
parallelism
|
private String |
permissions
|
private int |
requestId
|
private RFTOptionsType |
rftOptions
|
private ResourcePropertySet |
rpSet
|
private long |
size
|
private org.globus.util.GlobusURL |
sourceGlobusURL
|
private org.globus.ftp.GridFTPClient |
sourceHost
|
private String |
sourcePath
|
private String |
sourceSubjectName
|
private int |
status
|
private int |
tcpBufferSize
|
private TotalBytesTransferredResource |
totalBytes
|
private ResourceProperty |
totalBytesTransferredRP
|
private int |
transferid
|
private URLExpander |
urlExpander
|
private String |
userName
|
| Constructor Summary | |
TransferClient()
|
|
| Method Summary | |
void |
authenticate()
|
private void |
authenticateDestination()
|
private void |
authenticateSource()
|
void |
authorize()
Sets the authorization attribute of the TransferClient object |
private void |
authorizeDestination()
|
private void |
authorizeSource()
|
boolean |
checkForReuse(int requestId,
org.globus.util.GlobusURL targetSource,
org.globus.util.GlobusURL targetDest)
Check for reuse of this transferClient |
void |
close()
Closes the sockets to source and destination hosts |
void |
deleteDestination()
|
org.globus.util.GlobusURL |
getDestinationURL()
Gets the destinationURL attribute of the TransferClient object |
int |
getRequestId()
|
long |
getSize()
Gets the size attribute of the TransferClient object |
org.globus.util.GlobusURL |
getSourceURL()
Gets the sourceURL attribute of the TransferClient object |
int |
getStatus()
Gets the status attribute of the TransferClient object |
int |
getTransferID()
Gets the transferID attribute of the TransferClient object |
URLExpander |
getUrlExpander()
Gets the urlExpander attribute of the TransferClient object |
String |
getUserName()
|
private boolean |
isTransientException(Exception e)
|
private void |
normalExtendedTransfer()
Performs the normal extended transfer |
private void |
normalNonExtendedTransfer()
Performs normal non-extended transfer |
private void |
noThirdPartyExtendedTransfer()
Performs notptExtendedTransfer |
private void |
noThirdPartyNonExtendedTransfer()
Performs notpt non-extended transfer |
void |
setAttempts(int attempts)
|
void |
setCredential(org.ietf.jgss.GSSCredential credential)
Sets the credential to be used for this transfer |
void |
setDestinationHost(String destURL)
Sets the destinationHost attribute of the TransferClient object |
private void |
setDestinationOptions()
|
void |
setDestinationPath(String destPath)
Sets the destinationPath attribute of the TransferClient object |
void |
setModeE()
|
void |
setOptions(RFTOptionsType rftOptions)
|
private void |
setPermissions()
|
void |
setRequestId(int requestId)
|
void |
setResourcePropertySet(ResourcePropertySet rpSet)
|
void |
setRestartMarker(String marker)
Sets the restartMarker attribute of the TransferClient object |
void |
setRFTOptions()
Sets the rFTOptions attribute of the TransferClient object |
void |
setSourceHost(String sourceURL)
Sets the sourceHost attribute of the TransferClient object |
private void |
setSourceOptions()
|
void |
setSourcePath(String sourcePath)
Sets the sourcePath attribute of the TransferClient object |
void |
setStatus(int status)
Sets the status attribute of the TransferClient object |
void |
setStriping()
Enable Striping if the servers support it |
void |
setTransferId(int transferId)
Sets the transferId attribute of the TransferClient object |
void |
setUserName(String userName)
|
void |
transfer(boolean useExtended)
Performs the actual transfer |
private void |
updatePermissions()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private org.globus.ftp.GridFTPClient sourceHost
private org.globus.ftp.GridFTPClient destinationHost
private String sourcePath
private String destinationPath
private int status
private int transferid
private int parallelism
private int tcpBufferSize
private org.ietf.jgss.GSSCredential credential
private org.globus.util.GlobusURL sourceGlobusURL
private org.globus.util.GlobusURL destinationGlobusURL
private long size
private RFTOptionsType rftOptions
private String sourceSubjectName
private String destinationSubjectName
private MyMarkerListener markerListener
private URLExpander urlExpander
private static org.apache.commons.logging.Log logger
private static org.globus.util.I18n i18n
private int requestId
private ResourcePropertySet rpSet
private ResourceProperty totalBytesTransferredRP
private TotalBytesTransferredResource totalBytes
private String userName
private String permissions
private int attempts
| Constructor Detail |
public TransferClient()
| Method Detail |
public void setRequestId(int requestId)
requestId - public int getRequestId()
public void setUserName(String userName)
userName - public String getUserName()
public void setAttempts(int attempts)
attempts - public void setResourcePropertySet(ResourcePropertySet rpSet)
rpSet -
public void setSourceHost(String sourceURL)
throws RftException,
RftTransientException,
RftDBException
sourceURL - The new sourceHost value
RftException
RftTransientException
RftDBException
public void setDestinationHost(String destURL)
throws RftException,
RftTransientException,
RftDBException
destURL -
RftException
RftTransientException
RftDBExceptionpublic org.globus.util.GlobusURL getSourceURL()
public org.globus.util.GlobusURL getDestinationURL()
public void setStatus(int status)
status - The new status valuepublic void setCredential(org.ietf.jgss.GSSCredential credential)
public void setTransferId(int transferId)
transferId - The new transferId valuepublic long getSize()
public URLExpander getUrlExpander()
public boolean checkForReuse(int requestId,
org.globus.util.GlobusURL targetSource,
org.globus.util.GlobusURL targetDest)
requestId - targetSource - targetDest -
public void authorize()
throws RftException
RftExceptionprivate void authorizeSource()
private void authorizeDestination()
public int getStatus()
public void setDestinationPath(String destPath)
destPath - The new destinationPath valuepublic int getTransferID()
public void setSourcePath(String sourcePath)
sourcePath - The new sourcePath valuepublic void setOptions(RFTOptionsType rftOptions)
rftOptions -
public void setRFTOptions()
throws RftException
RftException
private void setSourceOptions()
throws org.globus.ftp.exception.ServerException,
IOException
org.globus.ftp.exception.ServerException
IOException
private void setDestinationOptions()
throws org.globus.ftp.exception.ServerException,
IOException
org.globus.ftp.exception.ServerException
IOException
public void authenticate()
throws RftException
RftException
private void authenticateSource()
throws RftException
RftException
private void authenticateDestination()
throws RftException
RftException
public void setModeE()
throws RftException
RftExceptionpublic void setRestartMarker(String marker)
marker - The new restartMarker valuepublic void close()
private void updatePermissions()
throws RftException
RftException
public void transfer(boolean useExtended)
throws RftException,
RftTransientException
useExtended -
RftException
RftTransientExceptionpublic void deleteDestination()
private void setPermissions()
throws RftException
RftExceptionprivate boolean isTransientException(Exception e)
public void setStriping()
throws RftException
IOException
org.globus.ftp.exception.ServerException
RftException
private void noThirdPartyNonExtendedTransfer()
throws RftTransientException
RftTransientException
private void noThirdPartyExtendedTransfer()
throws RftTransientException,
RftException
RftTransientException
RftException
private void normalExtendedTransfer()
throws RftTransientException
RftTransientException
private void normalNonExtendedTransfer()
throws RftTransientException
RftTransientException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||