de.fzj.unicore.uas.client
Class ByteIOBaseClient

java.lang.Object
  extended by de.fzj.unicore.wsrflite.xmlbeans.client.BaseWSRFClient
      extended by de.fzj.unicore.uas.client.BaseUASClient
          extended by de.fzj.unicore.uas.client.FileTransferClient
              extended by de.fzj.unicore.uas.client.ByteIOBaseClient
All Implemented Interfaces:
FileTransferClient.IChunked, FileTransferClient.IMonitorable
Direct Known Subclasses:
RByteIOClient, SByteIOClient

public abstract class ByteIOBaseClient
extends FileTransferClient
implements FileTransferClient.IChunked, FileTransferClient.IMonitorable

base class for the byteio clients

Author:
schuller

Nested Class Summary
 
Nested classes/interfaces inherited from class de.fzj.unicore.uas.client.FileTransferClient
FileTransferClient.IChunked, FileTransferClient.IMonitorable
 
Field Summary
protected  int chunksize
           
static int DEFAULT_CHUNKSIZE
           
protected  ProgressListener<java.lang.Long> progressListener
           
 
Fields inherited from class de.fzj.unicore.uas.client.FileTransferClient
append
 
Fields inherited from class de.fzj.unicore.wsrflite.xmlbeans.client.BaseWSRFClient
epr, proxyMaker, retryDecider, securityProperties, url
 
Constructor Summary
ByteIOBaseClient(org.w3.x2005.x08.addressing.EndpointReferenceType epr)
           
ByteIOBaseClient(org.w3.x2005.x08.addressing.EndpointReferenceType epr, IUASSecurityProperties sec)
           
ByteIOBaseClient(java.lang.String url, org.w3.x2005.x08.addressing.EndpointReferenceType epr)
           
ByteIOBaseClient(java.lang.String url, org.w3.x2005.x08.addressing.EndpointReferenceType epr, IUASSecurityProperties sec)
           
 
Method Summary
 long getSize()
          get the size of the (export) file
 void setChunksize(int chunksize)
           
 void setProgressListener(ProgressListener<java.lang.Long> listener)
           
 
Methods inherited from class de.fzj.unicore.uas.client.FileTransferClient
getParentStorage, getProtocol, getResourcePropertiesDocument, getSource, getStatus, getStatusSummary, getTarget, getTransferredBytes, readAllData, setAppend, writeAllData
 
Methods inherited from class de.fzj.unicore.uas.client.BaseUASClient
extractReceiver, getSecurityProperties, getServerVersion, setRetryDefaults
 
Methods inherited from class de.fzj.unicore.wsrflite.xmlbeans.client.BaseWSRFClient
checkConnection, checkConnection, destroy, getConnectionStatus, getCurrentTime, getEPR, getLT, getMultipleResourceProperties, getResourceProperty, getResourcePropertyDocument, GetResourcePropertyDocument, getRP, getTerminationTime, getUpdateInterval, getUrl, makeProxy, queryResourceProperties, setConnectionTimeout, setConnectionTimeout, setRetryHandler, setTerminationTime, setUpdateInterval
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_CHUNKSIZE

public static final int DEFAULT_CHUNKSIZE
See Also:
Constant Field Values

chunksize

protected int chunksize

progressListener

protected ProgressListener<java.lang.Long> progressListener
Constructor Detail

ByteIOBaseClient

public ByteIOBaseClient(java.lang.String url,
                        org.w3.x2005.x08.addressing.EndpointReferenceType epr,
                        IUASSecurityProperties sec)
                 throws java.lang.Exception
Parameters:
url -
epr -
sec -
Throws:
java.lang.Exception

ByteIOBaseClient

public ByteIOBaseClient(org.w3.x2005.x08.addressing.EndpointReferenceType epr,
                        IUASSecurityProperties sec)
                 throws java.lang.Exception
Parameters:
epr -
sec -
Throws:
java.lang.Exception

ByteIOBaseClient

public ByteIOBaseClient(java.lang.String url,
                        org.w3.x2005.x08.addressing.EndpointReferenceType epr)
                 throws java.lang.Exception
Parameters:
url -
epr -
Throws:
java.lang.Exception

ByteIOBaseClient

public ByteIOBaseClient(org.w3.x2005.x08.addressing.EndpointReferenceType epr)
                 throws java.lang.Exception
Parameters:
epr -
Throws:
java.lang.Exception
Method Detail

getSize

public long getSize()
get the size of the (export) file

Specified by:
getSize in class FileTransferClient
Returns:

setChunksize

public void setChunksize(int chunksize)
Specified by:
setChunksize in interface FileTransferClient.IChunked

setProgressListener

public void setProgressListener(ProgressListener<java.lang.Long> listener)
Specified by:
setProgressListener in interface FileTransferClient.IMonitorable


Copyright © 2006-2010 Research Center Juelich. All Rights Reserved.