Examples of AgentInfo


Examples of org.ngrinder.model.AgentInfo

    }
  }

  @Override
  public AgentInfo approve(Long id, boolean approve) {
    AgentInfo agent = super.approve(id, approve);
    if (agent != null) {
      agentRequestCache.put(extractRegionFromAgentRegion(agent.getRegion()) + "|" + createKey(agent),
          new ClusteredAgentRequest(agent.getIp(), agent.getName(), EXPIRE_LOCAL_CACHE));
    }
    return agent;
  }
View Full Code Here

Examples of org.ngrinder.model.AgentInfo

   *
   * @param id agent id in db
   */
  @Override
  public void stopAgent(Long id) {
    AgentInfo agent = getOne(id);
    if (agent == null) {
      return;
    }
    agentRequestCache.put(extractRegionFromAgentRegion(agent.getRegion()) + "|" + createKey(agent),
        new ClusteredAgentRequest(agent.getIp(), agent.getName(), STOP_AGENT));
  }
View Full Code Here

Examples of org.ngrinder.model.AgentInfo

   *
   * @param id agent id in db.
   */
  @Override
  public void requestShareAgentSystemDataModel(Long id) {
    AgentInfo agent = getOne(id);
    if (agent == null) {
      return;
    }
    agentRequestCache.put(extractRegionFromAgentRegion(agent.getRegion()) + "|" + createKey(agent),
        new ClusteredAgentRequest(agent.getIp(), agent.getName(), SHARE_AGENT_SYSTEM_DATA_MODEL));
  }
View Full Code Here

Examples of org.ngrinder.model.AgentInfo

   * @param name agent name
   * @return {@link SystemDataModel} instance.
   */
  @Override
  public SystemDataModel getSystemDataModel(String ip, String name) {
    AgentInfo found = agentManagerRepository.findByIpAndHostName(ip, name);
    String systemStat = (found == null) ? null : found.getSystemStat();
    return (StringUtils.isEmpty(systemStat)) ? new SystemDataModel() : gson.fromJson(systemStat,
        SystemDataModel.class);
  }
View Full Code Here

Examples of org.ngrinder.model.AgentInfo

   *
   * @param id agent id
   */
  @Override
  public void update(Long id) {
    AgentInfo agent = getOne(id);
    if (agent == null) {
      return;
    }
    agentRequestCache.put(extractRegionFromAgentRegion(agent.getRegion()) + "|" + createKey(agent),
        new ClusteredAgentRequest(agent.getIp(), agent.getName(), UPDATE_AGENT));
  }
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.