org.wso2.wsas.admin.service
Class ServiceGroupAdmin

java.lang.Object
  extended byorg.wso2.wsas.admin.service.AbstractAdmin
      extended byorg.wso2.wsas.admin.service.ServiceGroupAdmin

public class ServiceGroupAdmin
extends AbstractAdmin

Admin service to manage service groups


Field Summary
 
Fields inherited from class org.wso2.wsas.admin.service.AbstractAdmin
axisConfig, configCtx
 
Constructor Summary
ServiceGroupAdmin()
           
 
Method Summary
 org.apache.axiom.om.OMElement[] getDeclaredServiceGroupParameters(java.lang.String serviceGroupId)
          return only the parameters for explicitly set for this service group (not including inherited ones), where each parameter is an XML fragment representing the element
 org.apache.axiom.om.OMElement getPolicy(java.lang.String serviceGroupId, java.lang.String serviceGroupVersion)
           
 org.apache.axiom.om.OMElement[] getServiceGroupParameters(java.lang.String service_group_id, java.lang.String group_version)
          Return all parameters for this service group (including inherited ones), where each parameter is an XML fragment representing the element
 ServiceGroupMetaData[] listServiceGroups()
          List all the available service groups
 void removeServiceGroup(java.lang.String groupName)
          Remove a service group
 void setPolicy(java.lang.String serviceGroupId, java.lang.String serviceGroupVersion, org.apache.axiom.om.OMElement policyElement)
           
 void setServiceGroupParameter(java.lang.String serviceGroupId, org.apache.axiom.om.OMElement parameterElement)
           
 void setServiceGroupParameters(java.lang.String serviceGroupId, org.apache.axiom.om.OMElement[] parameterElement)
           
 
Methods inherited from class org.wso2.wsas.admin.service.AbstractAdmin
getAxisConfig, getConfigContext, init, setAxisConfig, setConfigContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceGroupAdmin

public ServiceGroupAdmin()
Method Detail

listServiceGroups

public ServiceGroupMetaData[] listServiceGroups()
                                         throws org.apache.axis2.AxisFault
List all the available service groups

Throws:
org.apache.axis2.AxisFault

removeServiceGroup

public void removeServiceGroup(java.lang.String groupName)
                        throws org.apache.axis2.AxisFault
Remove a service group

Parameters:
groupName -
Throws:
org.apache.axis2.AxisFault

getServiceGroupParameters

public org.apache.axiom.om.OMElement[] getServiceGroupParameters(java.lang.String service_group_id,
                                                                 java.lang.String group_version)
                                                          throws org.apache.axis2.AxisFault
Return all parameters for this service group (including inherited ones), where each parameter is an XML fragment representing the element

Parameters:
service_group_id -
group_version -
Returns:
Throws:
org.apache.axis2.AxisFault

getDeclaredServiceGroupParameters

public org.apache.axiom.om.OMElement[] getDeclaredServiceGroupParameters(java.lang.String serviceGroupId)
                                                                  throws org.apache.axis2.AxisFault
return only the parameters for explicitly set for this service group (not including inherited ones), where each parameter is an XML fragment representing the element

Parameters:
serviceGroupId -
Returns:
Throws:
org.apache.axis2.AxisFault

setServiceGroupParameters

public void setServiceGroupParameters(java.lang.String serviceGroupId,
                                      org.apache.axiom.om.OMElement[] parameterElement)
                               throws org.apache.axis2.AxisFault
Throws:
org.apache.axis2.AxisFault

setServiceGroupParameter

public void setServiceGroupParameter(java.lang.String serviceGroupId,
                                     org.apache.axiom.om.OMElement parameterElement)
                              throws org.apache.axis2.AxisFault
Throws:
org.apache.axis2.AxisFault

getPolicy

public org.apache.axiom.om.OMElement getPolicy(java.lang.String serviceGroupId,
                                               java.lang.String serviceGroupVersion)
                                        throws org.apache.axis2.AxisFault
Throws:
org.apache.axis2.AxisFault

setPolicy

public void setPolicy(java.lang.String serviceGroupId,
                      java.lang.String serviceGroupVersion,
                      org.apache.axiom.om.OMElement policyElement)
               throws org.apache.axis2.AxisFault
Throws:
org.apache.axis2.AxisFault