org.dspace.checker
Class LimitedCountDispatcher

java.lang.Object
  extended by org.dspace.checker.LimitedCountDispatcher
All Implemented Interfaces:
BitstreamDispatcher

public class LimitedCountDispatcher
extends Object
implements BitstreamDispatcher

Decorator that dispatches a specified number of bitstreams from a delegate dispatcher.

Author:
Jim Downing, Grace Carpenter, Nathan Sarr

Field Summary
 
Fields inherited from interface org.dspace.checker.BitstreamDispatcher
SENTINEL
 
Constructor Summary
LimitedCountDispatcher()
          Default constructor uses PluginManager
LimitedCountDispatcher(BitstreamDispatcher del)
          Constructor.
LimitedCountDispatcher(BitstreamDispatcher del, int count)
          Constructor.
 
Method Summary
 int next()
          Retreives the next bitstream to be checked.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LimitedCountDispatcher

public LimitedCountDispatcher()
Default constructor uses PluginManager


LimitedCountDispatcher

public LimitedCountDispatcher(BitstreamDispatcher del,
                              int count)
Constructor.

Parameters:
del - The bitstream distpatcher to delegate to.
count - the number of bitstreams to check.

LimitedCountDispatcher

public LimitedCountDispatcher(BitstreamDispatcher del)
Constructor.

Parameters:
del - The bitstream distpatcher to delegate to.
Method Detail

next

public int next()
Retreives the next bitstream to be checked.

Specified by:
next in interface BitstreamDispatcher
Returns:
the bitstream id
Throws:
SQLException - if database error occurs.


Copyright © 2010 DuraSpace. All Rights Reserved.