com.cloudtran.replicator.ssdStore
Class SSDFileManager

java.lang.Object
  extended by com.cloudtran.replicator.ssdStore.SSDFileManager
All Implemented Interfaces:
Iterable<SSDWriteOperationIterator>

public class SSDFileManager
extends Object
implements Iterable<SSDWriteOperationIterator>


Constructor Summary
SSDFileManager(String filePath)
          The constructor for this class.
SSDFileManager(String filePath, boolean allData)
          The constructor for this iterator
 
Method Summary
 void closeFile()
          closes the file
 SSDFileHeader getFileHeader()
          returns the fileHeader for the given file
 Iterator iterator()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SSDFileManager

public SSDFileManager(String filePath,
                      boolean allData)
The constructor for this iterator

Parameters:
the - string value of the location of the file
the - flag to determine whether to return all the data - used in the iterator.

SSDFileManager

public SSDFileManager(String filePath)
The constructor for this class. It calls the other constructor with the allData set false;

Parameters:
the - string value of the location of the file
Method Detail

closeFile

public void closeFile()
closes the file


getFileHeader

public SSDFileHeader getFileHeader()
returns the fileHeader for the given file

Returns:
the fileHeader

iterator

public Iterator iterator()
Specified by:
iterator in interface Iterable<SSDWriteOperationIterator>