openr66.client
Class AbstractTransfer

java.lang.Object
  extended by openr66.client.AbstractTransfer
All Implemented Interfaces:
Runnable
Direct Known Subclasses:
DirectTransfer, ProgressBarTransfer, RecvThroughClient, SendThroughClient, SubmitTransfer

public abstract class AbstractTransfer
extends Object
implements Runnable

Abstract class for Transfer operation

Author:
Frederic Bregier

Field Summary
protected static int block
           
protected  int blocksize
           
protected static SimpleDateFormat dateFormat
           
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 goldengate.common.logging.GgInternalLogger logger
          Internal Logger
protected static boolean nolog
           
protected  String remoteHost
           
protected static String rhost
           
protected static String rule
           
protected  String rulename
           
protected  Timestamp startTime
           
protected static Timestamp ttimestart
           
 
Constructor Summary
AbstractTransfer(Class<?> clasz, R66Future future, String filename, String rulename, String fileinfo, boolean isMD5, String remoteHost, int blocksize, long id, Timestamp timestart)
           
 
Method Summary
protected static boolean getParams(String[] args, boolean submitOnly)
          Parse the parameter and set current values
protected  DbTaskRunner initRequest()
          Initiate the Request and return a potential DbTaskRunner
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.lang.Runnable
run
 

Field Detail

logger

protected static volatile goldengate.common.logging.GgInternalLogger logger
Internal Logger


future

protected final R66Future future

filename

protected final String filename

rulename

protected final String rulename

fileinfo

protected final String fileinfo

isMD5

protected final boolean isMD5

remoteHost

protected final String remoteHost

blocksize

protected final int blocksize

id

protected final long id

startTime

protected final Timestamp startTime

rhost

protected static String rhost

localFilename

protected static String localFilename

rule

protected static String rule

fileInfo

protected static String fileInfo

ismd5

protected static boolean ismd5

block

protected static int block

nolog

protected static boolean nolog

idt

protected static long idt

ttimestart

protected static Timestamp ttimestart

dateFormat

protected static SimpleDateFormat dateFormat
Constructor Detail

AbstractTransfer

public AbstractTransfer(Class<?> clasz,
                        R66Future future,
                        String filename,
                        String rulename,
                        String fileinfo,
                        boolean isMD5,
                        String remoteHost,
                        int blocksize,
                        long id,
                        Timestamp timestart)
Parameters:
clasz - Class of Client Transfer
future -
filename -
rulename -
fileinfo -
isMD5 -
remoteHost -
blocksize -
id -
Method Detail

initRequest

protected DbTaskRunner initRequest()
Initiate the Request and return a potential DbTaskRunner

Returns:
null if an error occurs or a DbTaskRunner

getParams

protected static boolean getParams(String[] args,
                                   boolean submitOnly)
Parse the parameter and set current values

Parameters:
args -
submitOnly - True if the client is only a submitter (through database)
Returns:
True if all parameters were found and correct


Copyright © 2009-2012 Frederic Bregier. All Rights Reserved.