Class BackgroundMemoryList<T>

java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<T>
de.uka.ipd.sdq.sensorframework.storage.lists.BackgroundMemoryList<T>
Type Parameters:
T - The generic type parameter of the list's elements
All Implemented Interfaces:
Iterable<T>, Collection<T>, List<T>, RandomAccess

public class BackgroundMemoryList<T> extends AbstractList<T> implements List<T>, RandomAccess
Deprecated.
Superseded by EDP2.
  • Field Details

    • MEMORY_CHUNKS_SIZE

      public static final int MEMORY_CHUNKS_SIZE
      Deprecated.
      Number of list elements per list chunk
      See Also:
  • Constructor Details

    • BackgroundMemoryList

      public BackgroundMemoryList(String filename, ISerialiser<T> serialiser) throws IOException
      Deprecated.
      Constructor of a background memory list
      Parameters:
      filename - The file used as background storage
      serialiser - The serialiser used to serialise the elements of the list
      Throws:
      IOException - Thrown if file IO fails
    • BackgroundMemoryList

      public BackgroundMemoryList(File f, ISerialiser<T> serialiser) throws IOException
      Deprecated.
      Constructor of a background memory list
      Parameters:
      f - The file used as background storage
      serialiser - The serialiser used to serialise the elements of the list
      Throws:
      IOException - Thrown if file IO fails
  • Method Details

    • add

      public void add(int index, T e)
      Deprecated.
      Specified by:
      add in interface List<T>
      Overrides:
      add in class AbstractList<T>
    • get

      public T get(int index)
      Deprecated.
      Specified by:
      get in interface List<T>
      Specified by:
      get in class AbstractList<T>
    • size

      public int size()
      Deprecated.
      Specified by:
      size in interface Collection<T>
      Specified by:
      size in interface List<T>
      Specified by:
      size in class AbstractCollection<T>
    • close

      public void close() throws IOException
      Deprecated.
      Closes the background storage. The list is inaccessible afterwards
      Throws:
      IOException
    • flush

      public void flush() throws IOException
      Deprecated.
      Writes all buffered data to the background storage and clears the current chunk.
      Throws:
      IOException