|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.services.jcr.ext.replication.PendingChangesLog
public class PendingChangesLog
Created by The eXo Platform SAS.
| Nested Class Summary | |
|---|---|
class |
PendingChangesLog.Type
The definition of ChangesLog types. |
| Constructor Summary | |
|---|---|
PendingChangesLog(java.lang.String identifier,
int dataLength)
PendingChangesLog constructor. |
|
PendingChangesLog(TransactionChangesLog itemDataChangesLog,
FileCleaner fileCleaner)
PendingChangesLog constructor. |
|
PendingChangesLog(TransactionChangesLog transactionChangesLog,
java.util.List<FixupStream> listFixupStreams,
java.util.List<java.io.File> listFiles,
FileCleaner fileCleaner)
PendingChangesLog constructor. |
|
PendingChangesLog(TransactionChangesLog itemDataChangesLog,
java.lang.String identifier,
int type,
FileCleaner fileCleaner)
PendingChangesLog constructor. |
|
| Method Summary | |
|---|---|
void |
addNewStream(FixupStream fs)
addNewStream. |
static byte[] |
getAsByteArray(TransactionChangesLog dataChangesLog)
getAsByteArray. |
static TransactionChangesLog |
getAsItemDataChangesLog(byte[] byteArray)
getAsItemDataChangesLog. |
int |
getConteinerType()
getConteinerType. |
byte[] |
getData()
getData. |
java.util.List<FixupStream> |
getFixupStreams()
getFixupStreams. |
java.lang.String |
getIdentifier()
getIdentifier. |
java.util.List<java.io.InputStream> |
getInputStreams()
getInputStreams. |
TransactionChangesLog |
getItemDataChangesLog()
getItemDataChangesLog. |
java.util.List<java.io.File> |
getListFile()
getListFile. |
java.util.List<java.io.RandomAccessFile> |
getListRandomAccessFiles()
getListRandomAccessFiles. |
java.io.RandomAccessFile |
getRandomAccessFile(FixupStream fs)
getRandomAccessFile. |
void |
putData(int offset,
byte[] tempData)
putData. |
void |
restore()
Restore ChangesLog(set the InputStreams to ValueData). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PendingChangesLog(TransactionChangesLog itemDataChangesLog,
FileCleaner fileCleaner)
throws java.io.IOException
itemDataChangesLog - ChangesLog with datafileCleaner - the FileCleaner
java.io.IOException - will be generated the IOExaption
public PendingChangesLog(TransactionChangesLog itemDataChangesLog,
java.lang.String identifier,
int type,
FileCleaner fileCleaner)
throws java.io.IOException
itemDataChangesLog - ChangesLog with dataidentifier - identifier to this PendingChangesLog.type - type of PendingChangesLogfileCleaner - the FileCleaner
java.io.IOException - will be generated the IOExaption
public PendingChangesLog(java.lang.String identifier,
int dataLength)
identifier - identifier to this PendingChangesLog.dataLength - the length of binary data
public PendingChangesLog(TransactionChangesLog transactionChangesLog,
java.util.List<FixupStream> listFixupStreams,
java.util.List<java.io.File> listFiles,
FileCleaner fileCleaner)
transactionChangesLog - ChangesLog with datalistFixupStreams - list of FixupStreamslistFiles - list of FilesfileCleaner - the FileCleaner| Method Detail |
|---|
public void putData(int offset,
byte[] tempData)
offset - offset in 'data'tempData - piece of binary datapublic byte[] getData()
public TransactionChangesLog getItemDataChangesLog()
public java.util.List<java.io.InputStream> getInputStreams()
public java.util.List<java.io.RandomAccessFile> getListRandomAccessFiles()
public java.util.List<java.io.File> getListFile()
public java.util.List<FixupStream> getFixupStreams()
public int getConteinerType()
public java.lang.String getIdentifier()
public static byte[] getAsByteArray(TransactionChangesLog dataChangesLog)
throws java.io.IOException
dataChangesLog - the ChangesLog with data
java.io.IOException - will be generated the IOException
public static TransactionChangesLog getAsItemDataChangesLog(byte[] byteArray)
throws java.io.IOException,
java.lang.ClassNotFoundException
byteArray - the serialized ChangesLog
java.io.IOException - will be generated the IOException
java.lang.ClassNotFoundException - will be generated the ClassNotFoundException
public java.io.RandomAccessFile getRandomAccessFile(FixupStream fs)
throws java.io.IOException
fs - the FixupStream
java.io.IOException - will be generated the IOException
public void addNewStream(FixupStream fs)
throws java.io.IOException
fs - the FixupStream
java.io.IOException - will be generated the IOException
public void restore()
throws java.io.IOException
java.io.IOException - will be generated the IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||