com.sleepycat.je.rep.impl.networkRestore
Class FeederManager.Lease

java.lang.Object
  extended by java.util.TimerTask
      extended by com.sleepycat.je.rep.impl.networkRestore.FeederManager.Lease
All Implemented Interfaces:
Runnable
Enclosing class:
FeederManager

 class FeederManager.Lease
extends TimerTask

Provides the lease mechanism used to maintain a handle to the DbBackup object across Server client disconnects.


Constructor Summary
FeederManager.Lease(int id, long duration, DbBackup dbbackup)
           
 
Method Summary
 DbBackup getOpenDbBackup()
           
 void run()
           
 DbBackup terminate()
          Fetches the leased DbBackup instance and terminates the lease.
 
Methods inherited from class java.util.TimerTask
cancel, scheduledExecutionTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FeederManager.Lease

public FeederManager.Lease(int id,
                           long duration,
                           DbBackup dbbackup)
Method Detail

run

public void run()
Specified by:
run in interface Runnable
Specified by:
run in class TimerTask

terminate

public DbBackup terminate()
Fetches the leased DbBackup instance and terminates the lease.

Returns:
the dbBackup instance, if the lease hasn't already been terminated

getOpenDbBackup

public DbBackup getOpenDbBackup()


Copyright (c) 2004-2010 Oracle. All rights reserved.