public class PendingChangesLog extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
PendingChangesLog.Type
The definition of ChangesLog types.
|
| Constructor and Description |
|---|
PendingChangesLog(String identifier,
int dataLength)
PendingChangesLog constructor.
|
PendingChangesLog(TransactionChangesLog itemDataChangesLog,
FileCleaner fileCleaner)
PendingChangesLog constructor.
|
PendingChangesLog(TransactionChangesLog transactionChangesLog,
List<FixupStream> listFixupStreams,
List<SpoolFile> listFiles,
FileCleaner fileCleaner)
PendingChangesLog constructor.
|
PendingChangesLog(TransactionChangesLog itemDataChangesLog,
String identifier,
int type,
FileCleaner fileCleaner)
PendingChangesLog constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addNewStream(FixupStream fs)
addNewStream.
|
static byte[] |
getAsByteArray(TransactionChangesLog dataChangesLog)
getAsByteArray.
|
static TransactionChangesLog |
getAsItemDataChangesLog(byte[] byteArray)
getAsItemDataChangesLog.
|
int |
getConteinerType()
getConteinerType.
|
byte[] |
getData()
getData.
|
List<FixupStream> |
getFixupStreams()
getFixupStreams.
|
String |
getIdentifier()
getIdentifier.
|
List<InputStream> |
getInputStreams()
getInputStreams.
|
TransactionChangesLog |
getItemDataChangesLog()
getItemDataChangesLog.
|
List<SpoolFile> |
getListFile()
getListFile.
|
List<RandomAccessFile> |
getListRandomAccessFiles()
getListRandomAccessFiles.
|
RandomAccessFile |
getRandomAccessFile(FixupStream fs)
getRandomAccessFile.
|
void |
putData(int offset,
byte[] tempData)
putData.
|
void |
restore()
Restore ChangesLog(set the InputStreams to ValueData).
|
public PendingChangesLog(TransactionChangesLog itemDataChangesLog, FileCleaner fileCleaner) throws IOException
itemDataChangesLog - ChangesLog with datafileCleaner - the FileCleanerIOException - will be generated the IOExaptionpublic PendingChangesLog(TransactionChangesLog itemDataChangesLog, String identifier, int type, FileCleaner fileCleaner) throws IOException
itemDataChangesLog - ChangesLog with dataidentifier - identifier to this PendingChangesLog.type - type of PendingChangesLogfileCleaner - the FileCleanerIOException - will be generated the IOExaptionpublic PendingChangesLog(String identifier, int dataLength)
identifier - identifier to this PendingChangesLog.dataLength - the length of binary datapublic PendingChangesLog(TransactionChangesLog transactionChangesLog, List<FixupStream> listFixupStreams, List<SpoolFile> listFiles, FileCleaner fileCleaner)
transactionChangesLog - ChangesLog with datalistFixupStreams - list of FixupStreamslistFiles - list of FilesfileCleaner - the FileCleanerpublic void putData(int offset,
byte[] tempData)
offset - offset in 'data'tempData - piece of binary datapublic byte[] getData()
public TransactionChangesLog getItemDataChangesLog()
public List<InputStream> getInputStreams()
public List<RandomAccessFile> getListRandomAccessFiles()
public List<FixupStream> getFixupStreams()
public int getConteinerType()
public String getIdentifier()
public static byte[] getAsByteArray(TransactionChangesLog dataChangesLog) throws IOException
dataChangesLog - the ChangesLog with dataIOException - will be generated the IOExceptionpublic static TransactionChangesLog getAsItemDataChangesLog(byte[] byteArray) throws IOException, ClassNotFoundException
byteArray - the serialized ChangesLogIOException - will be generated the IOExceptionClassNotFoundException - will be generated the ClassNotFoundExceptionpublic RandomAccessFile getRandomAccessFile(FixupStream fs) throws IOException
fs - the FixupStreamIOException - will be generated the IOExceptionpublic void addNewStream(FixupStream fs) throws IOException
fs - the FixupStreamIOException - will be generated the IOExceptionpublic void restore()
throws IOException
IOException - will be generated the IOExceptionCopyright © 2015 eXo Platform SAS. All Rights Reserved.