ws-muse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sc...@apache.org
Subject svn commit: r158822 - in incubator/muse/trunk/src: java/org/apache/ws/muws/v1_0/capability/ site/content/interop/src/java/org/apache/ws/resource/example/blackberry/ site/content/interop/src/java/org/apache/ws/resource/example/ipmiserver/ site/content/interop/src/java/org/apache/ws/resource/example/mowsfactory/ site/content/interop/src/java/org/everestWeather/wsdm/samples/x2005/x04/schema/
Date Wed, 23 Mar 2005 19:43:40 GMT
Author: scamp
Date: Wed Mar 23 11:43:38 2005
New Revision: 158822

URL: http://svn.apache.org/viewcvs?view=rev&rev=158822
Log: (empty)


Added:
    incubator/muse/trunk/src/java/org/apache/ws/muws/v1_0/capability/ConfigurationCapability.java
Modified:
    incubator/muse/trunk/src/site/content/interop/src/java/org/apache/ws/resource/example/blackberry/BlackberryResource.java
    incubator/muse/trunk/src/site/content/interop/src/java/org/apache/ws/resource/example/ipmiserver/IpmiserverResource.java
    incubator/muse/trunk/src/site/content/interop/src/java/org/apache/ws/resource/example/mowsfactory/MowsfactoryResource.java
    incubator/muse/trunk/src/site/content/interop/src/java/org/everestWeather/wsdm/samples/x2005/x04/schema/WeatherstationResource.java

Added: incubator/muse/trunk/src/java/org/apache/ws/muws/v1_0/capability/ConfigurationCapability.java
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/java/org/apache/ws/muws/v1_0/capability/ConfigurationCapability.java?view=auto&rev=158822
==============================================================================
--- incubator/muse/trunk/src/java/org/apache/ws/muws/v1_0/capability/ConfigurationCapability.java
(added)
+++ incubator/muse/trunk/src/java/org/apache/ws/muws/v1_0/capability/ConfigurationCapability.java
Wed Mar 23 11:43:38 2005
@@ -0,0 +1,35 @@
+package org.apache.ws.muws.v1_0.capability;
+
+import org.apache.ws.muws.v1_0.MuwsConstants;
+import javax.xml.namespace.QName;
+
+/**
+ * The MUWS Configuration manageability capability.
+ *
+ * @author Sal Campana
+ */
+public interface ConfigurationCapability
+{
+
+    /**
+     * Name of this capability.
+     */
+    String NAME = "Configuration";
+
+    /**
+     * Port type name.
+     */
+    QName PORT_TYPE_NAME = new QName( MuwsConstants.NSURI_MUWS_PART2_WSDL, NAME, MuwsConstants.NSPREFIX_MUWS_PART2_WSDL
);
+
+    /**
+     * Manageability capability URI.
+     */
+    String URI = MuwsConstants.BASE_URI_MUWS_CAPABILITIES + NAME;
+
+    /**
+     * Topic name.
+     */
+    String TOPIC_NAME = NAME + "Capability";
+
+
+}

Modified: incubator/muse/trunk/src/site/content/interop/src/java/org/apache/ws/resource/example/blackberry/BlackberryResource.java
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/site/content/interop/src/java/org/apache/ws/resource/example/blackberry/BlackberryResource.java?view=diff&r1=158821&r2=158822
==============================================================================
--- incubator/muse/trunk/src/site/content/interop/src/java/org/apache/ws/resource/example/blackberry/BlackberryResource.java
(original)
+++ incubator/muse/trunk/src/site/content/interop/src/java/org/apache/ws/resource/example/blackberry/BlackberryResource.java
Wed Mar 23 11:43:38 2005
@@ -3,6 +3,9 @@
 
 import org.apache.ws.resource.properties.ResourceProperty;
 import org.apache.ws.muws.v1_0.capability.IdentityCapability;
+import org.apache.ws.muws.v1_0.capability.MetricsCapability;
+import org.apache.ws.muws.v1_0.capability.ConfigurationCapability;
+import org.apache.ws.mows.v1_0.capability.OperationalStatusCapability;
 import org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart1.ManageabilityCapabilityDocument;
 
 /**
@@ -37,12 +40,42 @@
 
         org.apache.ws.resource.properties.ResourcePropertySet resourcePropertySet = getResourcePropertySet();
 
+        /** Capabilities **/
+        //Management Characteristics
         ResourceProperty resourceProperty = resourcePropertySet.get(BlackberryPropertyQNames.MANAGEABILITYCAPABILITY);
