public class DeltaFileConsumer extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
DeltaFileConsumer.AdditionConsumerNotification
Class that handles the consuming of received addition notifications
|
class |
DeltaFileConsumer.DeletionConsumerNotification
Class that handles the consuming of received deletion notifications
|
class |
DeltaFileConsumer.ManagerCreationConsumerNotification
Class that handles the consuming of received manager creation notifications
|
class |
DeltaFileConsumer.RemovalConsumerNotification
Class that handles the consuming of received deletion notifications
|
| Constructor and Description |
|---|
DeltaFileConsumer()
Constructs a new, empty (uninitialized) DeltaFileConsumer
|
DeltaFileConsumer(org.gcube.indexmanagement.common.IndexLookupWSResource resource,
IndexReplicator replicator,
int startIdx)
Constructs a new DeltaFileConsumer
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the DeltaFileConsumer
|
void |
loadState(ObjectInputStream ois,
boolean firstLoad,
org.gcube.indexmanagement.common.IndexLookupWSResource resource,
IndexReplicator replicator,
int startIdx)
Loads the current state of this DeltaFileConsumer from an object stream.
|
void |
setDoesHandleAdditions(boolean doesHandleAdditions)
Enables or disables delta file addition notification handling
|
void |
setDoesHandleDeletions(boolean doesHandleDeletions)
Enables or disables delta file deletion notification handling
|
void |
setEnforceStrictOrder(boolean enforceStrictOrder)
Enables or disables enforcement of strict ordering
|
void |
storeState(ObjectOutputStream oos)
Stores the current state of this DeltaFileConsumer to an object stream.
|
public DeltaFileConsumer()
public DeltaFileConsumer(org.gcube.indexmanagement.common.IndexLookupWSResource resource,
IndexReplicator replicator,
int startIdx)
throws Exception
resource - the index lookup resource that uses this DeltaFileConsumerreplicator - the index replicator to usestartIdx - the index of the first delta fileException - an error occuredpublic void storeState(ObjectOutputStream oos)
oos - the output streampublic void loadState(ObjectInputStream ois, boolean firstLoad, org.gcube.indexmanagement.common.IndexLookupWSResource resource, IndexReplicator replicator, int startIdx) throws Exception
ois - the input streamfirstLoad - specifies whether this resource is being loaded for the first time or notresource - the index lookup resource that uses this DeltaFileConsumerreplicator - the index replicator to usestartIdx - the index of the first delta fileExceptionpublic void setDoesHandleAdditions(boolean doesHandleAdditions)
throws Exception
doesHandleAdditions - specifies whether delta file addition notifications should be handled or notException - an error occuredpublic void setDoesHandleDeletions(boolean doesHandleDeletions)
throws Exception
doesHandleAdditions - specifies whether delta file deletion notifications should be handled or notException - an error occuredpublic void setEnforceStrictOrder(boolean enforceStrictOrder)
throws Exception
enforceStrictOrder - specifies whether strict ordering should be enforced or notException - an error occuredCopyright © 2014. All Rights Reserved.