public abstract class UFTPBaseRequest extends Object
Modifier and Type | Field and Description |
---|---|
protected static org.apache.log4j.Logger |
logger |
Constructor and Description |
---|
UFTPBaseRequest() |
Modifier and Type | Method and Description |
---|---|
protected abstract String |
getRequestType() |
protected String |
readResponse(InputStream is) |
String |
sendTo(InetAddress server,
int port)
utility method to send this job to a server.
|
String |
sendTo(Socket s)
utility method to send this job to a socket
|
abstract void |
writeEncoded(OutputStream os)
writes out the request in properties format 'client-ip=...' 'send=...' etc
|
public abstract void writeEncoded(OutputStream os) throws IOException
os
- output stream where the options are written toIOException
protected abstract String getRequestType()
public String sendTo(InetAddress server, int port) throws IOException
server
- server addressport
- server portIOException
public String sendTo(Socket s) throws IOException
s
- socket to send the job toIOException
protected String readResponse(InputStream is) throws IOException
IOException
Copyright © 2010–2016 UNICORE. All rights reserved.