public interface Reporter
a header with overall information (server connected, time of start, time of end, etc.)
a section for documentary base listing one by one:
current time
current index
the ID of documents processed
a section for every other types
An instance of the reporter can be obtained through the factory, don't get one directly through constructor.
Modifier and Type | Method and Description |
---|---|
String |
getHeader()
Reads the header.
|
String |
getLastEntry()
Reads the last entry.
|
int |
getNumberOfDocuments()
Retrieves the number of entries.
|
long |
getTotalSize()
Computes the sum of the blob size.
|
void |
writeEntry(String documentId,
int blobsSize)
Writes an entry at the end of the file.
|
void |
writeHeader(String documentaryScope,
boolean resume)
Writes the header at the begin of the file.
|
void writeEntry(String documentId, int blobsSize) throws ClientException
ClientException
void writeHeader(String documentaryScope, boolean resume) throws ClientException
ClientException
String getHeader() throws ClientException
ClientException
String getLastEntry() throws ClientException
ClientException
int getNumberOfDocuments() throws ClientException
ClientException
long getTotalSize() throws ClientException
ClientException
Copyright © 2013 Nuxeo SA. All Rights Reserved.