Package org.apache.ws.notification.topics.impl

Examples of org.apache.ws.notification.topics.impl.TopicSpaceImpl


         TopicSpaceSet aSet = getTopicSpaceSet(  );
         MuwsUtils.addRelationshipTopics( aSet );

         //MUWS TopicSpace
         TopicSpace muwsTopicSpace = new TopicSpaceImpl( MuwsConstants.NSURI_MUWS_PART2_TOPICS );
         aSet.addTopicSpace( muwsTopicSpace );

         ManagementEventTopic identityCapability =
            new XmlBeansManagementEventTopicImpl( IdentityCapability.TOPIC_NAME );
         muwsTopicSpace.addTopic( identityCapability );
         ManagementEventTopic manageabilityCharacteristicsCapability =
            new XmlBeansManagementEventTopicImpl( ManageabilityCharacteristicsCapability.TOPIC_NAME );
         muwsTopicSpace.addTopic( manageabilityCharacteristicsCapability );

         ManagementEventTopic muwsDescriptionCapability =
            new XmlBeansManagementEventTopicImpl( DescriptionCapability.TOPIC_NAME );
         muwsTopicSpace.addTopic( muwsDescriptionCapability );

         ManagementEventTopic metricCapability =
            new XmlBeansManagementEventTopicImpl( MetricsCapability.TOPIC_NAME );
         muwsTopicSpace.addTopic( metricCapability );

         // OperationalStatusCapability MUWS topic - add subtopics for AvailableDiskSpace
         ManagementEventTopic operationalStatCapability =
            new XmlBeansManagementEventTopicImpl( OperationalStatusCapability.TOPIC_NAME );

         //ManagementEventTopic statusDiskSpace = new XmlBeansManagementEventTopicImpl( ApplicationHome.AVAILABLE_DISK_TOPIC );
         //operationalStatCapability.addTopic(statusDiskSpace);
         muwsTopicSpace.addTopic( operationalStatCapability );

         m_eventScheduler = new EventScheduler( this );

         //MOWS TopicSpace
         TopicSpace mowsTopicSpace = new TopicSpaceImpl( MowsConstants.NSURI_MOWS_TOPICS );
         getTopicSpaceSet(  ).addTopicSpace( mowsTopicSpace );

         ManagementEventTopic mowsMetricsCapability =
            new XmlBeansManagementEventTopicImpl( MetricsCapability.TOPIC_NAME );
         mowsTopicSpace.addTopic( mowsMetricsCapability );

         // init the {http://ws.apache.org/muse/example/application/properties}TotalNumberOfRequests Resource Property
         resourceProperty = resourcePropertySet.get( ApplicationPropertyQNames.TOTALNUMBEROFREQUESTS );
         org.apache.ws.muse.example.application.properties.TotalNumberOfRequestsDocument prop_totalnumberofrequests =
            org.apache.ws.muse.example.application.properties.TotalNumberOfRequestsDocument.Factory.newInstance(  );
View Full Code Here


         */
      TopicSpaceSet aSet = getTopicSpaceSet();
      MuwsUtils.addRelationshipTopics(aSet);

        //MUWS TopicSpace
        TopicSpace muwsTopicSpace = new TopicSpaceImpl( MuwsConstants.NSURI_MUWS_PART2_TOPICS );
        aSet.addTopicSpace( muwsTopicSpace );

        ManagementEventTopic identityCapability = new XmlBeansManagementEventTopicImpl( IdentityCapability.TOPIC_NAME );
        muwsTopicSpace.addTopic( identityCapability );
       
        ManagementEventTopic manageabilityCharacteristicsCapability = new XmlBeansManagementEventTopicImpl( ManageabilityCharacteristicsCapability.TOPIC_NAME );
        muwsTopicSpace.addTopic( manageabilityCharacteristicsCapability );
       
        ManagementEventTopic operationalStatusCapability = new XmlBeansManagementEventTopicImpl(OperationalStatusCapability.TOPIC_NAME );
        muwsTopicSpace.addTopic( operationalStatusCapability );
       
        ManagementEventTopic muwsDescriptionCapability = new XmlBeansManagementEventTopicImpl( DescriptionCapability.TOPIC_NAME );
        muwsTopicSpace.addTopic( muwsDescriptionCapability );
       
        ManagementEventTopic metricCapability = new XmlBeansManagementEventTopicImpl(MetricsCapability.TOPIC_NAME );
        muwsTopicSpace.addTopic( metricCapability );


        //MOWS TopicSpace
        TopicSpace mowsTopicSpace = new TopicSpaceImpl( MowsConstants.NSURI_MOWS_TOPICS );
        getTopicSpaceSet().addTopicSpace( mowsTopicSpace );

        ManagementEventTopic mowsMetricsCapability = new XmlBeansManagementEventTopicImpl( MetricsCapability.TOPIC_NAME );
        mowsTopicSpace.addTopic( mowsMetricsCapability );
    

    // init the {http://ws.apache.org/muse/example/integrationserver/properties}ListenPort Resource Property
    resourceProperty = resourcePropertySet.get(IntegrationserverPropertyQNames.LISTENPORT);
    org.apache.ws.muse.example.integrationserver.properties.ListenPortDocument prop_listenport = org.apache.ws.muse.example.integrationserver.properties.ListenPortDocument.Factory.newInstance();