+
+        //Identity Capability
         ManageabilityCapabilityDocument manageabilityCapabilityDocument = ManageabilityCapabilityDocument.Factory.newInstance();
         manageabilityCapabilityDocument.setManageabilityCapability(IdentityCapability.URI);
         resourceProperty.add(manageabilityCapabilityDocument);
 
+        //MUWS2 Metrics Capability
+        manageabilityCapabilityDocument = ManageabilityCapabilityDocument.Factory.newInstance();
+        manageabilityCapabilityDocument.setManageabilityCapability(MetricsCapability.URI);
+        resourceProperty.add(manageabilityCapabilityDocument);
+
+        //Blackberry Metrics Capability
+        manageabilityCapabilityDocument = ManageabilityCapabilityDocument.Factory.newInstance();
+        manageabilityCapabilityDocument.setManageabilityCapability("http://pda.rim/BlackberryMetrics");
+        resourceProperty.add(manageabilityCapabilityDocument);
+
+        //Configuration
+        manageabilityCapabilityDocument = ManageabilityCapabilityDocument.Factory.newInstance();
+        manageabilityCapabilityDocument.setManageabilityCapability(ConfigurationCapability.URI);
+        resourceProperty.add(manageabilityCapabilityDocument);
+
+        //Blackberry Configuration Capability
+        manageabilityCapabilityDocument = ManageabilityCapabilityDocument.Factory.newInstance();
+        manageabilityCapabilityDocument.setManageabilityCapability("http://pda.rim/BlackberryConfiguration");
+        resourceProperty.add(manageabilityCapabilityDocument);
+
+        //Status Capability
+        manageabilityCapabilityDocument = ManageabilityCapabilityDocument.Factory.newInstance();
+        manageabilityCapabilityDocument.setManageabilityCapability(OperationalStatusCapability.URI);
+        resourceProperty.add(manageabilityCapabilityDocument);
+
         //todo
+        /** Properties **/
         resourceProperty = resourcePropertySet.get(BlackberryPropertyQNames.ALLOCATEDSTORAGE);
         resourceProperty = resourcePropertySet.get(BlackberryPropertyQNames.CURRENTTIME);
         resourceProperty = resourcePropertySet.get(BlackberryPropertyQNames.CURRENTTIME2);

Modified: incubator/muse/trunk/src/site/content/interop/src/java/org/apache/ws/resource/example/ipmiserver/IpmiserverResource.java
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/site/content/interop/src/java/org/apache/ws/resource/example/ipmiserver/IpmiserverResource.java?view=diff&r1=158821&r2=158822
==============================================================================
--- incubator/muse/trunk/src/site/content/interop/src/java/org/apache/ws/resource/example/ipmiserver/IpmiserverResource.java
(original)
+++ incubator/muse/trunk/src/site/content/interop/src/java/org/apache/ws/resource/example/ipmiserver/IpmiserverResource.java
Wed Mar 23 11:43:38 2005
@@ -3,6 +3,7 @@
 
 import org.apache.ws.resource.properties.ResourceProperty;
 import org.apache.ws.muws.v1_0.capability.IdentityCapability;
+import org.apache.ws.mows.v1_0.capability.OperationalStatusCapability;
 import org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart1.ManageabilityCapabilityDocument;
 
 /**
@@ -26,25 +27,38 @@
     public void init()
     {
         super.init();
-        
-        	
 
-   /**
-    * This method call will make all resource properties be exposed
-    * as Topics.  If you would like to change that behaviour you can 
-    * call TopicUtils.addResourcePropertyValueChangeTopic for each
-    * Topic you'd like to expose property change notifications for.
-    */
-   org.apache.ws.notification.topics.util.TopicUtils.addResourcePropertyValueChangeTopics(
getResourcePropertySet(), getTopicSpaceSet() );   
-                
+        /**
+         * This method call will make all resource properties be exposed
+         * as Topics.  If you would like to change that behaviour you can
+         * call TopicUtils.addResourcePropertyValueChangeTopic for each
+         * Topic you'd like to expose property change notifications for.
+         */
+        org.apache.ws.notification.topics.util.TopicUtils.addResourcePropertyValueChangeTopics(getResourcePropertySet(),
getTopicSpaceSet());
+
         org.apache.ws.resource.properties.ResourcePropertySet resourcePropertySet = getResourcePropertySet();
 
+        /** Capabilities **/
+        //Management Characteristics
         ResourceProperty resourceProperty = resourcePropertySet.get(IpmiserverPropertyQNames.MANAGEABILITYCAPABILITY);
