Package com.dotcms.enterprise.cluster.action

Examples of com.dotcms.enterprise.cluster.action.NodeStatusServerAction


        List<ServerActionBean> actionBeans = new ArrayList<ServerActionBean>();
        List<ServerActionBean> resultActionBeans = new ArrayList<ServerActionBean>();
        JSONArray jsonNodes = new JSONArray();
       
        NodeStatusServerAction nodeStatusServerAction = new NodeStatusServerAction();
        Long timeoutSeconds = new Long(1);
   
    for (Server server : servers) {
     
      ServerActionBean nodeStatusServerActionBean =
          nodeStatusServerAction.getNewServerAction(myServerId, server.getServerId(), timeoutSeconds);
     
      nodeStatusServerActionBean =
          APILocator.getServerActionAPI().saveServerActionBean(nodeStatusServerActionBean);
     
      actionBeans.add(nodeStatusServerActionBean);
View Full Code Here


    if(UtilMethods.isSet(remoteServerID) && !remoteServerID.equals("undefined")) {
     
      ResourceResponse responseResource = new ResourceResponse( initData.getParamsMap() );
     
      NodeStatusServerAction nodeStatusServerAction = new NodeStatusServerAction();
      Long timeoutSeconds = new Long(1);
     
      ServerActionBean nodeStatusServerActionBean =
          nodeStatusServerAction.getNewServerAction(localServerId, remoteServerID, timeoutSeconds);
     
      nodeStatusServerActionBean =
          APILocator.getServerActionAPI().saveServerActionBean(nodeStatusServerActionBean);
     
      //Waits for 3 seconds in order server respond.
View Full Code Here

TOP

Related Classes of com.dotcms.enterprise.cluster.action.NodeStatusServerAction

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.