public interface IRemoteSynchronizer
Modifier and Type | Field and Description |
---|---|
static int |
OPTION_SYNCHRONIZE_ALL_ENTRIES
An option for getSetOptions() - it specifies that all entries
should be considered unsynchronized.
|
Modifier and Type | Method and Description |
---|---|
void |
addEntries(Vector entries)
Add entries to the database.
|
int |
countDeletedEntries()
Returns the number of deleted entries.
|
int |
countUnsynchronizedEntries() |
void |
eraseDeleted(int[] indexesToDelete,
int offset,
int length)
Erase the entries at the specified indexes.
|
void |
eraseEntries(long[] oids,
int offset,
int length)
Erases the entries as specified by the OID values.
|
long[] |
getDeletedEntries(int startIndex,
int count)
Returns an array of OID values for the specified deleted entries.
|
int |
getSetOptions(int optionsToSet,
int optionsToClear)
This will set the optionsToSet bits and clear the optionsToClear bits
and return the state of the options after the operation is done.
|
Vector |
getUnsynchronizedEntries(int startIndex,
int count)
Return a Vector containing byte[] values for each database entry
requested.
|
void |
markAsSynchronized(int[] indexes,
int offset,
int length)
Mark the entries in the unsynchronized list as being synchronized.
|
static final int OPTION_SYNCHRONIZE_ALL_ENTRIES
int getSetOptions(int optionsToSet, int optionsToClear)
optionsToSet
- any or none of the OPTION_XXX bits OR'ed together.optionsToClear
- any or none of the OPTION_XXX bits OR'ed together.int countUnsynchronizedEntries() throws IOException
IOException
Vector getUnsynchronizedEntries(int startIndex, int count) throws IOException
startIndex
- the first index in the unsynchronized list to get.count
- the number of database entries to get.IOException
void markAsSynchronized(int[] indexes, int offset, int length) throws IOException
indexes
- the indexes to mark as synchronized.offset
- the start of the indexes in the array.length
- the number of indexes to delete.IOException
void addEntries(Vector entries) throws IOException
entries
- the list of entries, each one of which is a byte[].
Each of these is convereted to a DatabaseEntry using the decode()
method.IOException
void eraseEntries(long[] oids, int offset, int length) throws IOException
oids
- the list entries to erase.offset
- the start of the OIDs in the array.length
- the number of OIDs to delete.IOException
int countDeletedEntries() throws IOException
IOException
long[] getDeletedEntries(int startIndex, int count) throws IOException
startIndex
- the index of the first deleted entry.count
- the number of deleted entries to get.IOException
void eraseDeleted(int[] indexesToDelete, int offset, int length) throws IOException
indexesToDelete
- the list of deleted intries to delete.offset
- the start of the indexes in the array.length
- the number of indexes to delete.IOException