Package com.caucho.env.deploy

Examples of com.caucho.env.deploy.DeployTagItem


    // updateDeploy();
   
    String tag = query.getTag();
   
    DeployControllerService deploy = DeployControllerService.getCurrent();
    DeployTagItem item = null;
   
    if (deploy != null) {
      deploy.update(tag);
      item = deploy.getTagItem(tag);
    }
   
    if (item != null) {
      TagStateQuery result = new TagStateQuery(tag, item.getState(),
                                               item.getDeployException());
     
      getBroker().queryResult(id, from, to, result);
    }
    else
      getBroker().queryResult(id, from, to, null);
View Full Code Here


  private String start(String tag)
  {
    DeployControllerService service = DeployControllerService.getCurrent();
   
    DeployTagItem controller = service.getTagItem(tag);

    if (controller == null)
      return L.l("'{0}' is an unknown controller", controller);

    try {
      controller.toStart();

      return controller.getState();
    } catch (Exception e) {
      log.log(Level.FINE, e.toString(), e);

      return e.toString();
    }
View Full Code Here

  private String stop(String tag)
  {
    DeployControllerService service = DeployControllerService.getCurrent();

    DeployTagItem controller = service.getTagItem(tag);

    if (controller == null)
      return L.l("'{0}' is an unknown controller", controller);

    try {
      controller.toStop();

      return controller.getState();
    } catch (Exception e) {
      log.log(Level.FINE, e.toString(), e);

      return e.toString();
    }
View Full Code Here

  private String restart(String tag)
  {
    DeployControllerService service = DeployControllerService.getCurrent();

    DeployTagItem controller = service.getTagItem(tag);

    if (controller == null)
      return L.l("'{0}' is an unknown controller", controller);

    try {
      controller.toRestart();

      return controller.getState();
    } catch (Exception e) {
      log.log(Level.FINE, e.toString(), e);

      return e.toString();
    }
View Full Code Here

TOP

Related Classes of com.caucho.env.deploy.DeployTagItem

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.