Class FileSystemEventDataProvider
- java.lang.Object
-
- com.jalios.jcms.analytics.storage.AbstractEventDataProvider
-
- com.jalios.jcms.analytics.storage.impl.FileSystemEventDataProvider
-
- All Implemented Interfaces:
java.lang.Iterable<EventData>
public class FileSystemEventDataProvider extends AbstractEventDataProvider
-
-
Constructor Summary
Constructors Constructor Description FileSystemEventDataProvider(java.io.File eventFile, java.util.Date analyzedDate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Close theAbstractEventDataProviderjava.lang.StringgetConfiguration()display String describing thAbstractEventDataProviderlonggetMaxLength()Returns the maxLength of the inputStreamlonggetStatus(boolean absolute, boolean done)Return the status of the stream.java.util.Iterator<EventData>iterator()
-
-
-
Constructor Detail
-
FileSystemEventDataProvider
public FileSystemEventDataProvider(java.io.File eventFile, java.util.Date analyzedDate) throws StorageException- Throws:
StorageException
-
-
Method Detail
-
iterator
public java.util.Iterator<EventData> iterator()
-
getStatus
public long getStatus(boolean absolute, boolean done)Description copied from class:AbstractEventDataProviderReturn the status of the stream. How many bytes have been read.- Specified by:
getStatusin classAbstractEventDataProvider- Parameters:
absolute- if return an absolute value or percentagedone- if return the available byte or done bytes- Returns:
- long the status of the stream
-
getMaxLength
public long getMaxLength()
Description copied from class:AbstractEventDataProviderReturns the maxLength of the inputStream- Specified by:
getMaxLengthin classAbstractEventDataProvider- Returns:
- the maxLength of the inputStream
-
getConfiguration
public java.lang.String getConfiguration()
Description copied from class:AbstractEventDataProviderdisplay String describing thAbstractEventDataProvider- Specified by:
getConfigurationin classAbstractEventDataProvider
-
close
public void close() throws StorageExceptionDescription copied from class:AbstractEventDataProviderClose theAbstractEventDataProvider- Specified by:
closein classAbstractEventDataProvider- Throws:
StorageException
-
-