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 void
close()
Close theAbstractEventDataProvider
java.lang.String
getConfiguration()
display String describing thAbstractEventDataProvider
long
getMaxLength()
Returns the maxLength of the inputStreamlong
getStatus(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:AbstractEventDataProvider
Return the status of the stream. How many bytes have been read.- Specified by:
getStatus
in 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:AbstractEventDataProvider
Returns the maxLength of the inputStream- Specified by:
getMaxLength
in classAbstractEventDataProvider
- Returns:
- the maxLength of the inputStream
-
getConfiguration
public java.lang.String getConfiguration()
Description copied from class:AbstractEventDataProvider
display String describing thAbstractEventDataProvider
- Specified by:
getConfiguration
in classAbstractEventDataProvider
-
close
public void close() throws StorageException
Description copied from class:AbstractEventDataProvider
Close theAbstractEventDataProvider
- Specified by:
close
in classAbstractEventDataProvider
- Throws:
StorageException
-
-