Package org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2

Examples of org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.RelationshipDocument


         prop_relationship.setRelationship( relationshipType );
         resourceProperty.add( prop_relationship );

         //     init the {http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd}CurrentTime ResourceProperty
         resourceProperty = resourcePropertySet.get( ApplicationPropertyQNames.CURRENTTIME );
         CurrentTimeDocument currentTimeDocument = CurrentTimeDocument.Factory.newInstance(  );
         currentTimeDocument.setCurrentTime( Calendar.getInstance(  ) );
         resourceProperty.add( currentTimeDocument );
         resourceProperty.setCallback( new org.apache.ws.resource.lifetime.callback.CurrentTimeCallback(  ) );
         resourceProperty.addChangeListener( metricCapability );
      }
      catch ( Exception e )
View Full Code Here


    prop_servername.setServerName(CAPTION + " - " + getHostName());
    resourceProperty.add(prop_servername);

    // init the {http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd}CurrentTime ResourceProperty
        resourceProperty = resourcePropertySet.get(IntegrationserverPropertyQNames.CURRENTTIME);
        CurrentTimeDocument currentTimeDocument = CurrentTimeDocument.Factory.newInstance();
        currentTimeDocument.setCurrentTime(Calendar.getInstance());
        resourceProperty.add(currentTimeDocument);
        resourceProperty.setCallback(new org.apache.ws.resource.lifetime.callback.CurrentTimeCallback());
        resourceProperty.addChangeListener(metricCapability);
 
 
View Full Code Here

            resourceIdDocument.setResourceId("urn:" + (String) getID());
            resourceProperty.add(resourceIdDocument);

            // CurrentTime is done like in WSRF
            resourceProperty = resourcePropertySet.get(IpmiserverPropertyQNames.CURRENTTIME);
            CurrentTimeDocument currentTimeDocument = CurrentTimeDocument.Factory.newInstance();
            currentTimeDocument.setCurrentTime(Calendar.getInstance());
            resourceProperty.add(currentTimeDocument);
            resourceProperty.setCallback(new org.apache.ws.resource.lifetime.callback.CurrentTimeCallback());

            resourceProperty = resourcePropertySet.get(IpmiserverPropertyQNames.OPERATIONALSTATUS);
            OperationalStatusDocument operationalStatusDocument = OperationalStatusDocument.Factory.newInstance();
View Full Code Here

         prop_resourcetype.setResourceType( RESOURCE_TYPE );
         resourceProperty.add( prop_resourcetype );

         // init the {http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd}CurrentTime ResourceProperty
         resourceProperty = resourcePropertySet.get( ResourceadminPropertyQNames.CURRENTTIME );
         CurrentTimeDocument currentTimeDocument = CurrentTimeDocument.Factory.newInstance(  );
         currentTimeDocument.setCurrentTime( Calendar.getInstance(  ) );
         resourceProperty.add( currentTimeDocument );
         resourceProperty.setCallback( new org.apache.ws.resource.lifetime.callback.CurrentTimeCallback(  ) );
         resourceProperty.addChangeListener( metricCapability );
      }
      catch ( Exception e )
View Full Code Here

            Calendar calendarInstance = Calendar.getInstance();


            //current time is done like in WSRF
            resourceProperty = resourcePropertySet.get(BlackberryPropertyQNames.CURRENTTIME);
            CurrentTimeDocument currentTimeDocument = CurrentTimeDocument.Factory.newInstance();
            currentTimeDocument.setCurrentTime(calendarInstance);
            resourceProperty.add(currentTimeDocument);
            resourceProperty.setCallback(new org.apache.ws.resource.lifetime.callback.CurrentTimeCallback());
            resourceProperty.addChangeListener(metricsCapability);

            resourceProperty = resourcePropertySet.get(BlackberryPropertyQNames.DATE);
View Full Code Here

            resourceProperty.add(resourceIdDocument);
            resourceProperty.addChangeListener(identityCapability);//add for management events

            //current time is done like in WSRF
            resourceProperty = resourcePropertySet.get(WeatherstationPropertyQNames.CURRENTTIME);
            CurrentTimeDocument currentTimeDocument = CurrentTimeDocument.Factory.newInstance();
            currentTimeDocument.setCurrentTime(Calendar.getInstance());
            resourceProperty.add(currentTimeDocument);
            resourceProperty.setCallback(new org.apache.ws.resource.lifetime.callback.CurrentTimeCallback());
            resourceProperty.addChangeListener(metricsCapability);//add for management events

            resourceProperty = resourcePropertySet.get(WeatherstationPropertyQNames.OPERATIONALSTATUS);
View Full Code Here

         prop_relationship.setRelationship( relationshipType );
         resourceProperty.add( prop_relationship );

         //     init the {http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd}CurrentTime ResourceProperty
         resourceProperty = resourcePropertySet.get( BusinessprocesstypePropertyQNames.CURRENTTIME );
         CurrentTimeDocument currentTimeDocument = CurrentTimeDocument.Factory.newInstance(  );
         currentTimeDocument.setCurrentTime( Calendar.getInstance(  ) );
         resourceProperty.add( currentTimeDocument );
         resourceProperty.setCallback( new org.apache.ws.resource.lifetime.callback.CurrentTimeCallback(  ) );
         resourceProperty.addChangeListener( metricCapability );
      }
      catch ( Exception e )
View Full Code Here

    prop_servername.setServerName(CAPTION + " - " + getHostName());
    resourceProperty.add(prop_servername);

    // init the {http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd}CurrentTime ResourceProperty
        resourceProperty = resourcePropertySet.get(IntegrationserverPropertyQNames.CURRENTTIME);
        CurrentTimeDocument currentTimeDocument = CurrentTimeDocument.Factory.newInstance();
        currentTimeDocument.setCurrentTime(Calendar.getInstance());
        resourceProperty.add(currentTimeDocument);
        resourceProperty.setCallback(new org.apache.ws.resource.lifetime.callback.CurrentTimeCallback());
        resourceProperty.addChangeListener(metricCapability);

        // init the {http://ws.apache.org/namespaces/muse/muws-ext-1.xsd}Owner Resource Property
View Full Code Here

            else
            {
                resourceID = id.toString();
            }

            DestructionNotificationDocument destructionNotifDoc = DestructionNotificationDocument.Factory.newInstance();
            DestructionNotificationDocument.DestructionNotification destructionNotif = destructionNotifDoc.addNewDestructionNotification();
            destructionNotif.setResourceId((String) resourceID);
            try
            {
                publish(buildManagementEvent(destructionNotifDoc));
            }
View Full Code Here

    public void destructionOccurred(ResourceDestructionEvent event)
    {
        Object resourceID = event.getResourceID();
        if (resourceID != null)
        {
            DestructionNotificationDocument destructionNotificationDocument = DestructionNotificationDocument.Factory.newInstance();
            org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.DestructionNotificationDocument.DestructionNotification destructionNotification = destructionNotificationDocument.addNewDestructionNotification();

            destructionNotification.setResourceId((String) resourceID);
            try
            {
                publish(buildManagementEvent(destructionNotificationDocument));
            }
            catch (Exception e)
            {
                if (LOG.isDebugEnabled())
                {
                    LOG.debug("Publishing of the notification: " + destructionNotificationDocument.toString() + " failed.", e);
                }
            }
        }
    }
View Full Code Here

TOP

Related Classes of org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.RelationshipDocument

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.