Package org.oasisOpen.docs.wsdm.x2004.x12.mows.wsdmMows

Examples of org.oasisOpen.docs.wsdm.x2004.x12.mows.wsdmMows.GetManageabilityReferencesDocument


        System.out.println(messageText);

        try
        {
            //parse out the managementevent
            ManagementEventTypeImpl manEvt = parseManagementEvent(messageText);

            //here is the epr and the address of the source of the event....this is the weatherstation which caused the event.
            EndpointReferenceType sourceEpr = parseSourceEpr(manEvt);
            String sourceAddress = sourceEpr.getAddress().getStringValue();
View Full Code Here


        Body body = env.getBody();
        XmlObject[] arryStuff = XmlBeanUtils.getChildElements(body);
        NotifyDocument.Notify ele = (NotifyDocument.Notify) arryStuff[0];
        NotificationMessageHolderType noteMess = ele.getNotificationMessageArray(0);
        XmlAnyTypeImpl mess = (XmlAnyTypeImpl) noteMess.getMessage();
        ManagementEventTypeImpl manEvt =
                (ManagementEventTypeImpl) XmlBeanUtils.getChildElements(mess)[0];
        return manEvt;
    }
View Full Code Here

        //determine if resource is a muws resource
        ResourceProperty identityProperty = getIdentityProperty(resource);
        if (identityProperty != null)
        {
            CreationNotificationDocument creationNotifDoc = CreationNotificationDocument.Factory.newInstance();
            CreationNotificationDocument.CreationNotification creationNotif = creationNotifDoc.addNewCreationNotification();
            EndpointReference epr = resource.getEndpointReference();
            if (epr != null && epr instanceof XmlBeansEndpointReference)
            {
                XmlBeansEndpointReference xBeansEPR = (XmlBeansEndpointReference) epr;
                XmlObject xBean = xBeansEPR.getXmlObject(org.apache.ws.addressing.v2004_08_10.AddressingConstants.NSURI_ADDRESSING_SCHEMA);
View Full Code Here

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

            //current time is done like in Apollo
            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

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

            // CurrentTime is done like in Apollo
            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

            Calendar calendarInstance = Calendar.getInstance();


            //current time is done like in Apollo
            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

         // init the {http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd}Relationship Resource Property


         // 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 );

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

         // init the {http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd}Relationship Resource Property

         //   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 );

         // init the {http://ws.apache.org/namespaces/muse/muws-ext-1.xsd}Owner Resource Property
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( HostPropertyQNames.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

         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 );

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

TOP

Related Classes of org.oasisOpen.docs.wsdm.x2004.x12.mows.wsdmMows.GetManageabilityReferencesDocument

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.