View Full Code Here

         resourceProperty.add( prop_supportedresources );

         // Topics
         org.apache.ws.notification.topics.TopicSpaceSet topicSpaceSet  = getTopicSpaceSet(  );
         TopicSpace                                      muwsTopicSpace =
            new TopicSpaceImpl( MuwsConstants.NSURI_MUWS_PART2_TOPICS );

         Topic                                           manageabilityEndpointCreation    =
            new XmlBeansAdvertisementTopicImpl( AdvertisementCapability.TOPIC_MANAGEABILITY_ENPOINT_CREATION_NAME,
                                                false );
         Topic                                           manageabilityEndpointDestruction =
            new XmlBeansAdvertisementTopicImpl( AdvertisementCapability.TOPIC_MANAGEABILITY_ENPOINT_DESTRUCTION_NAME,
                                                false );

         XmlBeansAdvertisementTopicImpl                  manageableResourceCreation    =
            new XmlBeansAdvertisementTopicImpl( AdvertisementCapability.TOPIC_MANAGEABLE_RESOURCE_CREATION_NAME );
         XmlBeansAdvertisementTopicImpl                  manageableResourceDestruction =
            new XmlBeansAdvertisementTopicImpl( AdvertisementCapability.TOPIC_MANAGEABLE_RESOURCE_DESTRUCTION_NAME );

         //register listeners for those topics with all known to resourceadmin  homes....
         addListenersToHomes( manageableResourceCreation, manageableResourceDestruction );

         manageabilityEndpointCreation.addTopic( manageableResourceCreation );
         manageabilityEndpointDestruction.addTopic( manageableResourceDestruction );
         muwsTopicSpace.addTopic( manageabilityEndpointCreation );
         muwsTopicSpace.addTopic( manageabilityEndpointDestruction );
         topicSpaceSet.addTopicSpace( muwsTopicSpace );

         ManagementEventTopic identityCapability =
            new XmlBeansManagementEventTopicImpl( IdentityCapability.TOPIC_NAME );
         muwsTopicSpace.addTopic( identityCapability );
         ManagementEventTopic manageabilityCharacteristicsCapability =
            new XmlBeansManagementEventTopicImpl( ManageabilityCharacteristicsCapability.TOPIC_NAME );
         muwsTopicSpace.addTopic( manageabilityCharacteristicsCapability );
         ManagementEventTopic operationalStatusCapability =
            new XmlBeansManagementEventTopicImpl( OperationalStatusCapability.TOPIC_NAME );
         muwsTopicSpace.addTopic( operationalStatusCapability );
         ManagementEventTopic muwsDescriptionCapability =
            new XmlBeansManagementEventTopicImpl( DescriptionCapability.TOPIC_NAME );
         muwsTopicSpace.addTopic( muwsDescriptionCapability );
         ManagementEventTopic metricCapability =
            new XmlBeansManagementEventTopicImpl( MetricsCapability.TOPIC_NAME );
         muwsTopicSpace.addTopic( metricCapability );

         // init the {http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part1.xsd}ResourceId Resource Property
         resourceProperty = resourcePropertySet.get( ResourceadminPropertyQNames.RESOURCEID );
         org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart1.ResourceIdDocument prop_resourceid =
            org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart1.ResourceIdDocument.Factory.newInstance(  );
