com.continuent.tungsten.replicator.management.tungsten
Class PurgeTask

java.lang.Object
  extended by com.continuent.tungsten.replicator.management.tungsten.PurgeTask
All Implemented Interfaces:
java.util.concurrent.Callable<java.lang.Integer>

public class PurgeTask
extends java.lang.Object
implements java.util.concurrent.Callable<java.lang.Integer>

This class implements a task to kill non-Tungsten sessions on the DBMS and return the number killed.


Constructor Summary
PurgeTask(TungstenProperties properties)
          Create a new purge task with properties containing login information.
 
Method Summary
 java.lang.Integer call()
          Execute a purge.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PurgeTask

public PurgeTask(TungstenProperties properties)
Create a new purge task with properties containing login information.

Parameters:
properties -
Method Detail

call

public java.lang.Integer call()
                       throws java.lang.Exception
Execute a purge. This requires a privileged account.

Specified by:
call in interface java.util.concurrent.Callable<java.lang.Integer>
Throws:
java.lang.Exception