Package models.data.providers

Examples of models.data.providers.AgentDataProvider


    String page = "wizard";
    String topnav = "commands";

    try {

      AgentDataProvider adp = AgentDataProvider.getInstance();

      List<NodeGroupSourceMetadata> nodeGroupSourceMetadataList = NodeGroupSourceMetadata
          .convertMapToList(adp.getNodegroupsourcemetadatas());

      String nodeGroupSourceMetadataListJsonArray = AgentUtils
          .toJson(nodeGroupSourceMetadataList);

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

      String agentCommandMetadataListJsonArray = AgentUtils
          .toJson(agentCommandMetadataList);

      render(page, topnav, nodeGroupSourceMetadataListJsonArray,
View Full Code Here


    String page = "singleServerWizard";
    String topnav = "wizards";

    try {
      AgentDataProvider adp = AgentDataProvider.getInstance();
      List<AgentCommandMetadata> agentCommandMetadataList = AgentCommandMetadata
          .convertMapToList(adp.getAgentcommandmetadatas());

      String agentCommandMetadataListJsonArray = AgentUtils
          .toJson(agentCommandMetadataList);

     
View Full Code Here

*/
public class Application extends Controller {

  public static void index() {

    AgentDataProvider adp = AgentDataProvider.getInstance();

    int totalNodeCountInDataMapInProgress = adp
        .getTotalNodeCountInDataMapInProgress();
    int totalNodeCountInDataMapValid = adp
        .getTotalNodeCountInDataMapValid();
   
    int totalNodeGroupCountInAdhocNodeGroup = adp
        .getTotalNodeGroupCountForAdhocNodegroups();
   
    int totalNodeCountInNodeGroupMetadatas = adp
        .getTotalNodeCountInNodeGroupMetadatas();
   
    int totalCommandCountInAgentCommandMetadatas = adp
        .getTotalCommandCountInAgentCommandMetadatas();
   
    int runningJobCount = ActorConfig.runningJobCount.get();
    MonitorProvider mp= MonitorProvider.getInstance();
    PerformUsage performaUsage = mp.currentJvmPerformUsage;
View Full Code Here

    String page = "index";
    String topnav = "distributedSuperman";

    try {
     
      AgentDataProvider adp = AgentDataProvider.getInstance();

      List<NodeGroupSourceMetadata> nodeGroupSourceMetadataList = NodeGroupSourceMetadata
          .convertMapToList(adp.getNodegroupsourcemetadatas());

      String nodeGroupSourceMetadataListJsonArray = AgentUtils
          .toJson(nodeGroupSourceMetadataList);

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

      String agentCommandMetadataListJsonArray = AgentUtils
          .toJson(agentCommandMetadataList);
     
      render(page, topnav, nodeGroupSourceMetadataListJsonArray,
View Full Code Here

    String page = "index";
    String topnav = "commands";

    try {
      AgentDataProvider adp = AgentDataProvider.getInstance();
      List<AgentCommandMetadata> commands = new ArrayList<AgentCommandMetadata>();
      commands.addAll(adp.agentCommandMetadatas.values());

      Collections.sort(commands);
View Full Code Here

  }

  public static void getAgentCommandMetadata(String agentCommandType) {

    try {
      AgentDataProvider adp = AgentDataProvider.getInstance();
      AgentCommandMetadata agentCommandMetadata = adp.agentCommandMetadatas
          .get(agentCommandType);

      renderJSON(agentCommandMetadata);
    } catch (Throwable t) {
View Full Code Here

    String page = "wizard";
    String topnav = "commands";

    try {

      AgentDataProvider adp = AgentDataProvider.getInstance();

      List<NodeGroupSourceMetadata> nodeGroupSourceMetadataList = NodeGroupSourceMetadata
          .convertMapToList(adp.getNodegroupsourcemetadatas());

      String nodeGroupSourceMetadataListJsonArray = AgentUtils
          .toJson(nodeGroupSourceMetadataList);

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

      String agentCommandMetadataListJsonArray = AgentUtils
          .toJson(agentCommandMetadataList);

      render(page, topnav, nodeGroupSourceMetadataListJsonArray,
View Full Code Here

                .getTargetNodes());

        models.utils.LogUtils.printLogNormal("reducedNodeCount for duplicated nodes "
            + reducedNodeCount);

        AgentDataProvider adp = AgentDataProvider.getInstance();

        // this nodeGroupType has the timestamp.
        String nodeGroupType = NodeGroupProvider
            .generateAdhocNodeGroupHelper(requestCommand
                .getTargetNodes());
View Full Code Here

                .getTargetNodes());

        models.utils.LogUtils.printLogNormal("reducedNodeCount for duplicated nodes "
            + reducedNodeCount);

        AgentDataProvider adp = AgentDataProvider.getInstance();

        // this nodeGroupType has the timestamp.
        String nodeGroupType = NodeGroupProvider
            .generateAdhocNodeGroupHelper(requestCommand
                .getTargetNodes());
View Full Code Here

    }
     
   
    if ( httpHeaderType != null) {

      AgentDataProvider adp = AgentDataProvider.getInstance();
      HttpHeaderMetadata httpHeaderMetadata = adp.headerMetadataMap.get(httpHeaderType);
     
       // 20140416:
      // POTENTIAL BUG FIXED: LACK ERROR HANDLING: WHEN LACK OF HTTP HEADER ID is not defined throw exceptions:
      if(httpHeaderMetadata!=null){
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.