Examples of destroyInstance()


Examples of org.apache.tomcat.InstanceManager.destroyInstance()

    public void destroy() {
        if (theServlet != null) {
            theServlet.destroy();
            InstanceManager instanceManager = InstanceManagerFactory.getInstanceManager(config);
            try {
                instanceManager.destroyInstance(theServlet);
            } catch (Exception e) {
                Throwable t = ExceptionUtils.unwrapInvocationTargetException(e);
                ExceptionUtils.handleThrowable(t);
                // Log any exception, since it can't be passed along
                log.error(Localizer.getMessage("jsp.error.file.not.found",
View Full Code Here

Examples of org.apache.whirr.ClusterController.destroyInstance()

  }

  public int run(InputStream in, PrintStream out, PrintStream err,
                 ClusterSpec clusterSpec, String instanceId) throws Exception {
    ClusterController controller = createClusterController(clusterSpec.getServiceName());
    controller.destroyInstance(clusterSpec, instanceId);
    return 0;
  }


  @Override
View Full Code Here

Examples of org.apache.whirr.ClusterController.destroyInstance()

      }
      ClusterSpec clusterSpec = getClusterSpec(optionSet);
      ClusterController controller = createClusterController(clusterSpec.getServiceName());

      String instanceId = optionSet.valueOf(instanceOption);
      controller.destroyInstance(clusterSpec, instanceId);

      return 0;

    } catch(IllegalArgumentException e) {
      err.println(e.getMessage());
View Full Code Here

Examples of org.apache.whirr.ClusterController.destroyInstance()

      }
      ClusterSpec clusterSpec = getClusterSpec(optionSet);
      ClusterController controller = createClusterController(clusterSpec.getServiceName());

      String instanceId = optionSet.valueOf(instanceOption);
      controller.destroyInstance(clusterSpec, instanceId);

      return 0;

    } catch(IllegalArgumentException e) {
      err.println(e.getMessage());
View Full Code Here

Examples of org.apache.whirr.service.Service.destroyInstance()

      }
      ClusterSpec clusterSpec = getClusterSpec(optionSet);
      Service service = createService(clusterSpec.getServiceName());

      String instanceId = optionSet.valueOf(instanceOption);
      service.destroyInstance(clusterSpec, instanceId);
      updateInstancesFile(clusterSpec, instanceId);

      return 0;

    } catch(IllegalArgumentException e) {
View Full Code Here

Examples of org.jboss.arquillian.drone.spi.Destructor.destroyInstance()

            droneLifecycleEvent.fire(new BeforeDroneDestroyed(dronePoint));

            // we need to get drone once again, at it might get modified by observers on previous event
            Object drone = context.get(dronePoint).getInstance();

            destructor.destroyInstance(drone);
        }

        if (wasInstantiated) {
            droneLifecycleEvent.fire(new AfterDroneDestroyed(dronePoint));
        }
View Full Code Here

Examples of org.jboss.arquillian.drone.spi.Destructor.destroyInstance()

            droneLifecycleEvent.fire(new BeforeDroneDestroyed(drone, injectionPoint));

            // we need to get drone once again, at it might get modified by observers on previous event
            drone = context.getDrone(injectionPoint);

            destructor.destroyInstance(drone);
        }

        context.removeDrone(injectionPoint);
        context.removeDroneConfiguration(injectionPoint);
View Full Code Here

Examples of org.jboss.arquillian.drone.spi.Destructor.destroyInstance()

            // get instance to be destroyed
            // if deployment failed, there is nothing to be destroyed
            Object instance = droneContext.get().get(typeClass, qualifier);
            if (instance != null) {
                destructor.destroyInstance(instance);
            }
            droneContext.get().remove(typeClass, qualifier);
        }
    }
View Full Code Here

Examples of org.jboss.arquillian.drone.spi.Destructor.destroyInstance()

                // get instance to be destroyed
                // if deployment failed, there is nothing to be destroyed
                Object instance = context.get(parameterTypes[i], qualifier);
                if (instance != null) {
                    destructor.destroyInstance(instance);
                }

                context.remove(parameterTypes[i], qualifier);
            }
        }
View Full Code Here

Examples of org.jboss.arquillian.drone.spi.Destructor.destroyInstance()

        try {
            destructor = registryInstance.get().getEntryFor(instanceClass, Destructor.class);
        } catch (Exception ignored) {
        }
        if (destructor != null && !destructor.getClass().equals(this.getClass())) {
            destructor.destroyInstance(instance);
        } else {
            instance.quit();
        }
    }
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.