|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.indexmanagement.storagehandling.DeltaFileConsumer
public class DeltaFileConsumer
This class implements a consumer for delta files that make up an index. Each time a new delta file is added to the index, the DeltaFileConsumer fetches it from the Content Management layer and stores it locally.
| Nested Class Summary | |
|---|---|
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 Summary | |
|---|---|
DeltaFileConsumer()
Constructs a new, empty (uninitialized) DeltaFileConsumer |
|
DeltaFileConsumer(IndexLookupWSResource resource,
IndexReplicator replicator,
int startIdx)
Constructs a new DeltaFileConsumer |
|
| Method Summary | |
|---|---|
void |
close()
Closes the DeltaFileConsumer |
void |
loadState(java.io.ObjectInputStream ois,
boolean firstLoad,
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(java.io.ObjectOutputStream oos)
Stores the current state of this DeltaFileConsumer to an object stream. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DeltaFileConsumer()
public DeltaFileConsumer(IndexLookupWSResource resource,
IndexReplicator replicator,
int startIdx)
throws java.lang.Exception
resource - the index lookup resource that uses this DeltaFileConsumerreplicator - the index replicator to usestartIdx - the index of the first delta file
java.lang.Exception - an error occured| Method Detail |
|---|
public void storeState(java.io.ObjectOutputStream oos)
oos - the output stream
public void loadState(java.io.ObjectInputStream ois,
boolean firstLoad,
IndexLookupWSResource resource,
IndexReplicator replicator,
int startIdx)
throws java.lang.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 file
java.lang.Exception
public void setDoesHandleAdditions(boolean doesHandleAdditions)
throws java.lang.Exception
doesHandleAdditions - specifies whether delta file addition notifications should be handled or not
java.lang.Exception - an error occured
public void setDoesHandleDeletions(boolean doesHandleDeletions)
throws java.lang.Exception
doesHandleAdditions - specifies whether delta file deletion notifications should be handled or not
java.lang.Exception - an error occured
public void setEnforceStrictOrder(boolean enforceStrictOrder)
throws java.lang.Exception
enforceStrictOrder - specifies whether strict ordering should be enforced or not
java.lang.Exception - an error occured
public void close()
throws java.lang.Exception
java.lang.Exception - an error occured
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||