QJCC homepage

biz.chitec.quarterback.gjsa.server
Class ListBurstMaker

java.lang.Object
  extended bybiz.chitec.quarterback.gjsa.server.BurstMaker
      extended bybiz.chitec.quarterback.gjsa.server.ListBurstMaker

public class ListBurstMaker
extends BurstMaker

GJSA server burst maker for lists

Version:
$Id: 7b2a6524001ba9a705be15518e8e2d69bfa59aaf $
Author:
chitec/Dirk Hillbrecht 2000-2003, cantamen/Dirk Hillbrecht 2003-2005 Distributed under the terms of the GNU LGPL.

Nested Class Summary
 
Nested classes inherited from class biz.chitec.quarterback.gjsa.server.BurstMaker
 
Field Summary
private  java.util.List all
          Data to process
private  boolean cntbl
          Flag whether data stream is linear continuable
private  int maxall
          Restriction for maximum amout of data being sent regardless of list length
 
Fields inherited from class biz.chitec.quarterback.gjsa.server.BurstMaker
loggable
 
Constructor Summary
ListBurstMaker(java.util.List allx)
          Initialize burst maker with data to send, logging is turned on, all data is processed
ListBurstMaker(java.util.List allx, boolean loggablex)
          Initialize burst maker with data and logging flag, all data is gone through
ListBurstMaker(java.util.List allx, int maxallx)
          Initialize burst maker with data and restriction count, logging is turned on
ListBurstMaker(java.util.List allx, int maxallx, boolean loggablex)
          Initialize the burst maker with data, maximum reply count and logging flag Data of the list is returned chunkwise.
 
Method Summary
 java.util.List getReplyPart(int start, int num)
          constructs a part of the answer.
 boolean linearContinueable()
          returns whether more data is available.
 
Methods inherited from class biz.chitec.quarterback.gjsa.server.BurstMaker
burstIterator, burstIterator, elementIterator, elementIterator, getCompleteReply, getCompleteReply, getRefNr, isLoggable, iterator, iterator, setLoggable, setRefNr
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

all

private java.util.List all
Data to process


maxall

private int maxall
Restriction for maximum amout of data being sent regardless of list length


cntbl

private boolean cntbl
Flag whether data stream is linear continuable

Constructor Detail

ListBurstMaker

public ListBurstMaker(java.util.List allx,
                      int maxallx,
                      boolean loggablex)
Initialize the burst maker with data, maximum reply count and logging flag Data of the list is returned chunkwise. Number of data to return can be restricted regardless of element count in data list. Logging flag of BurstMaker can be set.

Parameters:
allx - Data to send out
maxallx - Maximum count of data to send out. If allx is longer, rest will be ignored
loggablex - Logging flag to be kept internally

ListBurstMaker

public ListBurstMaker(java.util.List allx,
                      int maxallx)
Initialize burst maker with data and restriction count, logging is turned on

Parameters:
allx - Data to send out
maxallx - Maximum count of data to send out. If allx is longer, rest will be ignored

ListBurstMaker

public ListBurstMaker(java.util.List allx,
                      boolean loggablex)
Initialize burst maker with data and logging flag, all data is gone through

Parameters:
allx - Data to send out
loggablex - Logging flag to be kept internally

ListBurstMaker

public ListBurstMaker(java.util.List allx)
Initialize burst maker with data to send, logging is turned on, all data is processed

Parameters:
allx - Data to send out
Method Detail

getReplyPart

public java.util.List getReplyPart(int start,
                                   int num)
Description copied from class: BurstMaker
constructs a part of the answer. This method must be implemented by any actual BurstMaker.

Specified by:
getReplyPart in class BurstMaker

linearContinueable

public boolean linearContinueable()
Description copied from class: BurstMaker
returns whether more data is available. This method returns true if another getReplyPart() call is possible where start is start+num of the last call.

Specified by:
linearContinueable in class BurstMaker

QJCC homepage