Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.flexstor.flexdbserver.qmanager
Class Queue  view Queue download Queue.java

java.lang.Object
  extended byjava.util.AbstractCollection
      extended byjava.util.AbstractList
          extended byjava.util.Vector
              extended bycom.flexstor.flexdbserver.qmanager.Queue
All Implemented Interfaces:
java.lang.Cloneable, java.util.Collection, java.lang.Iterable, java.util.List, java.util.RandomAccess, java.io.Serializable

public class Queue
extends java.util.Vector

Queue The Queue


Nested Class Summary
 
Nested classes inherited from class java.util.AbstractList
 
Field Summary
static java.lang.String IDENTIFIER
           
private  java.lang.String queueDir
           
 
Fields inherited from class java.util.Vector
capacityIncrement, elementCount, elementData
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
Queue(java.lang.String queueDir)
           
 
Method Summary
 void addElement(java.lang.String sItemName)
          Called from the QManager
 void deleteElement(QueueElement element)
          Remove a QElement and its Qitem from the Q as it has already been initiated for execution
 void deleteElementAndSaveData(QueueElement element)
          Remove a QElement and its Qitem from the Queue, and save the file for manual recovery.
private  com.flexstor.common.data.ActionData deserializeQItem(java.lang.String sQItemFileName)
           
 java.util.TreeSet getElementsToProcess()
          The QManager has asked the Q to return the most urgent unheld QElement it
 java.util.Vector getFilesList()
           
 void rescheduleElement(QueueElement element, java.util.Date dNewServiceDate)
           
 java.util.Vector searchListForService(java.lang.String serviceName)
          This method returns a list of QItem that will perform the service specified in the argument
private  void serializeQItem(com.flexstor.common.data.ActionData data, java.lang.String sQItemFileName)
           
 
Methods inherited from class java.util.Vector
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize
 
Methods inherited from class java.util.AbstractList
iterator, listIterator, listIterator
 
Methods inherited from class java.util.AbstractCollection
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
iterator, listIterator, listIterator
 

Field Detail

IDENTIFIER

public static final java.lang.String IDENTIFIER
See Also:
Constant Field Values

queueDir

private java.lang.String queueDir
Constructor Detail

Queue

public Queue(java.lang.String queueDir)
Method Detail

addElement

public void addElement(java.lang.String sItemName)
Called from the QManager


deleteElement

public void deleteElement(QueueElement element)
Remove a QElement and its Qitem from the Q as it has already been initiated for execution


deleteElementAndSaveData

public void deleteElementAndSaveData(QueueElement element)
Remove a QElement and its Qitem from the Queue, and save the file for manual recovery.


rescheduleElement

public void rescheduleElement(QueueElement element,
                              java.util.Date dNewServiceDate)

getElementsToProcess

public java.util.TreeSet getElementsToProcess()
The QManager has asked the Q to return the most urgent unheld QElement it


getFilesList

public java.util.Vector getFilesList()

searchListForService

public java.util.Vector searchListForService(java.lang.String serviceName)
This method returns a list of QItem that will perform the service specified in the argument


deserializeQItem

private com.flexstor.common.data.ActionData deserializeQItem(java.lang.String sQItemFileName)

serializeQItem

private void serializeQItem(com.flexstor.common.data.ActionData data,
                            java.lang.String sQItemFileName)