public abstract class IndexManagementWSResource extends IndexWSResource
IndexWSResource.DestructionMode| Modifier and Type | Field and Description |
|---|---|
static String |
MANAGER_STATUS_EMPTY
The list of possible management status values
|
static String |
MANAGER_STATUS_FINISHED |
static String |
MANAGER_STATUS_UPDATING |
protected org.globus.wsrf.Topic |
sharedStateChangeTopic
The state change notification topic
|
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 |
|---|
IndexManagementWSResource() |
| Modifier and Type | Method and Description |
|---|---|
void |
addUpdater(int updater)
Adds a new value to the Updater Resource Property
|
void |
deleteUpdater(int updater)
Deletes a value from the Updater Resource Property
|
int |
getConnectionCount()
Getter method for the ConnectionCount Resource Property
|
int |
getDocumentCount()
Getter method for the DocumentCount Resource Property
|
String |
getIndexStatus()
Getter method for the IndexStatus Resource Property
|
int[] |
getUpdater()
Getter method for the Updater Resource Property
|
int |
getUpdaterCount()
Returns the number of values in the Updater Resource Property
|
void |
initialise(String namespace,
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.
|
protected void |
onStore(ObjectOutputStream oos)
Invoked when the state of the resource must be saved (resource serialization)
|
void |
sendSharedStateChangeNotification(Object message)
Sends a state change notification message
|
void |
setConnectionCount(int connectionCount)
Setter method for the ConnectionCount Resource Property
|
void |
setDocumentCount(int docCount)
Setter method for the DocumentCount Resource Property
|
void |
setIndexStatus(String indexStatus)
Setter method for the IndexStatus Resource Property
|
void |
setUpdater(int[] updaters)
Setter method for the Updater Resource Property
|
addCollectionID, addField, createProperty, createProperty, createTopic, createTopic, filterFieldInfo, getCollectionID, getCreated, getDestructionMode, getFields, getIndexID, getIndexTypeName, getModified, getNamespace, getPropertyNames, isInitializing, isTopicRegistered, onResourceRemoval, 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 MANAGER_STATUS_EMPTY
public static final String MANAGER_STATUS_UPDATING
public static final String MANAGER_STATUS_FINISHED
protected org.globus.wsrf.Topic sharedStateChangeTopic
public void initialise(String namespace, String indexID, String indexTypeName, String[] collectionID) throws Exception
initialise in class IndexWSResourcenamespace - the namespace of the service that this resource belongs toindexID - 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 readindicates - if the resource is being loaded for the first time (hard load) or not (soft load)Exception - 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 void sendSharedStateChangeNotification(Object message)
message - the notification message to sendpublic String getIndexStatus()
String the requested status indicatorpublic int getConnectionCount()
int the requested ConnectionCountpublic int getDocumentCount()
int the requested DocumentCountpublic int[] getUpdater()
int[] the values of the requested Updater propertypublic int getUpdaterCount()
public void setIndexStatus(String indexStatus)
indexStatus - String the new status of the resourcepublic void setConnectionCount(int connectionCount)
ConnectionCount - int the new Connection countpublic void setDocumentCount(int docCount)
DocumentCount - int the new document countpublic void setUpdater(int[] updaters)
updater - int[] the new updater valuespublic void addUpdater(int updater)
updater - int the new updaterpublic void deleteUpdater(int updater)
updater - int the updater value to removeCopyright © 2014. All Rights Reserved.