|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.globus.transfer.reliable.service.cache.ThirdPartyConnectionImpl
public class ThirdPartyConnectionImpl
Class for a third party connection
| Field Summary | |
|---|---|
protected java.lang.String |
connectionId
|
protected SingleConnectionImpl |
destination
|
protected java.lang.String |
dstCS
|
protected long |
lastUsed
|
private static int |
numberFDs
|
protected SingleConnectionImpl |
source
|
protected java.lang.String |
srcCS
|
protected int |
type
|
protected java.lang.String |
userDN
|
| Constructor Summary | |
|---|---|
ThirdPartyConnectionImpl(ConnectionParameter params,
org.ietf.jgss.GSSCredential credential,
java.lang.String sourceSubjectName,
java.lang.String destSubjectName)
|
|
| Method Summary | |
|---|---|
boolean |
checkConnectionIntegrity()
Check if 3rd party connection is still alive and ok |
boolean |
checkForReuse(ConnectionParameter params)
Check if the existing connection can be reused for another transfer. |
void |
closeConnection()
Close the third party connection |
org.globus.ftp.MlsxEntry |
doMlstOnSource()
|
java.lang.String |
getDestinationPath()
|
long |
getLastUsed()
|
int |
getNumberFDs()
|
java.lang.String |
getSourcePath()
|
int |
getType()
|
void |
normalExtendedTransfer(MyMarkerListener markerListener)
Perform an extended 3rd party transfer |
void |
normalNonExtendedTransfer(MyMarkerListener markerListener)
Perform a non-extended 3rd party transfer |
void |
setPermissionsOnDestination(java.lang.String permissions)
Set permissions of files on the destination |
void |
setRestartMarker(java.lang.String marker)
Set the restartMarker attribute of the TransferClient object. |
void |
successfulTransfer()
|
void |
updateForReuse(ConnectionParameter params)
|
void |
updateLastUsed()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected SingleConnectionImpl source
protected SingleConnectionImpl destination
protected java.lang.String userDN
protected long lastUsed
protected java.lang.String connectionId
protected int type
private static final int numberFDs
protected java.lang.String srcCS
protected java.lang.String dstCS
| Constructor Detail |
|---|
public ThirdPartyConnectionImpl(ConnectionParameter params,
org.ietf.jgss.GSSCredential credential,
java.lang.String sourceSubjectName,
java.lang.String destSubjectName)
throws java.io.IOException,
org.globus.ftp.exception.ServerException,
RftTransientException,
RftException
java.io.IOException
org.globus.ftp.exception.ServerException
RftTransientException
RftException| Method Detail |
|---|
public void successfulTransfer()
successfulTransfer in interface Connection
public void setRestartMarker(java.lang.String marker)
throws RftTransientException
setRestartMarker in interface Connectionmarker - The new restartMarker value
RftTransientException - If setting restart marker on the
server failspublic void closeConnection()
closeConnection in interface Connectionpublic boolean checkForReuse(ConnectionParameter params)
checkForReuse in interface ConnectiontransferJob - rftOptions -
public boolean checkConnectionIntegrity()
checkConnectionIntegrity in interface Connectionpublic void updateForReuse(ConnectionParameter params)
updateForReuse in interface Connection
public void normalExtendedTransfer(MyMarkerListener markerListener)
throws RftTransientException
RftTransientException
public void normalNonExtendedTransfer(MyMarkerListener markerListener)
throws RftTransientException
RftTransientException
public org.globus.ftp.MlsxEntry doMlstOnSource()
throws RftException,
RftTransientException
RftException - If the file/dir doesn't exist
RftTransientException - If the mlst call fails on an existing
public void setPermissionsOnDestination(java.lang.String permissions)
throws RftException,
RftTransientException
permissions -
RftException - If the permissions are null
RftTransientException - If setting permissions failspublic int getType()
getType in interface Connectionpublic int getNumberFDs()
getNumberFDs in interface Connectionpublic long getLastUsed()
getLastUsed in interface Connectionpublic java.lang.String getSourcePath()
public java.lang.String getDestinationPath()
public void updateLastUsed()
updateLastUsed in interface Connection
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||