public abstract class IndexUpdaterWSResource extends IndexWSResource
| Modifier and Type | Class and Description |
|---|---|
class |
IndexUpdaterWSResource.ConsumerNotification
Class that handles the consuming of received notifications
|
IndexWSResource.DestructionMode| Modifier and Type | Field and Description |
|---|---|
static String |
RP_CONNECTION_ID
The list of standard resource properties defined by every index updater resource
|
static String |
RP_DELTA_FILE_SIZE |
static String |
RP_INDEX_STATUS |
static String |
RP_IS_UPDATED |
protected QName |
sharedStateChangeTopicName
The state change notification topic QName
|
static String |
UPDATER_STATUS_EMPTY
The list of possible updater status values
|
static String |
UPDATER_STATUS_FINISHED |
static String |
UPDATER_STATUS_UPDATING |
bInitializing, destructionMode, initLock, namespace, propNames, RP_COLLECTION_ID, RP_CREATED, RP_FIELDS, RP_INDEX_ID, RP_INDEX_TYPE_NAME, RP_MODIFIED, topicRegistrar| Constructor and Description |
|---|
IndexUpdaterWSResource() |
| Modifier and Type | Method and Description |
|---|---|
void |
addConnectionID(int connID)
Adds a connection ID
|
String |
getConnectionID()
Getter method for the ConnectionID Resource Property
|
long |
getDeltaFileSize()
Getter method for the DeltaFileSize Resource Property
|
String |
getIndexStatus()
Getter method for the IndexStatus Resource Property
|
boolean |
getIsUpdated()
Getter method for the IsUpdated Resource Property
|
String |
getManagementResourceNamespace()
Returns the namespace of the management resource associated with this updater resource
|
void |
initialize(String namespace,
String managementServiceNamespace,
String indexID,
String indexTypeName,
String[] collectionID)
Initializes the index management resource.
|
protected void |
onLoad(ObjectInputStream ois,
boolean firstLoad)
Invoked when a resource is being created from a serialized, previously saved state.
|
void |
onResourceRemoval()
Performs clean-up operations before the resource is removed from the home
|
protected void |
onStore(ObjectOutputStream oos)
Invoked when the state of the resource must be saved (resource serialization)
|
abstract void |
onUpdaterNotificationReceived(Element message)
Invoked whenever a message is received for this consumer.
|
void |
setConnectionID(String connectionID)
Setter method for the ConnectionID Resource Property
|
void |
setDeltaFileSize(long mergeInterval)
Setter method for the DeltaFileSize Resource Property
|
void |
setIndexStatus(String indexStatus)
Setter method for the IndexStatus Resource Property
|
void |
setIsUpdated(boolean isUpdated)
Setter method for the IsUpdated Resource Property
|
addCollectionID, addField, createProperty, createProperty, createTopic, createTopic, filterFieldInfo, getCollectionID, getCreated, getDestructionMode, getFields, getIndexID, getIndexTypeName, getModified, getNamespace, getPropertyNames, initialise, isInitializing, isTopicRegistered, publish, setCollectionID, setCreated, setDestructionMode, setFields, setIndexID, setIndexTypeName, setIsInitializing, setModified, store, waitUntilInitializedgetCurrentTime, getEPR, getPorttypeContext, getProperty, getPublisher, getResourcePropertySet, getServiceContext, getTerminationTime, getTopicList, getTopicNames, initialise, initialise, initialiseContainers, inScope, load, setPortTypeContext, setTerminationTime, unpublishgetID, getLock, getScheduledTasks, getScope, launchTask, onRemove, setID, setPersistenceDelegate, stopTaskpublic static final String RP_CONNECTION_ID
public static final String RP_INDEX_STATUS
public static final String RP_IS_UPDATED
public static final String RP_DELTA_FILE_SIZE
public static final String UPDATER_STATUS_EMPTY
public static final String UPDATER_STATUS_UPDATING
public static final String UPDATER_STATUS_FINISHED
protected QName sharedStateChangeTopicName
public void initialize(String namespace, String managementServiceNamespace, String indexID, String indexTypeName, String[] collectionID) throws Exception
namespace - the namespace of the service that this resource belongs tomanagementServiceNamespace - the namespace of the corresponding index management serviceindexID - the indexID of this resourceindexTypeName - the index type name of this resourcecollectionID - the list of collection IDs of this resourceException - an error occuredprotected void onLoad(ObjectInputStream ois, boolean firstLoad) throws Exception
onLoad in class IndexWSResourceois - the input stream through which the state can be readException - an error occured during resource deserializationprotected void onStore(ObjectOutputStream oos) throws Exception
onStore in class IndexWSResourceoos - the output stream to write the resource state toException - an error occured during resource serializationpublic String getIndexStatus()
String the requested status indicatorpublic long getDeltaFileSize()
long the requested DeltaFileSize valuepublic boolean getIsUpdated()
boolean the requested IsUpdated indicatorpublic void addConnectionID(int connID)
connID - - the connectionID to addpublic String getConnectionID()
String the requested ConnectionIDpublic void setConnectionID(String connectionID) throws Exception
ConnectionID - String[] the new Connection identifierExceptionpublic void setDeltaFileSize(long mergeInterval)
mergeInterval - long the new DeltaFileSize in bytespublic void setIsUpdated(boolean isUpdated)
isUpdated - boolean the updated flagpublic void setIndexStatus(String indexStatus)
indexStatus - String the new status of the resourcepublic String getManagementResourceNamespace()
public void onResourceRemoval()
IndexWSResourceonResourceRemoval in class IndexWSResourcepublic abstract void onUpdaterNotificationReceived(Element message)
message - the received messageCopyright © 2014. All Rights Reserved.