de.fzj.unicore.wsrflite.admin.service
Class AdminServiceImpl

java.lang.Object
  extended by de.fzj.unicore.wsrflite.impl.WSRFInstanceImpl
      extended by de.fzj.unicore.wsrflite.xmlbeans.impl.WSResourceImpl
          extended by de.fzj.unicore.wsrflite.admin.service.AdminServiceImpl
All Implemented Interfaces:
AdminService, WSRFConstants, WSRFInstance, ResourceLifetime, ResourceProperties, WSResource

public class AdminServiceImpl
extends WSResourceImpl
implements AdminService

Author:
j.daivandy@fz-juelich.de

Field Summary
 
Fields inherited from class de.fzj.unicore.wsrflite.xmlbeans.impl.WSResourceImpl
DELETE, INSERT, properties, serialVersionUID, UPDATE
 
Fields inherited from class de.fzj.unicore.wsrflite.impl.WSRFInstanceImpl
home, INIT_INITIAL_TERMINATION_TIME, INIT_UNIQUE_ID, isDirty
 
Fields inherited from interface de.fzj.unicore.wsrflite.admin.service.AdminService
ADMINSERVICE_NS, ADMINSERVICE_PORT, RPAdminServiceQName, RPMonitorEntryQName, RPServiceEntryQName, RPServicesInfoQName, SERVICE_NAME, SINGLETON_ID
 
Fields inherited from interface de.fzj.unicore.wsrflite.xmlbeans.ResourceProperties
WSRP_DELETE_RP, WSRP_GET_MULTIPLE_RP, WSRP_GET_RP, WSRP_GET_RP_DOCUMENT, WSRP_INSERT_RP, WSRP_PUT_RP_DOCUMENT, WSRP_QUERY_RP, WSRP_RP_QueryExpressionDialect, WSRP_SET_RP, WSRP_UPDATE_RP
 
Fields inherited from interface de.fzj.unicore.wsrflite.WSRFConstants
QUERY_EXPRESSION_DIALECT_XPATH, RPcurrentTimeQName, RPterminationTimeQName, WSRL_BASENS, WSRL_DESTROY, WSRL_DESTROY_PORT, WSRL_SCHEDULED, WSRL_SET_TERMTIME_PORT, WSRP_BASENS, WSRP_DELETE_RP_PORT, WSRP_GET_MULTIPLE_RP_PORT, WSRP_GET_RP_DOCUMENT_PORT, WSRP_GET_RP_PORT, WSRP_INSERT_RP_PORT, WSRP_PUT_RP_DOCUMENT_PORT, WSRP_QUERY_RP_PORT, WSRP_SET_RP_PORT, WSRP_UPDATE_RP_PORT
 
Constructor Summary
AdminServiceImpl()
           
 
Method Summary
 de.fzj.unicore.wsrflite.xmlbeans.ClearMetricDataResponseDocument clearMetricData(de.fzj.unicore.wsrflite.xmlbeans.ClearMetricDataRequestDocument req)
           
 void deleteServiceInstance(de.fzj.unicore.wsrflite.xmlbeans.DeleteServiceInstanceRequestDocument req)
          Deletes the specified instance of the specified service.
 void deployService(de.fzj.unicore.wsrflite.xmlbeans.DeployServiceRequestDocument req)
          Dynamically deploys a Web Service.
 de.fzj.unicore.wsrflite.xmlbeans.GetMetricResponseDocument getMetric(de.fzj.unicore.wsrflite.xmlbeans.GetMetricRequestDocument req)
           
 de.fzj.unicore.wsrflite.xmlbeans.GetMetricCategoriesResponseDocument getMetricCategories(de.fzj.unicore.wsrflite.xmlbeans.GetMetricCategoriesRequestDocument req)
           
 de.fzj.unicore.wsrflite.xmlbeans.GetMetricsResponseDocument getMetrics(de.fzj.unicore.wsrflite.xmlbeans.GetMetricsRequestDocument req)
           
 QName getResourcePropertyDocumentQName()
          returns the QName of the resource properties document
 de.fzj.unicore.wsrflite.xmlbeans.GetServiceInstanceResponseDocument getServiceInstanceData(de.fzj.unicore.wsrflite.xmlbeans.GetServiceInstanceRequestDocument req)
          Retrieves resource properties of the specified service instance, essentially acts as a Web Service intermediary.
 de.fzj.unicore.wsrflite.xmlbeans.GetServiceInstancesResponseDocument getServiceInstances(de.fzj.unicore.wsrflite.xmlbeans.GetServiceInstancesRequestDocument req)
          Retrieves a list of currently running instances of a WSRF Web Service
 void initialise(String serviceName, Map<String,Object> initobjs)
          initialise this WS Resource
In subclasses, a call to super.initialise() is highly recommended!
 void setResourceTerminationTime(de.fzj.unicore.wsrflite.xmlbeans.SetResourceTerminationTimeRequestDocument req)
          Retrieves the resource properties of the specified service instance, essentially acts as a web service intermediary.
 void undeployService(de.fzj.unicore.wsrflite.xmlbeans.UndeployServiceRequestDocument req)
          Dynamically un-deploys a Web Service.
 
Methods inherited from class de.fzj.unicore.wsrflite.xmlbeans.impl.WSResourceImpl
activate, DeleteResourceProperties, Destroy, fillResourcePropertyDocument, GetMultipleResourceProperties, GetResourceProperty, getResourceProperty, GetResourcePropertyDocument, getResourcePropertyObject, getResourcePropertyQNames, getResourcePropertyResponseDocument, getResourcePropertyXML, InsertResourceProperties, isModifyable, PutResourcePropertyDocument, QueryResourceProperties, SetResourceProperties, SetTerminationTime, UpdateResourceProperties
 
