public class UFTPTransferRequest extends UFTPBaseRequest
Modifier and Type | Field and Description |
---|---|
static String |
REQUEST_TYPE |
logger
Constructor and Description |
---|
UFTPTransferRequest(InetAddress[] client,
String user,
String secret,
File file,
boolean send) |
UFTPTransferRequest(Properties properties)
build a job from the given string in the java properties format
'client-ip=...' 'send=...' 'file=-...' 'numcons=...' 'secret=....'
|
UFTPTransferRequest(String properties) |
Modifier and Type | Method and Description |
---|---|
String |
getExcludes() |
File |
getFile() |
String |
getGroup() |
String |
getIncludes() |
byte[] |
getKey() |
long |
getOffset() |
long |
getRateLimit() |
protected String |
getRequestType() |
int |
getStreams() |
boolean |
isAppend() |
boolean |
isCompress() |
boolean |
isSend() |
boolean |
isSession() |
static boolean |
isTransferRequest(Properties props) |
void |
setAppend(boolean append) |
void |
setCompress(boolean compress) |
void |
setExcludes(String excludes) |
void |
setGroup(String group) |
void |
setIncludes(String includes) |
void |
setKey(byte[] key) |
void |
setOffset(long offset) |
void |
setRateLimit(long rateLimit) |
void |
setStreams(int streams) |
String |
toString() |
void |
writeEncoded(OutputStream os)
writes out the job in properties format 'client-ip=...' 'send=...' etc
|
getClient, getCreatedTime, getSecret, getUser, loadProperties, readResponse, sendTo, sendTo
public static final String REQUEST_TYPE
public UFTPTransferRequest(InetAddress[] client, String user, String secret, File file, boolean send)
client
- - acceptable IP address(es) of the clientuser
- - Unix user namesecret
- - one-time password to usefile
- - the file to send/receivesend
- - true
if server should send datapublic UFTPTransferRequest(Properties properties)
properties
- propertiesUnknownHostException
IOException
- when encoded properties cannot be readpublic UFTPTransferRequest(String properties) throws UnknownHostException, IOException
UnknownHostException
IOException
public void writeEncoded(OutputStream os) throws IOException
writeEncoded
in class UFTPBaseRequest
os
- output stream where the options are written toIOException
protected String getRequestType()
getRequestType
in class UFTPBaseRequest
public boolean isSession()
public static boolean isTransferRequest(Properties props)
public boolean isSend()
public File getFile()
public int getStreams()
public void setStreams(int streams)
public String getGroup()
public void setGroup(String group)
public boolean isCompress()
public void setCompress(boolean compress)
public byte[] getKey()
public void setKey(byte[] key)
public boolean isAppend()
public void setAppend(boolean append)
public long getRateLimit()
public void setRateLimit(long rateLimit)
public String getIncludes()
public void setIncludes(String includes)
public String getExcludes()
public void setExcludes(String excludes)
public long getOffset()
public void setOffset(long offset)
Copyright © 2010–2018 UNICORE. All rights reserved.