Examples of Coordinator


Examples of org.omg.CosTransactions.Coordinator

             */
            ORB orb = ORB.getInstance(PerformanceFramework.ORB_INSTANCE_NAME);
            OA oa = OA.getRootOA(orb);

            Control control = OTSManager.get_current().get_control();
            Coordinator coordinator = control.get_coordinator();

            DemoSubTranResource resource = new DemoSubTranResource();

            oa.objectIsReady(resource);
            SubtransactionAwareResource res = SubtransactionAwareResourceHelper.narrow(oa.corbaReference(resource));
            coordinator.register_resource(res);
        }
        catch (Exception e)
        {
            throw new PerfTestException();
        }
View Full Code Here

Examples of org.omg.CosTransactions.Coordinator

        if (theControl != null)
        {
      try
      {
          Coordinator theCoordinator = theControl.get_coordinator();

          if (theCoordinator != null)
          {
        stringRef = ORBManager.getORB().orb().object_to_string(theCoordinator);
          }
View Full Code Here

Examples of org.omg.CosTransactions.Coordinator

        if (theControl != null)
        {
      try
      {
          Coordinator theCoordinator = theControl.get_coordinator();
          PropagationContext ctx = null;

          if (theCoordinator != null)
          {
        ctx = theCoordinator.get_txcontext();

        data = packPropagationContext(ctx);

        theCoordinator = null;
          }
View Full Code Here

Examples of org.omg.CosTransactions.Coordinator

        if (theControl != null)
        {
      try
      {
          Coordinator theCoordinator = theControl.get_coordinator();
          PropagationContext ctx = null;
       
          if (theCoordinator != null)
          {
        ctx = theCoordinator.get_txcontext();

        data = packPropagationContext(ctx);
       
        theCoordinator = null;
          }
View Full Code Here

Examples of org.omg.CosTransactions.Coordinator

        if (theControl != null)
        {
      try
      {
          Coordinator theCoordinator = theControl.get_coordinator();

          if (theCoordinator != null)
          {
        stringRef = ORBManager.getORB().orb().object_to_string(theCoordinator);
          }
View Full Code Here

Examples of org.omg.CosTransactions.Coordinator

        if (theControl != null)
        {
      try
      {
          Coordinator theCoordinator = theControl.get_coordinator();
          PropagationContext ctx = null;
       
          if (theCoordinator != null)
          {
        ctx = theCoordinator.get_txcontext();

        data = packPropagationContext(ctx);
       
        theCoordinator = null;
          }
View Full Code Here

Examples of org.omg.CosTransactions.Coordinator

        if (theControl != null)
        {
      try
      {
          Coordinator theCoordinator = theControl.get_coordinator();

          if (theCoordinator != null)
          {
        stringRef = ORBManager.getORB().orb().object_to_string(theCoordinator);
          }
View Full Code Here

Examples of org.osgi.service.coordinator.Coordinator

        MultiStatus status = new MultiStatus(Plugin.PLUGIN_ID, 0, Messages.ResolveOperation_errorOverview, null);

        // Start a coordination
        BundleContext bc = Plugin.getDefault().getBundleContext();
        ServiceReference coordSvcRef = bc.getServiceReference(Coordinator.class.getName());
        Coordinator coordinator = coordSvcRef != null ? (Coordinator) bc.getService(coordSvcRef) : null;
        Coordination coordination = coordinator != null ? coordinator.begin(ResolveOperation.class.getName(), 0) : null;

        // Begin resolve
        ResolveProcess resolve = new ResolveProcess();
        ResolverLogger logger = new ResolverLogger();
        try {
View Full Code Here

Examples of org.osgi.service.coordinator.Coordinator

        MultiStatus status = new MultiStatus(Plugin.PLUGIN_ID, 0, Messages.ResolveOperation_errorOverview, null);

        // Start a coordination
        BundleContext bc = Plugin.getDefault().getBundleContext();
        ServiceReference<Coordinator> coordSvcRef = bc.getServiceReference(Coordinator.class);
        Coordinator coordinator = coordSvcRef != null ? (Coordinator) bc.getService(coordSvcRef) : null;
        Coordination coordination = coordinator != null ? coordinator.begin(ResolveOperation.class.getName(), 0) : null;

        // Begin resolve
        ResolveProcess resolve = new ResolveProcess();
        ResolverLogger logger = new ResolverLogger();
        try {
View Full Code Here

Examples of org.osgi.service.coordinator.Coordinator

  @Override
  public synchronized void removedService(ServiceReference<Object> reference, Object service) {
    if (service instanceof Coordinator) {
      if (service.equals(coordinator)) {
        Coordinator coordinator = (Coordinator)findAlternateServiceFor(this.coordinator);
        if (coordinator == null)
          deactivate();
        this.coordinator = coordinator;
      }
    }
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.