Package org.apache.slider.server.appmaster.state

Examples of org.apache.slider.server.appmaster.state.NodeEntry


      long count = 0;
      //now for every role history entry, write out its record
      Collection<NodeInstance> instances = history.cloneNodemap().values();
      for (NodeInstance instance : instances) {
        for (int role = 0; role < roles; role++) {
          NodeEntry nodeEntry = instance.get(role);

          if (nodeEntry != null) {
            NodeEntryRecord ner = build(nodeEntry, role, instance.hostname);
            record = new RoleHistoryRecord(ner);
            writer.write(record, encoder);
View Full Code Here


            break;
          }
          records++;
          NodeEntryRecord nodeEntryRecord = (NodeEntryRecord) entry;
          Integer roleId = nodeEntryRecord.getRole();
          NodeEntry nodeEntry = new NodeEntry(roleId);
          nodeEntry.setLastUsed(nodeEntryRecord.getLastUsed());
          if (nodeEntryRecord.getActive()) {
            //if active at the time of save, make the last used time the save time
            nodeEntry.setLastUsed(saved);
          }

          String hostname =
            SliderUtils.sequenceToString(nodeEntryRecord.getHost());
          NodeInstance instance = history.getOrCreateNodeInstance(hostname);
View Full Code Here

TOP

Related Classes of org.apache.slider.server.appmaster.state.NodeEntry

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.