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(org.exoplatform.services.jcr.dataflow.TransactionChangesLog itemDataChangesLog,
org.exoplatform.services.jcr.impl.util.io.FileCleaner fileCleaner)
PendingChangesLog constructor.
|
PendingChangesLog(org.exoplatform.services.jcr.dataflow.TransactionChangesLog transactionChangesLog,
List<FixupStream> listFixupStreams,
List<org.exoplatform.services.jcr.impl.util.io.SpoolFile> listFiles,
org.exoplatform.services.jcr.impl.util.io.FileCleaner fileCleaner)
PendingChangesLog constructor.
|
PendingChangesLog(org.exoplatform.services.jcr.dataflow.TransactionChangesLog itemDataChangesLog,
String identifier,
int type,
org.exoplatform.services.jcr.impl.util.io.FileCleaner fileCleaner)
PendingChangesLog constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addNewStream(FixupStream fs)
addNewStream.
|
static byte[] |
getAsByteArray(org.exoplatform.services.jcr.dataflow.TransactionChangesLog dataChangesLog)
getAsByteArray.
|
static org.exoplatform.services.jcr.dataflow.TransactionChangesLog |
getAsItemDataChangesLog(byte[] byteArray)
getAsItemDataChangesLog.
|
int |
getConteinerType()
getConteinerType.
|
byte[] |
getData()
getData.
|
List<FixupStream> |
getFixupStreams()
getFixupStreams.
|
String |
getIdentifier()
getIdentifier.
|
List<InputStream> |
getInputStreams()
getInputStreams.
|
org.exoplatform.services.jcr.dataflow.TransactionChangesLog |
getItemDataChangesLog()
getItemDataChangesLog.
|
List<org.exoplatform.services.jcr.impl.util.io.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(org.exoplatform.services.jcr.dataflow.TransactionChangesLog itemDataChangesLog,
org.exoplatform.services.jcr.impl.util.io.FileCleaner fileCleaner)
throws IOException
itemDataChangesLog - ChangesLog with datafileCleaner - the FileCleanerIOException - will be generated the IOExaptionpublic PendingChangesLog(org.exoplatform.services.jcr.dataflow.TransactionChangesLog itemDataChangesLog,
String identifier,
int type,
org.exoplatform.services.jcr.impl.util.io.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(org.exoplatform.services.jcr.dataflow.TransactionChangesLog transactionChangesLog,
List<FixupStream> listFixupStreams,
List<org.exoplatform.services.jcr.impl.util.io.SpoolFile> listFiles,
org.exoplatform.services.jcr.impl.util.io.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 org.exoplatform.services.jcr.dataflow.TransactionChangesLog getItemDataChangesLog()
public List<InputStream> getInputStreams()
public List<RandomAccessFile> getListRandomAccessFiles()
public List<org.exoplatform.services.jcr.impl.util.io.SpoolFile> getListFile()
public List<FixupStream> getFixupStreams()
public int getConteinerType()
public String getIdentifier()
public static byte[] getAsByteArray(org.exoplatform.services.jcr.dataflow.TransactionChangesLog dataChangesLog)
throws IOException
dataChangesLog - the ChangesLog with dataIOException - will be generated the IOExceptionpublic static org.exoplatform.services.jcr.dataflow.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 © 2003–2021 eXo Platform SAS. All rights reserved.