public abstract class AbstractTransfer extends Object implements Runnable
Modifier and Type | Field and Description |
---|---|
protected static String |
_INFO_ARGS |
protected static int |
block |
protected int |
blocksize |
protected String |
fileinfo |
protected static String |
fileInfo |
protected String |
filename |
protected R66Future |
future |
protected long |
id |
protected static long |
idt |
protected static boolean |
ismd5 |
protected boolean |
isMD5 |
protected static String |
localFilename |
protected static WaarpLogger |
logger
Internal Logger
|
protected static String |
NO_INFO_ARGS |
protected static boolean |
nolog |
protected boolean |
normalInfoAsWarn |
protected String |
remoteHost |
protected static String |
rhost |
protected static String |
rule |
protected String |
rulename |
protected static boolean |
snormalInfoAsWarn |
protected Timestamp |
startTime |
protected static Timestamp |
ttimestart |
Modifier | Constructor and Description |
---|---|
protected |
AbstractTransfer(Class<?> clasz,
R66Future future,
String filename,
String rulename,
String fileinfo,
boolean isMD5,
String remoteHost,
int blocksize,
long id,
Timestamp timestart) |
Modifier and Type | Method and Description |
---|---|
protected static void |
clear() |
protected void |
finalizeInErrorTransferRequest(ClientRunner runner,
DbTaskRunner taskRunner,
ErrorCode code)
Shared code for finalize one Transfer request in error
|
List<String> |
getLocalFiles(DbRule dbrule,
String[] localfilenames) |
protected static boolean |
getParams(String[] args,
boolean submitOnly)
Parse the parameter and set current values
|
protected static boolean |
getParamsInternal(String[] args)
Internal getParams without configuration initialization, but still as
first argument
|
List<String> |
getRemoteFiles(DbRule dbrule,
String[] localfilenames,
String requested,
NetworkTransaction networkTransaction) |
protected DbTaskRunner |
initRequest()
Initiate the Request and return a potential DbTaskRunner
|
protected static void |
prepareKoOutputFormat(R66Future future,
OutputFormat outputFormat) |
protected static void |
prepareKoOutputFormat(R66Future future,
R66Result result,
OutputFormat outputFormat) |
protected static void |
prepareOkOutputFormat(long delay,
R66Result result,
OutputFormat outputFormat) |
protected static void |
prepareSubmitKoOutputFormat(R66Future future,
DbTaskRunner runner,
OutputFormat outputFormat) |
protected static void |
prepareSubmitOkOutputFormat(DbTaskRunner runner,
OutputFormat outputFormat) |
static boolean |
sendValidPacket(DbHostAuth host,
LocalChannelReference localChannelReference,
AbstractLocalPacket packet,
R66Future future) |
void |
setNormalInfoAsWarn(boolean normalInfoAsWarn1) |
static LocalChannelReference |
tryConnect(DbHostAuth host,
R66Future future,
NetworkTransaction networkTransaction)
Helper to connect
|
protected static volatile WaarpLogger logger
protected static final String _INFO_ARGS
protected static final String NO_INFO_ARGS
protected final R66Future future
protected final String filename
protected final String rulename
protected final String fileinfo
protected final boolean isMD5
protected final String remoteHost
protected final int blocksize
protected final long id
protected final Timestamp startTime
protected boolean normalInfoAsWarn
protected static String rhost
protected static String localFilename
protected static String rule
protected static String fileInfo
protected static boolean ismd5
protected static int block
protected static boolean nolog
protected static long idt
protected static Timestamp ttimestart
protected static boolean snormalInfoAsWarn
protected AbstractTransfer(Class<?> clasz, R66Future future, String filename, String rulename, String fileinfo, boolean isMD5, String remoteHost, int blocksize, long id, Timestamp timestart)
clasz
- Class of Client Transferfuture
- filename
- rulename
- fileinfo
- isMD5
- remoteHost
- blocksize
- id
- public static boolean sendValidPacket(DbHostAuth host, LocalChannelReference localChannelReference, AbstractLocalPacket packet, R66Future future)
host
- localChannelReference
- packet
- future
- protected DbTaskRunner initRequest()
protected static void clear()
protected static boolean getParams(String[] args, boolean submitOnly)
args
- submitOnly
- True if the client is only a submitter (through
database)protected static boolean getParamsInternal(String[] args)
args
- protected void finalizeInErrorTransferRequest(ClientRunner runner, DbTaskRunner taskRunner, ErrorCode code)
runner
- taskRunner
- public void setNormalInfoAsWarn(boolean normalInfoAsWarn1)
public List<String> getRemoteFiles(DbRule dbrule, String[] localfilenames, String requested, NetworkTransaction networkTransaction)
public static LocalChannelReference tryConnect(DbHostAuth host, R66Future future, NetworkTransaction networkTransaction)
host
- future
- networkTransaction
- protected static void prepareKoOutputFormat(R66Future future, R66Result result, OutputFormat outputFormat)
protected static void prepareKoOutputFormat(R66Future future, OutputFormat outputFormat)
protected static void prepareOkOutputFormat(long delay, R66Result result, OutputFormat outputFormat)
protected static void prepareSubmitKoOutputFormat(R66Future future, DbTaskRunner runner, OutputFormat outputFormat)
protected static void prepareSubmitOkOutputFormat(DbTaskRunner runner, OutputFormat outputFormat)
Copyright © 2009–2020 Waarp. All rights reserved.