|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.globus.io.urlcopy.UrlCopy
| Field Summary | |
protected boolean |
appendMode
|
static int |
BUFF_SIZE
maximum buffer size to read or write when putting and getting files |
protected int |
bufferSize
|
protected boolean |
canceled
|
protected boolean |
dcau
|
protected Authorization |
dstAuth
|
protected GSSCredential |
dstCreds
|
protected GlobusURL |
dstUrl
|
protected List |
listeners
|
protected Authorization |
srcAuth
|
protected GSSCredential |
srcCreds
|
protected GlobusURL |
srcUrl
|
protected boolean |
thirdParty
|
| Constructor Summary | |
UrlCopy()
|
|
| Method Summary | |
void |
addUrlCopyListener(UrlCopyListener listener)
Adds url copy listener. |
void |
cancel()
Cancels the transfer in progress. |
void |
copy()
Performs the copy function. |
int |
getBufferSize()
Returns buffer size used for transfering data. |
boolean |
getDCAU()
|
Authorization |
getDestinationAuthorization()
Returns authorization type for the destination side for the url copy. |
GSSCredential |
getDestinationCredentials()
Returns credentials used for authenticating the destination side for the url copy. |
GlobusURL |
getDestinationUrl()
Returns destination url. |
protected GlobusInputStream |
getInputStream()
Returns input stream based on the source url |
protected GlobusOutputStream |
getOutputStream(long size)
Returns output stream based on the destination url. |
Authorization |
getSourceAuthorization()
Returns authorization type for the source side for the url copy. |
GSSCredential |
getSourceCredentials()
Returns credentials used for authenticating the source side for the url copy. |
GlobusURL |
getSourceUrl()
Returns source url. |
boolean |
isAppendMode()
Checks if append mode is enabled. |
boolean |
isCanceled()
Checks if the transfer was canceled. |
protected void |
negotiateDCAU(FTPClient src,
FTPClient dst)
|
void |
removeUrlCopyListener(UrlCopyListener listener)
Remove url copy listener |
void |
run()
Used for as a thread. |
void |
setAppendMode(boolean appendMode)
Enables/disables append mode. |
void |
setBufferSize(int size)
Sets buffer size for transfering data. |
void |
setCredentials(GSSCredential credentials)
Sets credentials to use for both sides. |
void |
setDCAU(boolean dcau)
|
void |
setDestinationAuthorization(Authorization auth)
Sets destination authorization type |
void |
setDestinationCredentials(GSSCredential dstCredentials)
Sets destination url credentials. |
void |
setDestinationUrl(GlobusURL dest)
Sets destination url. |
void |
setSourceAuthorization(Authorization auth)
Sets source authorization type |
void |
setSourceCredentials(GSSCredential srcCredentials)
Sets source url credentials. |
void |
setSourceUrl(GlobusURL source)
Sets source url. |
void |
setUseThirdPartyCopy(boolean thirdParty)
Enables/disables usage of third party transfers. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int BUFF_SIZE
protected int bufferSize
protected GSSCredential srcCreds
protected Authorization srcAuth
protected GSSCredential dstCreds
protected Authorization dstAuth
protected boolean dcau
protected boolean appendMode
protected GlobusURL srcUrl
protected GlobusURL dstUrl
protected boolean canceled
protected boolean thirdParty
protected List listeners
| Constructor Detail |
public UrlCopy()
| Method Detail |
public void setDCAU(boolean dcau)
public boolean getDCAU()
public void setCredentials(GSSCredential credentials)
credentials - user credentialspublic void setSourceCredentials(GSSCredential srcCredentials)
srcCredentials - source url credentials.public void setDestinationCredentials(GSSCredential dstCredentials)
dstCredentials - destination url credentials.public void setSourceAuthorization(Authorization auth)
auth - authorization type to perform for sourcepublic void setDestinationAuthorization(Authorization auth)
auth - authorization type to perform for destinationpublic GSSCredential getSourceCredentials()
public GSSCredential getDestinationCredentials()
public Authorization getSourceAuthorization()
public Authorization getDestinationAuthorization()
public void addUrlCopyListener(UrlCopyListener listener)
listener - url copy listenerpublic void removeUrlCopyListener(UrlCopyListener listener)
public void setBufferSize(int size)
size - size of the data bufferpublic int getBufferSize()
public void setAppendMode(boolean appendMode)
appendMode - if true, destination file
will be appended.public boolean isAppendMode()
public void setSourceUrl(GlobusURL source)
throws UrlCopyException
source - source url.
UrlCopyExceptionpublic GlobusURL getSourceUrl()
public void setDestinationUrl(GlobusURL dest)
throws UrlCopyException
dest - destination url
UrlCopyExceptionpublic GlobusURL getDestinationUrl()
public void setUseThirdPartyCopy(boolean thirdParty)
thirdParty - if true enable, false disablepublic void cancel()
public boolean isCanceled()
public void run()
run in interface Runnable
public void copy()
throws UrlCopyException
UrlCopyException - in case of an error.
protected GlobusInputStream getInputStream()
throws Exception
Exception
protected GlobusOutputStream getOutputStream(long size)
throws Exception
Exception
protected void negotiateDCAU(FTPClient src,
FTPClient dst)
throws IOException,
FTPException
IOException
FTPException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||