+
+        //Identity Capability
         ManageabilityCapabilityDocument manageabilityCapabilityDocument = ManageabilityCapabilityDocument.Factory.newInstance();
         manageabilityCapabilityDocument.setManageabilityCapability(IdentityCapability.URI);
         resourceProperty.add(manageabilityCapabilityDocument);
 
+        //Status Capability
+        manageabilityCapabilityDocument = ManageabilityCapabilityDocument.Factory.newInstance();
+        manageabilityCapabilityDocument.setManageabilityCapability(OperationalStatusCapability.URI);
+        resourceProperty.add(manageabilityCapabilityDocument);
+
+        //Server Reset Capability
+        manageabilityCapabilityDocument = ManageabilityCapabilityDocument.Factory.newInstance();
+        manageabilityCapabilityDocument.setManageabilityCapability("http://.../ServerReset");
+        resourceProperty.add(manageabilityCapabilityDocument);
+
         //todo
+        /** Properties **/
         resourceProperty = resourcePropertySet.get(IpmiserverPropertyQNames.CPUUSAGE);
         resourceProperty = resourcePropertySet.get(IpmiserverPropertyQNames.CURRENTTIME);
         resourceProperty = resourcePropertySet.get(IpmiserverPropertyQNames.OPERATIONALSTATUS);

Modified: incubator/muse/trunk/src/site/content/interop/src/java/org/apache/ws/resource/example/mowsfactory/MowsfactoryResource.java
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/site/content/interop/src/java/org/apache/ws/resource/example/mowsfactory/MowsfactoryResource.java?view=diff&r1=158821&r2=158822
==============================================================================
--- incubator/muse/trunk/src/site/content/interop/src/java/org/apache/ws/resource/example/mowsfactory/MowsfactoryResource.java
(original)
+++ incubator/muse/trunk/src/site/content/interop/src/java/org/apache/ws/resource/example/mowsfactory/MowsfactoryResource.java
Wed Mar 23 11:43:38 2005
@@ -4,6 +4,7 @@
 import org.apache.ws.resource.properties.ResourceProperty;
 import org.apache.ws.resource.example.blackberry.BlackberryPropertyQNames;
 import org.apache.ws.muws.v1_0.capability.IdentityCapability;
+import org.apache.ws.mows.v1_0.capability.OperationalStatusCapability;
 import org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart1.ManageabilityCapabilityDocument;
 
 /**
@@ -25,16 +26,25 @@
     public void init()
     {
         super.init();
-        
-                
+
         org.apache.ws.resource.properties.ResourcePropertySet resourcePropertySet = getResourcePropertySet();
 
+        /** Capabilities **/
+        //Management Characteristics
         ResourceProperty resourceProperty = resourcePropertySet.get(MowsfactoryPropertyQNames.MANAGEABILITYCAPABILITY);
+
+        //Identity Capability
         ManageabilityCapabilityDocument manageabilityCapabilityDocument = ManageabilityCapabilityDocument.Factory.newInstance();
         manageabilityCapabilityDocument.setManageabilityCapability(IdentityCapability.URI);
         resourceProperty.add(manageabilityCapabilityDocument);
 
+        //Status Capability
+        manageabilityCapabilityDocument = ManageabilityCapabilityDocument.Factory.newInstance();
+        manageabilityCapabilityDocument.setManageabilityCapability(OperationalStatusCapability.URI);
+        resourceProperty.add(manageabilityCapabilityDocument);
+
         //todo
+        /** Properties **/
         resourceProperty = resourcePropertySet.get(MowsfactoryPropertyQNames.OPERATIONALSTATUS);
         resourceProperty = resourcePropertySet.get(MowsfactoryPropertyQNames.RESOURCEID);
     }

Modified: incubator/muse/trunk/src/site/content/interop/src/java/org/everestWeather/wsdm/samples/x2005/x04/schema/WeatherstationResource.java
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/site/content/interop/src/java/org/everestWeather/wsdm/samples/x2005/x04/schema/WeatherstationResource.java?view=diff&r1=158821&r2=158822
==============================================================================
--- incubator/muse/trunk/src/site/content/interop/src/java/org/everestWeather/wsdm/samples/x2005/x04/schema/WeatherstationResource.java
(original)
+++ incubator/muse/trunk/src/site/content/interop/src/java/org/everestWeather/wsdm/samples/x2005/x04/schema/WeatherstationResource.java
Wed Mar 23 11:43:38 2005
@@ -5,7 +5,12 @@
 import org.apache.ws.resource.example.blackberry.BlackberryPropertyQNames;
 import org.apache.ws.muws.v1_0.capability.IdentityCapability;
 import org.apache.ws.muws.v1_0.capability.CorrelatablePropertiesCapability;
