Examples of PAGCMTypeFactory


Examples of org.objectweb.proactive.core.component.type.PAGCMTypeFactory

    GCMVirtualNode VN2 = gcmad.getVirtualNode("VN2");
    VN1.waitReady();
    VN2.waitReady();
   
    Component boot = Utils.getBootstrapComponent();
      PAGCMTypeFactory tf = Utils.getPAGCMTypeFactory(boot);
      PAGenericFactory gf = Utils.getPAGenericFactory(boot);
     
      ComponentType tTest = tf.createFcType(new InterfaceType[] {
          tf.createGCMItfType(
              "runnable",
              MSRunnable.class.getName(),
              GCMTypeFactory.SERVER,
              GCMTypeFactory.MANDATORY,
              GCMTypeFactory.SINGLETON_CARDINALITY),
        tf.createGCMItfType(
            "scc",
            SkandiumComponentController.class.getName(),
            GCMTypeFactory.SERVER,
            GCMTypeFactory.OPTIONAL,
            GCMTypeFactory.SINGLETON_CARDINALITY)
      });
     
      ComponentType tMergeSort = tf.createFcType(new InterfaceType[] {
          tf.createGCMItfType(
              "runnable",
              MSRunnable.class.getName(),
              GCMTypeFactory.SERVER,
              GCMTypeFactory.MANDATORY,
              GCMTypeFactory.SINGLETON_CARDINALITY),
          tf.createGCMItfType(
              "sc",
              SkandiumComponent.class.getName(),
              GCMTypeFactory.CLIENT,
              GCMTypeFactory.MANDATORY,
              GCMTypeFactory.SINGLETON_CARDINALITY),
        tf.createGCMItfType(
              "scrr",
              SCResultReceiver.class.getName(),
              GCMTypeFactory.SERVER,
            GCMTypeFactory.MANDATORY,
            GCMTypeFactory.SINGLETON_CARDINALITY)
      });
     
      ComponentType tSC = tf.createFcType(new InterfaceType[] {
          tf.createGCMItfType(
              "sc",
              SkandiumComponent.class.getName(),
              GCMTypeFactory.SERVER,
              GCMTypeFactory.MANDATORY,
              GCMTypeFactory.SINGLETON_CARDINALITY),
          tf.createGCMItfType(
              "scrr",
              SCResultReceiver.class.getName(),
              GCMTypeFactory.CLIENT,
              GCMTypeFactory.OPTIONAL,
              GCMTypeFactory.SINGLETON_CARDINALITY),
          tf.createGCMItfType(
              "sctS",
              SCTransmitter.class.getName(),
              GCMTypeFactory.SERVER,
              GCMTypeFactory.MANDATORY,
              GCMTypeFactory.SINGLETON_CARDINALITY),
          tf.createGCMItfType(
              "sct",
              SCTransmitter.class.getName(),
              GCMTypeFactory.CLIENT,
              GCMTypeFactory.OPTIONAL,
              GCMTypeFactory.SINGLETON_CARDINALITY),
          tf.createGCMItfType(
              "scrS",
              SCReceiver.class.getName(),
              GCMTypeFactory.SERVER,
              GCMTypeFactory.MANDATORY,
              GCMTypeFactory.SINGLETON_CARDINALITY),
        tf.createGCMItfType(
            "scr",
            SCReceiver.class.getName(),
            GCMTypeFactory.CLIENT,
            GCMTypeFactory.OPTIONAL,
            GCMTypeFactory.SINGLETON_CARDINALITY),
        tf.createGCMItfType(
            "scc",
            SkandiumComponentController.class.getName(),
            GCMTypeFactory.SERVER,
            GCMTypeFactory.OPTIONAL,
            GCMTypeFactory.SINGLETON_CARDINALITY)
View Full Code Here

Examples of org.objectweb.proactive.core.component.type.PAGCMTypeFactory

    GCMVirtualNode VN2 = gcmad.getVirtualNode("VN2");
    VN1.waitReady();
    VN2.waitReady();
   
    Component boot = Utils.getBootstrapComponent();
      PAGCMTypeFactory tf = Utils.getPAGCMTypeFactory(boot);
      PAGenericFactory gf = Utils.getPAGenericFactory(boot);
     
      ComponentType tComposite = tf.createFcType(new InterfaceType[] {
          tf.createGCMItfType(
              "runnable",
              Runnable.class.getName(),
              GCMTypeFactory.SERVER,
              GCMTypeFactory.MANDATORY,
              GCMTypeFactory.SINGLETON_CARDINALITY),
        tf.createGCMItfType(
            "scc",
            SkandiumComponentController.class.getName(),
            GCMTypeFactory.SERVER,
            GCMTypeFactory.OPTIONAL,
            GCMTypeFactory.SINGLETON_CARDINALITY)
      });
     
      ComponentType tExample = tf.createFcType(new InterfaceType[] {
          tf.createGCMItfType(
              "runnable",
              Runnable.class.getName(),
              GCMTypeFactory.SERVER,
              GCMTypeFactory.MANDATORY,
              GCMTypeFactory.SINGLETON_CARDINALITY),
          tf.createGCMItfType(
              "sc",
              SkandiumComponent.class.getName(),
              GCMTypeFactory.CLIENT,
              GCMTypeFactory.MANDATORY,
              GCMTypeFactory.SINGLETON_CARDINALITY),
        tf.createGCMItfType(
              "scrr",
              SCResultReceiver.class.getName(),
              GCMTypeFactory.SERVER,
            GCMTypeFactory.MANDATORY,
            GCMTypeFactory.SINGLETON_CARDINALITY)
      });
     
      ComponentType tSC = tf.createFcType(new InterfaceType[] {
          tf.createGCMItfType(
              "sc",
              SkandiumComponent.class.getName(),
              GCMTypeFactory.SERVER,
              GCMTypeFactory.MANDATORY,
              GCMTypeFactory.SINGLETON_CARDINALITY),
          tf.createGCMItfType(
              "scrr",
              SCResultReceiver.class.getName(),
              GCMTypeFactory.CLIENT,
              GCMTypeFactory.OPTIONAL,
              GCMTypeFactory.SINGLETON_CARDINALITY),
          tf.createGCMItfType(
              "sctS",
              SCTransmitter.class.getName(),
              GCMTypeFactory.SERVER,
              GCMTypeFactory.MANDATORY,
              GCMTypeFactory.SINGLETON_CARDINALITY),
          tf.createGCMItfType(
              "sct",
              SCTransmitter.class.getName(),
              GCMTypeFactory.CLIENT,
              GCMTypeFactory.OPTIONAL,
              GCMTypeFactory.SINGLETON_CARDINALITY),
          tf.createGCMItfType(
              "scrS",
              SCReceiver.class.getName(),
              GCMTypeFactory.SERVER,
              GCMTypeFactory.MANDATORY,
              GCMTypeFactory.SINGLETON_CARDINALITY),
        tf.createGCMItfType(
            "scr",
            SCReceiver.class.getName(),
            GCMTypeFactory.CLIENT,
            GCMTypeFactory.OPTIONAL,
            GCMTypeFactory.SINGLETON_CARDINALITY),
        tf.createGCMItfType(
            "scc",
            SkandiumComponentController.class.getName(),
            GCMTypeFactory.SERVER,
            GCMTypeFactory.OPTIONAL,
            GCMTypeFactory.SINGLETON_CARDINALITY)
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.