openr66.protocol.utils
Class TransferUtils

java.lang.Object
  extended by openr66.protocol.utils.TransferUtils

public class TransferUtils
extends Object

Utility class for transfers

Author:
Frederic Bregier

Constructor Summary
TransferUtils()
           
 
Method Summary
static void finalizeTaskWithNoSession(DbTaskRunner taskRunner, LocalChannelReference localChannelReference)
          Finalize a local task since only Post action has to be done
static R66Result restartTransfer(DbTaskRunner taskRunner, LocalChannelReference lcr)
          Try to restart one Transfer Runner Task
static StringBuilder stopSelectedTransfers(goldengate.common.database.DbSession dbSession, int limit, StringBuilder builder, R66Session session, String body, String startid, String stopid, Timestamp tstart, Timestamp tstop, String rule, String req, boolean pending, boolean transfer, boolean error)
          Stop all selected transfers
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransferUtils

public TransferUtils()
Method Detail

restartTransfer

public static R66Result restartTransfer(DbTaskRunner taskRunner,
                                        LocalChannelReference lcr)
                                 throws goldengate.common.database.exception.GoldenGateDatabaseException
Try to restart one Transfer Runner Task

Parameters:
taskRunner -
Returns:
the associated Result
Throws:
goldengate.common.database.exception.GoldenGateDatabaseException

stopSelectedTransfers

public static StringBuilder stopSelectedTransfers(goldengate.common.database.DbSession dbSession,
                                                  int limit,
                                                  StringBuilder builder,
                                                  R66Session session,
                                                  String body,
                                                  String startid,
                                                  String stopid,
                                                  Timestamp tstart,
                                                  Timestamp tstop,
                                                  String rule,
                                                  String req,
                                                  boolean pending,
                                                  boolean transfer,
                                                  boolean error)
Stop all selected transfers

Parameters:
dbSession -
limit -
builder -
session -
body -
startid -
stopid -
tstart -
tstop -
rule -
req -
pending -
transfer -
error -
Returns:
the associated StringBuilder if the one given as parameter is not null

finalizeTaskWithNoSession

public static void finalizeTaskWithNoSession(DbTaskRunner taskRunner,
                                             LocalChannelReference localChannelReference)
                                      throws OpenR66RunnerErrorException
Finalize a local task since only Post action has to be done

Parameters:
taskRunner -
localChannelReference -
Throws:
OpenR66RunnerErrorException


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