+import org.apache.ws.muws.v1_0.capability.MetricsCapability;
+import org.apache.ws.muws.v1_0.capability.RelationshipsCapability;
 import org.apache.ws.mows.v1_0.capability.EndpointIdentificationCapability;
+import org.apache.ws.mows.v1_0.capability.EndpointMetricsCapability;
+import org.apache.ws.mows.v1_0.capability.OperationalStatusCapability;
+import org.apache.ws.mows.v1_0.capability.RequestProcessingStateCapability;
 import org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart1.ManageabilityCapabilityDocument;
 
 /**
@@ -30,27 +35,54 @@
         
         org.apache.ws.resource.properties.ResourcePropertySet resourcePropertySet = getResourcePropertySet();
 
+        /** Capabilities **/
         //Management Characteristics
         ResourceProperty resourceProperty = resourcePropertySet.get(WeatherstationPropertyQNames.MANAGEABILITYCAPABILITY);
 
-        //Identity
+        //Identity Capability
         ManageabilityCapabilityDocument manageabilityCapabilityDocument = ManageabilityCapabilityDocument.Factory.newInstance();
         manageabilityCapabilityDocument.setManageabilityCapability(IdentityCapability.URI);
         resourceProperty.add(manageabilityCapabilityDocument);
 
-        //Correelateable Properties
+        //Identification Capability
         manageabilityCapabilityDocument = ManageabilityCapabilityDocument.Factory.newInstance();
-        manageabilityCapabilityDocument.setManageabilityCapability(CorrelatablePropertiesCapability.URI);
+        manageabilityCapabilityDocument.setManageabilityCapability(EndpointIdentificationCapability.URI);
         resourceProperty.add(manageabilityCapabilityDocument);
 
-        //Identification Capability
+        //MUWS2 Metrics Capability
         manageabilityCapabilityDocument = ManageabilityCapabilityDocument.Factory.newInstance();
-        manageabilityCapabilityDocument.setManageabilityCapability(EndpointIdentificationCapability.URI);
+        manageabilityCapabilityDocument.setManageabilityCapability(MetricsCapability.URI);
+        resourceProperty.add(manageabilityCapabilityDocument);
+
+        //MOWS Metrics Capability
+        manageabilityCapabilityDocument = ManageabilityCapabilityDocument.Factory.newInstance();
+        manageabilityCapabilityDocument.setManageabilityCapability(EndpointMetricsCapability.URI);
+        resourceProperty.add(manageabilityCapabilityDocument);
+
+        //Status Capability
+        manageabilityCapabilityDocument = ManageabilityCapabilityDocument.Factory.newInstance();
+        manageabilityCapabilityDocument.setManageabilityCapability(OperationalStatusCapability.URI);
+        resourceProperty.add(manageabilityCapabilityDocument);
+
+        //Request Processing State Capability
+        manageabilityCapabilityDocument = ManageabilityCapabilityDocument.Factory.newInstance();
+        manageabilityCapabilityDocument.setManageabilityCapability(RequestProcessingStateCapability.URI);
+        resourceProperty.add(manageabilityCapabilityDocument);
+
+        //Relationship Capability
+        manageabilityCapabilityDocument = ManageabilityCapabilityDocument.Factory.newInstance();
+        manageabilityCapabilityDocument.setManageabilityCapability(RelationshipsCapability.URI);
+        resourceProperty.add(manageabilityCapabilityDocument);
+
+        //Correlateable Properties Capability
+        manageabilityCapabilityDocument = ManageabilityCapabilityDocument.Factory.newInstance();
+        manageabilityCapabilityDocument.setManageabilityCapability(CorrelatablePropertiesCapability.URI);
         resourceProperty.add(manageabilityCapabilityDocument);
 
         //todo setup mows:epr, mows:epdesc
 
         //todo
+        /** Properties **/
         resourceProperty = resourcePropertySet.get(WeatherstationPropertyQNames.CURRENTTIME);
         resourceProperty = resourcePropertySet.get(WeatherstationPropertyQNames.OPERATIONALSTATUS);
         resourceProperty = resourcePropertySet.get(WeatherstationPropertyQNames.RELATIONSHIP);



---------------------------------------------------------------------
To unsubscribe, e-mail: muse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-dev-help@ws.apache.org


Mime
View raw message