org.apache.muse.ws.dm.muws.impl
Class SimpleOperationalStatus

java.lang.Object
  extended byorg.apache.muse.core.AbstractCapability
      extended byorg.apache.muse.ws.resource.impl.AbstractWsResourceCapability
          extended byorg.apache.muse.ws.dm.muws.impl.AbstractManageabilityCapability
              extended byorg.apache.muse.ws.dm.muws.impl.SimpleOperationalStatus
All Implemented Interfaces:
Capability, Initialization, InitializationParameters, ManageabilityCapability, OperationalStatus, Shutdown, WsResourceCapability, org.apache.muse.ws.resource.WsResourceCapabilityProperties

public class SimpleOperationalStatus
extends AbstractManageabilityCapability
implements OperationalStatus

SimpleOperationalStatus is Muse's default implementation of the WSDM OperationalStatus capability. Validating the muws2:OperationalStatus values against the enumeration defined by WSDM is done by the WSRP implementation.

Author:
Dan Jemiolo (danj)

Field Summary
 
Fields inherited from interface org.apache.muse.ws.dm.muws.OperationalStatus
AVAILABLE, PARTIALLY_AVAILABLE, PROPERTIES, UNAVAILABLE, UNKNOWN
 
Constructor Summary
SimpleOperationalStatus()
           
 
Method Summary
 java.lang.String getOperationalStatus()
           
 QName[] getPropertyNames()
          Concrete capability classes that define properties MUST override this method and provide the names of the properties.
 void initialize()
          

AbstractWsResourceCapability continues the initialization process by inspecting the concrete class to find all of the getters (and, if applicable, setters) for its resource properties. It then registers itself with the resource's WSRP collection so that read and write requests for its properties are delegated to it.

AbstractWsResourceCapability continues the initialization process by inspecting the concrete class to find all of the getters (and, if applicable, setters) for its resource properties.
 void setOperationalStatus(java.lang.String status)
           
 
Methods inherited from class org.apache.muse.ws.dm.muws.impl.AbstractManageabilityCapability
initializeCompleted
 
Methods inherited from class org.apache.muse.ws.resource.impl.AbstractWsResourceCapability
createGettersAndSetters, deleteProperty, getGetter, getProperty, getPropertyElements, getSetter, getWsResource, insertProperty, invokeMethod, setResource, updateProperty
 
Methods inherited from class org.apache.muse.core.AbstractCapability
getActions, getCapabilityURI, getEnvironment, getInitializationParameter, getInitializationParameters, getLog, getMessageHandler, getPersistence, getResource, hasBeenInitialized, hasBeenShutdown, prepareShutdown, setCapabilityURI, setEnvironment, setInitializationParameters, setLog, setMessageHandler, setMessageHandlers, setPersistence, shutdown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.muse.ws.resource.WsResourceCapability
deleteProperty, getProperty, getWsResource, insertProperty, updateProperty
 
Methods inherited from interface org.apache.muse.core.Capability
getActions, getCapabilityURI, getEnvironment, getLog, getMessageHandler, getPersistence, getResource, initializeCompleted, prepareShutdown, setCapabilityURI, setEnvironment, setLog, setMessageHandlers, setPersistence, setResource
 
Methods inherited from interface org.apache.muse.core.Initialization
hasBeenInitialized
 
Methods inherited from interface org.apache.muse.core.InitializationParameters
getInitializationParameter, getInitializationParameters, setInitializationParameters
 
Methods inherited from interface org.apache.muse.core.Shutdown
hasBeenShutdown, shutdown
 

Constructor Detail

SimpleOperationalStatus

public SimpleOperationalStatus()
Method Detail

getPropertyNames

public QName[] getPropertyNames()
Description copied from interface: org.apache.muse.ws.resource.WsResourceCapabilityProperties
Concrete capability classes that define properties MUST override this method and provide the names of the properties.

Specified by:
getPropertyNames in interface org.apache.muse.ws.resource.WsResourceCapabilityProperties
Overrides:
getPropertyNames in class AbstractWsResourceCapability

initialize

public void initialize()
                throws SoapFault
Description copied from class: AbstractWsResourceCapability


AbstractWsResourceCapability continues the initialization process by inspecting the concrete class to find all of the getters (and, if applicable, setters) for its resource properties. It then registers itself with the resource's WSRP collection so that read and write requests for its properties are delegated to it.

Specified by:
initialize in interface Initialization
Overrides:
initialize in class AbstractWsResourceCapability
Throws:
SoapFault

getOperationalStatus

public java.lang.String getOperationalStatus()
Specified by:
getOperationalStatus in interface OperationalStatus

setOperationalStatus

public void setOperationalStatus(java.lang.String status)
Specified by:
setOperationalStatus in interface OperationalStatus