Methods inherited from class de.fzj.unicore.wsrflite.impl.WSRFInstanceImpl
clearChangeFlag, clearSecurityContext, destroy, getDefaultLifetime, getSecurityContext, getServiceName, getTerminationTime, getUniqueID, hasChanged, isDestroyed, isExpired, passivate, postActivate, processMessages, setDirty, setHome, setSecurityContext, setServiceName, setTerminationTime, setUniqueID
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.fzj.unicore.wsrflite.xmlbeans.ResourceLifetime
Destroy, SetTerminationTime
 
Methods inherited from interface de.fzj.unicore.wsrflite.xmlbeans.ResourceProperties
DeleteResourceProperties, GetMultipleResourceProperties, GetResourceProperty, GetResourcePropertyDocument, InsertResourceProperties, PutResourcePropertyDocument, QueryResourceProperties, SetResourceProperties, UpdateResourceProperties
 
Methods inherited from interface de.fzj.unicore.wsrflite.WSRFInstance
activate, clearChangeFlag, clearSecurityContext, destroy, getSecurityContext, getServiceName, getTerminationTime, getUniqueID, hasChanged, isDestroyed, isExpired, passivate, postActivate, processMessages, setHome, setSecurityContext, setServiceName, setUniqueID
 

Constructor Detail

AdminServiceImpl

public AdminServiceImpl()
Method Detail

getResourcePropertyDocumentQName

public QName getResourcePropertyDocumentQName()
Description copied from class: WSResourceImpl
returns the QName of the resource properties document

Specified by:
getResourcePropertyDocumentQName in class WSResourceImpl
Returns:

initialise

public void initialise(String serviceName,
                       Map<String,Object> initobjs)
                throws Exception
Description copied from class: WSResourceImpl
initialise this WS Resource
In subclasses, a call to super.initialise() is highly recommended!

Specified by:
initialise in interface WSRFInstance
Overrides:
initialise in class WSResourceImpl
Parameters:
serviceName - the service name this instance belongs to
initobjs - - a Map containing initialisation params
Throws:
Exception

getServiceInstanceData

public de.fzj.unicore.wsrflite.xmlbeans.GetServiceInstanceResponseDocument getServiceInstanceData(de.fzj.unicore.wsrflite.xmlbeans.GetServiceInstanceRequestDocument req)
                                                                                           throws BaseFault
Retrieves resource properties of the specified service instance, essentially acts as a Web Service intermediary.

Specified by:
getServiceInstanceData in interface AdminService
Parameters:
req - - the request (containing the service name and the requested instance's uid)
Throws:
BaseFault

deleteServiceInstance

public void deleteServiceInstance(de.fzj.unicore.wsrflite.xmlbeans.DeleteServiceInstanceRequestDocument req)
                           throws BaseFault
Deletes the specified instance of the specified service.

Specified by:
deleteServiceInstance in interface AdminService
Parameters:
req - - the request (containing the service name and the uid of the instance to be deleted)
Throws:
BaseFault

deployService

public void deployService(de.fzj.unicore.wsrflite.xmlbeans.DeployServiceRequestDocument req)
                   throws BaseFault
Dynamically deploys a Web Service.
The Web Service classes (interface, implementation and message) may already exist on-site (in the classpath) or can be uploaded as a jar file.

Specified by:
deployService in interface AdminService
Throws:
BaseFault

undeployService

public void undeployService(de.fzj.unicore.wsrflite.xmlbeans.UndeployServiceRequestDocument req)
                     throws BaseFault
Dynamically un-deploys a Web Service.

Specified by:
undeployService in interface AdminService
Throws:
BaseFault

getServiceInstances

public de.fzj.unicore.wsrflite.xmlbeans.GetServiceInstancesResponseDocument getServiceInstances(de.fzj.unicore.wsrflite.xmlbeans.GetServiceInstancesRequestDocument req)
                                                                                         throws BaseFault
Retrieves a list of currently running instances of a WSRF Web Service

Specified by:
getServiceInstances in interface AdminService
Throws:
BaseFault

setResourceTerminationTime

public void setResourceTerminationTime(de.fzj.unicore.wsrflite.xmlbeans.SetResourceTerminationTimeRequestDocument req)
                                throws BaseFault
Retrieves the resource properties of the specified service instance, essentially acts as a web service intermediary.

Specified by:
setResourceTerminationTime in interface AdminService
Parameters:
req - - the request (containing the service name and the requested instance's uid)
Throws:
BaseFault

getMetrics

public de.fzj.unicore.wsrflite.xmlbeans.GetMetricsResponseDocument getMetrics(de.fzj.unicore.wsrflite.xmlbeans.GetMetricsRequestDocument req)
Specified by:
getMetrics in interface AdminService

getMetric

public de.fzj.unicore.wsrflite.xmlbeans.GetMetricResponseDocument getMetric(de.fzj.unicore.wsrflite.xmlbeans.GetMetricRequestDocument req)
Specified by:
getMetric in interface AdminService

getMetricCategories

public de.fzj.unicore.wsrflite.xmlbeans.GetMetricCategoriesResponseDocument getMetricCategories(de.fzj.unicore.wsrflite.xmlbeans.GetMetricCategoriesRequestDocument req)
Specified by:
getMetricCategories in interface AdminService

clearMetricData

public de.fzj.unicore.wsrflite.xmlbeans.ClearMetricDataResponseDocument clearMetricData(de.fzj.unicore.wsrflite.xmlbeans.ClearMetricDataRequestDocument req)
                                                                                 throws BaseFault
Specified by:
clearMetricData in interface AdminService
Throws:
BaseFault


Copyright © 2010. All Rights Reserved.