Package models.data.providers

Examples of models.data.providers.AgentDataProvider


      aggregateData = request.getAggregateData();
      nodeDataMapValid = aggregateData.getNodeDataMapValid();

      agentCommandType = aggregateData.getAgentCommandType();

      AgentDataProvider adp = AgentDataProvider.getInstance();
      final String errorMsgPatternStr = adp.aggregationMetadatas
          .get(VarUtils.AGGREGATION_PATTERN_EXTRACT_EXCEPTION_SUMMARY_FROM_ERROR_MSG);

      if (nodeDataMapValid == null || nodeDataMapValid.entrySet() == null) {
         models.utils.LogUtils.printLogError
View Full Code Here


    //always on
   
    try {

      AgentDataProvider adp = AgentDataProvider.getInstance();

      adp.resetData();

      models.utils.LogUtils.printLogNormal("Successful resetData " + DateUtils.getNowDateTimeStr());
     
    } catch (Throwable t) {
View Full Code Here

public class Bootstrap extends Job {

    public void doJob() {
       //do stuff
      //ConfUtils.updateServerInstancePrefix();
      AgentDataProvider adp = AgentDataProvider.getInstance();
      adp.updateConfigFromAllFiles();
     
      MonitorProvider mp= MonitorProvider.getInstance();
      mp.getJVMMemoryUsage();
      mp.getFreeDiskspace();
     
View Full Code Here

public class Config extends Controller {

  public static void getAgentCommand() {

    try {
      AgentDataProvider adp = AgentDataProvider.getInstance();

      renderJSON(adp.getAgentcommandmetadatas());
    } catch (Throwable t) {
      renderJSON("Error occured in getAgentCommand");
    }

  }
View Full Code Here

  }

  public static void getAggregation() {

    try {
      AgentDataProvider adp = AgentDataProvider.getInstance();

      renderJSON(adp.getAggregationmetadata());
    } catch (Throwable t) {
      renderJSON("Error occured in getAggregation");
    }

  }
View Full Code Here

  }

  public static void getNodeGroup() {

    try {
      AgentDataProvider adp = AgentDataProvider.getInstance();

      renderJSON(adp.getNodegroupsourcemetadatas());
    } catch (Throwable t) {
      t.printStackTrace();
      renderJSON("Error occured in getNodeGroup");
    }
View Full Code Here

  }
 
  public static void getHttpHeaders(String httpHeaderType) {

    try {
      AgentDataProvider adp = AgentDataProvider.getInstance();

      if(httpHeaderType ==null
        ||
        !adp.getHeaderMetadataMap().containsKey(httpHeaderType)
          ){
       
        renderJSON(adp.getHeaderMetadataMap());
      }else{
        renderJSON(adp.getHeaderMetadataMap().get(httpHeaderType));
      }

    } catch (Throwable t) {
      t.printStackTrace();
      renderJSON("Error occured in getHttpHeaders");
View Full Code Here

    if (type == null) {
      type = CONFIG_FILE_TYPE.ALL.toString();
    }
    try {
      AgentDataProvider adp = AgentDataProvider.getInstance();

      String result = adp.updateConfigFromFile(type);

      renderJSON(result + " in reloadConfig with type " + type);
    } catch (Throwable t) {
      t.printStackTrace();
      renderJSON("Error occured in reloadConfig with type" + type);
View Full Code Here

      String alert = "Config was successfully updated at "
          + DateUtils.getNowDateTimeStrSdsm();

      // reload after
      AgentDataProvider adp = AgentDataProvider.getInstance();
      adp.updateConfigFromFile(configFileUpper);

      renderTemplate("Config/editConfig.html", page, topnav,
          configFileContent, configFileUpper, alert);
    } catch (Throwable t) {
      t.printStackTrace();
View Full Code Here

    String page = "wizardToAdhocNodeGroup";
    String topnav = "wizards";

    try {

      AgentDataProvider adp = AgentDataProvider.getInstance();

      List<AgentCommandMetadata> agentCommandMetadataList = AgentCommandMetadata
          .convertMapToList(adp.getAgentcommandmetadatas());

      String agentCommandMetadataListJsonArray = AgentUtils
          .toJson(agentCommandMetadataList);

      render(page, topnav, agentCommandMetadataListJsonArray
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.