Package models.data.providers

Examples of models.data.providers.AgentDataProvider


  public static void resetData() {

    try {

      AgentDataProvider adp = AgentDataProvider.getInstance();

      adp.resetData();

      renderJSON("Successful resetData " + DateUtils.getNowDateTimeStr());
    } catch (Throwable t) {

      renderJSON("Error occured in resetData");
View Full Code Here


  public static void generateAgentCommandInNodeGroup(String nodeGroupType,
      String agentCommandType) {

    try {

      AgentDataProvider adp = AgentDataProvider.getInstance();

      Map<String, NodeGroupDataMap> dataStore = null;
      Map<String, NodeGroupSourceMetadata> nodeGroupSource = null;
      dataStore = AgentDataProvider.allAgentData;
      nodeGroupSource = AgentDataProvider.nodeGroupSourceMetadatas;

      adp.generateAgentCommandInNodeGroupDataMap(nodeGroupType,
          agentCommandType, dataStore, nodeGroupSource);

      renderJSON(new JsonResult(
          "Success in generateAgentCommandInNodeGroupDataMap"));
    } catch (Throwable t) {
View Full Code Here

  public static void generateAgentCommandInAdhocAgentData(
      String nodeGroupType, String agentCommandType) {

    try {

      AgentDataProvider adp = AgentDataProvider.getInstance();

      adp.generateAgentCommandInNodeGroupDataMap(nodeGroupType,
          agentCommandType, AgentDataProvider.adhocAgentData,
          AgentDataProvider.adhocNodeGroups);

      renderJSON(new JsonResult(
          "Success in generateAgentCommandInNodeGroupDataMap"));
View Full Code Here

    }
   
    try {

      AgentDataAggregator ada = AgentDataAggregator.getInstance();
      AgentDataProvider adp = AgentDataProvider.getInstance();
      Map<String, String> rulesMap = adp.aggregationMetadatas;
      //20130610: fix null
     
      if(aggrRule==null){
        aggrRule=VarUtils.AGGREGATION_DEFAULT_METRIC;
View Full Code Here

  public static void aggregateMetaDataNodeList(String nodeGroupType,
      String agentCommandType, String value, String timeStamp,String rawDataSourceType, String aggrRule) {
    try {

      AgentDataProvider adp = AgentDataProvider.getInstance();
      Map<String, String> rulesMap = adp.aggregationMetadatas;
      String patternStr = rulesMap.get(   (aggrRule==null || aggrRule.length()==0 ) ?VarUtils.AGGREGATION_DEFAULT_METRIC:aggrRule);
     
      AgentDataAggregator ada = AgentDataAggregator.getInstance();
View Full Code Here

      ConfUtils.daoType = DAO_TYPE.SWIFT;
    } else {
      ConfUtils.daoType = DAO_TYPE.FILE;
    }

    AgentDataProvider adp = AgentDataProvider.getInstance();
    adp.updateConfigFromAllFiles();
  }
View Full Code Here

   * @param swiftContainerPrefix
   */
  public static void setSwiftContainerPrefix(String swiftContainerPrefix) {
    ConfUtils.swiftContainerPrefix = swiftContainerPrefix;

    AgentDataProvider adp = AgentDataProvider.getInstance();
    adp.updateConfigFromAllFiles();
  }
View Full Code Here

TOP

Related Classes of models.data.providers.AgentDataProvider

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.