Package org.globus.wsrf

Examples of org.globus.wsrf.ResourceProperty


    this.propSet = new SimpleResourcePropertySet(
        MapQNames.RESOURCE_PROPERTIES);

    /* Initialize the RP's */
    try {
      ResourceProperty valueRP = new ReflectionResourceProperty(
          MapQNames.RP_VALUE, "Value", this);
      this.propSet.add(valueRP);
      setValue(0);

      ResourceProperty lastOpRP = new ReflectionResourceProperty(
          MapQNames.RP_LASTOP, "LastOp", this);
      this.propSet.add(lastOpRP);
      setLastOp("NONE");
    } catch (Exception e) {
      throw new RuntimeException(e.getMessage());
View Full Code Here


            this.props.add(new RP_Schedule(this));
            this.props.add(new RP_ResourceAllocation(this));
            this.props.add(new RP_CurrentTime(this));
            this.props.add(new RP_TerminationTime(this));

            final ResourceProperty stateRP = new RP_CurrentState(this);
            this.props.add(stateRP);
            this.statusTopic = new ResourcePropertyTopic(stateRP);
            this.statusTopic.setAutoNotify(false);

            this.topics = new SimpleTopicList(this);
View Full Code Here

        final Integer ttl =
                new Integer(advert.getDefaultRunningTimeSeconds());
        final Duration ttlDur =
                CommonUtil.minutesToDuration(ttl.intValue());
               
        ResourceProperty prop =
                new SimpleResourceProperty(
                        Constants_GT4_0.RP_FACTORY_DefTTL);
        prop.add(ttlDur);
        this.propSet.add(prop);

        /* MaximumRunningTime: */

        final Integer maxttl =
                        new Integer(advert.getMaximumRunningTimeSeconds());
        final Duration maxTtlDur =
                        CommonUtil.minutesToDuration(maxttl.intValue());

        prop = new SimpleResourceProperty(
                        Constants_GT4_0.RP_FACTORY_MaxTTL);
        prop.add(maxTtlDur);
        this.propSet.add(prop);


        /* TODO: NOT an RP yet: MaximumAfterRunningTime */
        //final Integer offset =
        //        new Integer(advert.getMaximumAfterRunningTime());
        //final Duration offsetDur =
        //        CommonUtil.minutesToDuration(offset.intValue());

       
        /* CPUArchitectureName */

        final String[] validArches = advert.getCpuArchitectureNames();
        if (validArches != null && validArches.length > 0) {
            prop = new SimpleResourceProperty(Constants_GT4_0.RP_FACTORY_CPUArch);
            // Can only advertise one of them due to JSDL XSD restrictions.
            prop.add(validArches[0]);
            this.propSet.add(prop);
        }

        if (advert.getVmm() != null) {
            final VMM_Type vmm = new VMM_Type();
            vmm.setType(VMM_TypeType.Xen);
            final String[] versions = advert.getVmmVersions();
            if (versions != null) {
                vmm.setVersion(versions);
            }
            prop = new SimpleResourceProperty(Constants_GT4_0.RP_FACTORY_VMM);
            prop.add(vmm);
            this.propSet.add(prop);
        }

        final String[] assocs;
        try {
            assocs = advert.getNetworkNames();
        } catch (Exception e) {
            throw new ResourceException(e);
        }

        if (assocs != null && assocs.length > 0) {
            final Associations rpAssoc = new Associations(assocs);
            prop = new SimpleResourceProperty(Constants_GT4_0.RP_FACTORY_ASSOCIATIONS);
            prop.add(rpAssoc);
            this.propSet.add(prop);
        }
    }
View Full Code Here

        this.propertySet = new SimpleResourcePropertySet(
                                  BrokerConstants.CONTEXTUALIZATION_RP_SET);

        try {
            ResourceProperty rp = new SimpleResourceProperty(
                              BrokerConstants.RP_CONTEXTUALIZATION_CONTEXT);
            rp.add(null);
            this.propertySet.add(rp);

            rp = new ReflectionResourceProperty(
                    BrokerConstants.RP_CONTEXTUALIZATION_CONTEXT, this);
            this.propertySet.add(rp);
View Full Code Here

TOP

Related Classes of org.globus.wsrf.ResourceProperty

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.