com.cysols.iodef.analysis.sida
Interface AlertReader


public interface AlertReader

An interface of alert record reader from the data repository.


Method Summary
 Alert[] readAlert(int lastIndex)
          Reads the stored sida record from the data repository.
 Alert[] readAlert(int lastIndex, int limit)
          Reads the limited number of the stored sida records from the data repository.
 int readMaxID()
          Returns the index of the alert record whose ID is greatest among the data repository.
 

Method Detail

readAlert

Alert[] readAlert(int lastIndex,
                  int limit)
                  throws AlertReadException
Reads the limited number of the stored sida records from the data repository.

Parameters:
lastIndex - the last read id of sida record.
limit - the limitation number of reading sida record.
Returns:
an array of Alert instances
Throws:
AlertReadException - thrown if an exception occur when readding the alert record.

readAlert

Alert[] readAlert(int lastIndex)
                  throws AlertReadException
Reads the stored sida record from the data repository.

Parameters:
lastIndex - the last record id of sida record
Returns:
an array of Alert instances.
Throws:
AlertReadException - thrown if an exception occur when readding the alert record.

readMaxID

int readMaxID()
              throws AlertReadException
Returns the index of the alert record whose ID is greatest among the data repository.

Returns:
the max ID at that time.
Throws:
AlertReadException - thrown if an exception occur when readding the sida record.