View Full Code Here


        try
        {
            //MUWS TopicSpace
            TopicSpace muwsTopicSpace = new TopicSpaceImpl(MuwsConstants.NSURI_MUWS_PART2_TOPICS);
            getTopicSpaceSet().addTopicSpace(muwsTopicSpace);

            ManagementEventTopic identityCapability = new XmlBeansManagementEventTopicImpl("IdentityCapability");
            muwsTopicSpace.addTopic(identityCapability);
            ManagementEventTopic manageabilityCharacteristicsCapability = new XmlBeansManagementEventTopicImpl("ManageabilityCharacteristicsCapability");
            muwsTopicSpace.addTopic(manageabilityCharacteristicsCapability);
            ManagementEventTopic correlatablePropertiesCapability = new XmlBeansManagementEventTopicImpl("CorrelatablePropertiesCapability");
            muwsTopicSpace.addTopic(correlatablePropertiesCapability);
            ManagementEventTopic metricsCapability = new XmlBeansManagementEventTopicImpl("MetricsCapability");
            muwsTopicSpace.addTopic(metricsCapability);
            ManagementEventTopic relationshipCapability = new XmlBeansManagementEventTopicImpl("RelationshipCapability");
            muwsTopicSpace.addTopic(relationshipCapability);
            ManagementEventTopic operationalStatusCapability = new XmlBeansManagementEventTopicImpl("OperationalStatusCapability");
            muwsTopicSpace.addTopic(operationalStatusCapability);

            //MOWS TopicSpace
            TopicSpace mowsTopicSpace = new TopicSpaceImpl(MowsConstants.NSURI_MOWS_TOPICS);
            getTopicSpaceSet().addTopicSpace(mowsTopicSpace);

            ManagementEventTopic mowsIdentificationCapability = new XmlBeansManagementEventTopicImpl("IdentificationCapability");
            mowsTopicSpace.addTopic(mowsIdentificationCapability);
            ManagementEventTopic mowsMetricsCapability = new XmlBeansManagementEventTopicImpl("MetricsCapability");
            mowsTopicSpace.addTopic(mowsMetricsCapability);

            ManagementEventTopic mowsRequestProcessingStateCapability = new XmlBeansManagementEventTopicImpl("RequestProcessingStateCapability");
            mowsTopicSpace.addTopic(mowsRequestProcessingStateCapability);

            ManagementEventTopic mowsRequestProcessingObservations = new XmlBeansManagementEventTopicImpl("RequestProcessingObservations");
            mowsTopicSpace.addTopic(mowsRequestProcessingObservations);

            /** Capabilities **/
            //Management Characteristics
            resourceProperty = resourcePropertySet.get(WeatherstationPropertyQNames.MANAGEABILITYCAPABILITY);
            resourceProperty.addChangeListener(manageabilityCharacteristicsCapability);
View Full Code Here

            resourceProperty.add(manageabilityCapabilityDocument);


            /** Topics **/
            //MUWS TopicSpace
            TopicSpace muwsTopicSpace = new TopicSpaceImpl(MuwsConstants.NSURI_MUWS_PART2_TOPICS);
            getTopicSpaceSet().addTopicSpace(muwsTopicSpace);

            ManagementEventTopic operationalStatusCapability = new XmlBeansManagementEventTopicImpl("OperationalStatusCapability");
            muwsTopicSpace.addTopic(operationalStatusCapability);
            ManagementEventTopic metricsCapability = new XmlBeansManagementEventTopicImpl("MetricsCapability");
            muwsTopicSpace.addTopic(metricsCapability);
            ManagementEventTopic codeModuleSize = new XmlBeansManagementEventTopicImpl("CodeModuleSize");

            //Blackberry TopicSpace
            TopicSpace bbryTopicSpace = new TopicSpaceImpl(BlackberryPropertyQNames.ALLOCATEDSTORAGE.getNamespaceURI());
            getTopicSpaceSet().addTopicSpace(bbryTopicSpace);
            bbryTopicSpace.addTopic(codeModuleSize);

            /** Properties **/
            resourceProperty = resourcePropertySet.get(BlackberryPropertyQNames.RESOURCEID);
            ResourceIdDocument resourceIdDocument = ResourceIdDocument.Factory.newInstance();
            resourceIdDocument.setResourceId("urn:" + (String) getID());
View Full Code Here

         TopicSpaceSet aSet = getTopicSpaceSet(  );
         MuwsUtils.addRelationshipTopics( aSet );

         //MUWS TopicSpace
         TopicSpace muwsTopicSpace = new TopicSpaceImpl( MuwsConstants.NSURI_MUWS_PART2_TOPICS );
         aSet.addTopicSpace( muwsTopicSpace );

         ManagementEventTopic identityCapability =
            new XmlBeansManagementEventTopicImpl( IdentityCapability.TOPIC_NAME );
         muwsTopicSpace.addTopic( identityCapability );
         ManagementEventTopic manageabilityCharacteristicsCapability =
            new XmlBeansManagementEventTopicImpl( ManageabilityCharacteristicsCapability.TOPIC_NAME );
         muwsTopicSpace.addTopic( manageabilityCharacteristicsCapability );

         ManagementEventTopic muwsDescriptionCapability =
            new XmlBeansManagementEventTopicImpl( DescriptionCapability.TOPIC_NAME );
         muwsTopicSpace.addTopic( muwsDescriptionCapability );

         ManagementEventTopic metricCapability =
            new XmlBeansManagementEventTopicImpl( MetricsCapability.TOPIC_NAME );
         muwsTopicSpace.addTopic( metricCapability );

         //MOWS TopicSpace
         TopicSpace mowsTopicSpace = new TopicSpaceImpl( MowsConstants.NSURI_MOWS_TOPICS );
         getTopicSpaceSet(  ).addTopicSpace( mowsTopicSpace );

         ManagementEventTopic mowsMetricsCapability =
            new XmlBeansManagementEventTopicImpl( MetricsCapability.TOPIC_NAME );
         mowsTopicSpace.addTopic( mowsMetricsCapability );

         Calendar calendarInst = Calendar.getInstance(  );

         // init the {http://ws.apache.org/muse/example/businessprocesstype/properties}TotalNumberOfCompletedProcesses Resource Property
         resourceProperty =
View Full Code Here

        ManagementEventTopic metricCapability = new XmlBeansManagementEventTopicImpl(MetricsCapability.TOPIC_NAME );
        muwsTopicSpace.addTopic( metricCapability );


        //MOWS TopicSpace
        TopicSpace mowsTopicSpace = new TopicSpaceImpl( MowsConstants.NSURI_MOWS_TOPICS );
        getTopicSpaceSet().addTopicSpace( mowsTopicSpace );

        ManagementEventTopic mowsMetricsCapability = new XmlBeansManagementEventTopicImpl( MetricsCapability.TOPIC_NAME );
        mowsTopicSpace.addTopic( mowsMetricsCapability );


    // init the {http://ws.apache.org/muse/example/integrationserver/properties}ListenPort Resource Property
    resourceProperty = resourcePropertySet.get(IntegrationserverPropertyQNames.LISTENPORT);
    org.apache.ws.muse.example.integrationserver.properties.ListenPortDocument prop_listenport = org.apache.ws.muse.example.integrationserver.properties.ListenPortDocument.Factory.newInstance();
View Full Code Here

     * @param set
     * @throws Exception
     */
    public static void addRelationshipTopics(TopicSpaceSet set) throws Exception
    {
        TopicSpace topicSpace = new TopicSpaceImpl(MuwsConstants.NSURI_MUWS_PART2_TOPICS);
        Topic topic = topicSpace.addTopic(RelationshipsCapability.TOPIC_NAME);
        topic.addTopic(RelationshipsCapability.SUBTOPIC_NAME_RELATIONSHIP_CREATED);
        topic.addTopic(RelationshipsCapability.SUBTOPIC_NAME_RELATIONSHIP_DELETED);
        set.addTopicSpace(topicSpace);
    }
View Full Code Here

    org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart1.ResourceIdDocument prop_resourceid = org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart1.ResourceIdDocument.Factory.newInstance();
    prop_resourceid.setResourceId(" ")//singleton
    resourceProperty.add(prop_resourceid);

        org.apache.ws.notification.topics.TopicSpaceSet topicSpaceSet = getTopicSpaceSet();
        TopicSpace topicSpace = new TopicSpaceImpl(MuwsConstants.NSURI_MUWS_PART2_TOPICS);

        Topic manageabilityEndpointCreation = new XmlBeansAdvertisementTopicImpl(AdvertisementCapability.TOPIC_MANAGEABILITY_ENPOINT_CREATION_NAME);
        Topic manageabilityEndpointDestruction = new XmlBeansAdvertisementTopicImpl(AdvertisementCapability.TOPIC_MANAGEABILITY_ENPOINT_DESTRUCTION_NAME);

        XmlBeansAdvertisementTopicImpl manageableResourceCreation = new XmlBeansAdvertisementTopicImpl(AdvertisementCapability.TOPIC_MANAGEABLE_RESOURCE_CREATION_NAME);
        XmlBeansAdvertisementTopicImpl manageableResourceDestruction = new XmlBeansAdvertisementTopicImpl(AdvertisementCapability.TOPIC_MANAGEABLE_RESOURCE_DESTRUCTION_NAME);

        //todo associate these with all the homes....
        InitialContext ctx = new InitialContext();
        List homes = findHomes(ctx, new ArrayList(),"");
        for (int i = 0; i < homes.size(); i++)
        {
            String home = (String) homes.get(i);
            //do not register its own home
            if( ! home.equals(ResourceAdvertiserHome.HOME_LOCATION))
            {
                AbstractResourceHome absHome = (AbstractResourceHome) ctx.lookup(home);
                absHome.addResourceCreationListener(manageableResourceCreation);
                absHome.addResourceDestructionListener(manageableResourceDestruction);
            }
        }

        manageabilityEndpointCreation.addTopic(manageableResourceCreation);
        manageabilityEndpointDestruction.addTopic(manageableResourceDestruction);
        topicSpace.addTopic(manageabilityEndpointCreation);
        topicSpace.addTopic(manageabilityEndpointDestruction);
        topicSpaceSet.addTopicSpace(topicSpace);

    }
  catch (Exception e)
  {
View Full Code Here

TOP

Related Classes of org.apache.ws.notification.topics.impl.TopicSpaceImpl

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.