public class FileTransferBase extends Object
| Modifier and Type | Field and Description |
|---|---|
protected org.unigrids.services.atomic.types.ProtocolType.Enum |
chosenProtocol |
protected Long |
endByte |
protected Properties |
extraParameterSource |
protected boolean |
failOnError
whether the job processing should fail if an error occurs
|
protected String |
from |
protected Mode |
mode
the creation mode
|
protected List<org.unigrids.services.atomic.types.ProtocolType.Enum> |
preferredProtocols |
protected boolean |
recurse |
protected Long |
startByte |
protected boolean |
timing |
protected String |
to |
| Constructor and Description |
|---|
FileTransferBase() |
| Modifier and Type | Method and Description |
|---|---|
org.unigrids.services.atomic.types.ProtocolType.Enum |
getChosenProtocol() |
Long |
getEndByte() |
String |
getFrom() |
Mode |
getMode() |
List<org.unigrids.services.atomic.types.ProtocolType.Enum> |
getPreferredProtocols() |
protected long |
getRangeSize()
get the number of bytes in the byte range, or "-1" if the range is open-ended
|
Long |
getStartByte() |
String |
getTo() |
protected boolean |
hasWildCards(File file) |
boolean |
hasWildCards(String name) |
boolean |
isFailOnError() |
protected boolean |
isRange()
checks if a byte range is defined
|
boolean |
isTiming() |
protected boolean |
isValidDirectory(String remotePath,
de.fzj.unicore.uas.client.StorageClient sms)
check if the given path denotes a valid remote directory
|
protected Map<String,String> |
makeExtraParameters(org.unigrids.services.atomic.types.ProtocolType.Enum protocol) |
File[] |
resolveWildCards(File original) |
void |
setEndByte(Long endByte) |
void |
setExtraParameterSource(Properties properties) |
void |
setFailOnError(boolean failOnError) |
void |
setFrom(String from) |
void |
setPreferredProtocols(List<org.unigrids.services.atomic.types.ProtocolType.Enum> preferredProtocols) |
void |
setRecurse(boolean recurse) |
void |
setStartByte(Long startByte) |
void |
setTiming(boolean timing) |
void |
setTo(String to) |
protected Properties extraParameterSource
protected boolean timing
protected boolean recurse
protected String from
protected String to
protected Long startByte
protected Long endByte
protected Mode mode
protected boolean failOnError
protected List<org.unigrids.services.atomic.types.ProtocolType.Enum> preferredProtocols
protected org.unigrids.services.atomic.types.ProtocolType.Enum chosenProtocol
protected Map<String,String> makeExtraParameters(org.unigrids.services.atomic.types.ProtocolType.Enum protocol)
public String getTo()
public String getFrom()
public void setTo(String to)
public void setFrom(String from)
public Mode getMode()
public boolean isFailOnError()
public boolean isTiming()
public void setTiming(boolean timing)
public void setFailOnError(boolean failOnError)
public List<org.unigrids.services.atomic.types.ProtocolType.Enum> getPreferredProtocols()
public void setPreferredProtocols(List<org.unigrids.services.atomic.types.ProtocolType.Enum> preferredProtocols)
public void setExtraParameterSource(Properties properties)
public void setRecurse(boolean recurse)
protected boolean isValidDirectory(String remotePath, de.fzj.unicore.uas.client.StorageClient sms)
remotePath - - the pathsms - - the storagetrue if the remote directory exists and is a directoryprotected boolean hasWildCards(File file)
public boolean hasWildCards(String name)
public org.unigrids.services.atomic.types.ProtocolType.Enum getChosenProtocol()
public Long getStartByte()
public void setStartByte(Long startByte)
public Long getEndByte()
public void setEndByte(Long endByte)
protected boolean isRange()
true iff both startByte and endByte are definedprotected long getRangeSize()
Copyright © 2011–2014 The Apache Software Foundation. All rights reserved.