|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet
com.google.gwt.user.server.rpc.RemoteServiceServlet
org.gcube.portlets.admin.forwardindexportlet.gwt.server.ManagementServiceImpl
public class ManagementServiceImpl
A RemoteService implementation for the ManagementService following GWT RPC design. Used in order to communicate with Management Resources and for Management related queries towards DIS
| Field Summary |
|---|
| Fields inherited from class com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet |
|---|
perThreadRequest, perThreadResponse |
| Constructor Summary | |
|---|---|
ManagementServiceImpl()
Class constructor |
|
| Method Summary | |
|---|---|
String |
createIndex(String indexID,
String collectionID,
String[] keyNames,
String[] indexTypeIDs,
String RIEPR)
Creates a new Index for a specified collection |
void |
deleteIndexType(IndexTypeBean idxType)
Deletes an indexType from the IS. |
Map<String,IndexTypeBean> |
getAllIndexTypes()
Retrieves all the indexType descriptions from the IS. |
List<ForwardIndexTypeBean> |
getAvailableIndexTypeIDs()
A method to get FullTextIndexTypeBeans for every fulltext index type available in the VO |
List<CollectionBean> |
getCollections()
A method to get all collection beans of collections gathered from DIS (real collections) along with all collection beans of collectionIDs indices are stated to belong to (in their collectionID property) but which do not exist in reality (fake collections) |
IndexBean[] |
getIndices(String collectionID)
A method to get IndexBeans for every Index connected to a specific Collection |
MgmtPropertiesBean |
getResourceProperties(String indexID)
A method used to get information about the ResourceProperties of an Index |
List<RunningInstanceBean> |
getRunningInstances()
A method to get all the available FullTextIndexManagement service running instances |
List<String> |
query(String queryString,
String indexID)
|
Integer |
removeIndex(String indexID)
Removes/destroys an Index |
String |
saveIndexType(IndexTypeBean idxType)
Saves an indexType to the IS. |
String |
updateIndex(String indexID,
String rsLocator)
|
| Methods inherited from class com.google.gwt.user.server.rpc.RemoteServiceServlet |
|---|
checkPermutationStrongName, doGetSerializationPolicy, getSerializationPolicy, onAfterResponseSerialized, onBeforeRequestDeserialized, processCall, processPost, shouldCompressResponse |
| Methods inherited from class com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet |
|---|
doPost, doUnexpectedFailure, getPermutationStrongName, getThreadLocalRequest, getThreadLocalResponse, onAfterRequestDeserialized, readContent |
| Methods inherited from class javax.servlet.http.HttpServlet |
|---|
doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, service |
| Methods inherited from class javax.servlet.GenericServlet |
|---|
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ManagementServiceImpl()
| Method Detail |
|---|
public List<RunningInstanceBean> getRunningInstances()
throws Exception
ManagementService
getRunningInstances in interface ManagementServiceException - -
Server side exception as dictated by GWTs RPC framework
public List<CollectionBean> getCollections()
throws Exception
getCollections in interface ManagementServiceException - -
Server side exception as dictated by GWTs RPC framework
public IndexBean[] getIndices(String collectionID)
throws Exception
getIndices in interface ManagementServiceException - -
Server side exception as dictated by GWTs RPC framework
public List<ForwardIndexTypeBean> getAvailableIndexTypeIDs()
throws Exception
ManagementService
getAvailableIndexTypeIDs in interface ManagementServiceException - - Server side exception as dictated by GWTs RPC framework
public MgmtPropertiesBean getResourceProperties(String indexID)
throws Exception
getResourceProperties in interface ManagementServiceindexID - -
The ID of the Index of which to get the ResourceProperties
Exception - -
Server side exception as dictated by GWTs RPC framework
public String createIndex(String indexID,
String collectionID,
String[] keyNames,
String[] indexTypeIDs,
String RIEPR)
throws Exception
createIndex in interface ManagementServiceindexID - -
The ID of the Index to be created. Null if an ID should be
asigned automatically.collectionID - -
the CollectionID of the Collection the Index should belong tokeyNames - -
the names of the keys of the Index to createindexTypeIDs - -
the IndexTypes of the keys of the Index to createRIEPR - - the EPR of the Running Instance to use for the index creation
Exception - -
Server side exception as dictated by GWTs RPC framework
public Integer removeIndex(String indexID)
throws Exception
removeIndex in interface ManagementServiceindexID - -
The ID of the Index to destroy
Exception - -
Server side exception as dictated by GWTs RPC framework
public Map<String,IndexTypeBean> getAllIndexTypes()
throws Exception
ManagementService
getAllIndexTypes in interface ManagementServiceException - -
Server side exception as dictated by GWTs RPC framework
public String saveIndexType(IndexTypeBean idxType)
throws Exception
ManagementService
saveIndexType in interface ManagementServiceidxType - the indexType description
Exception - -
Server side exception as dictated by GWTs RPC framework
public void deleteIndexType(IndexTypeBean idxType)
throws Exception
ManagementService
deleteIndexType in interface ManagementServiceidxType - the indexType description
Exception - -
Server side exception as dictated by GWTs RPC framework
public String updateIndex(String indexID,
String rsLocator)
throws com.google.gwt.user.client.rpc.InvocationException
updateIndex in interface ManagementServicecom.google.gwt.user.client.rpc.InvocationException
public List<String> query(String queryString,
String indexID)
throws Exception
query in interface ManagementServiceException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||