congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
WorkerInfo$LastContactSecComparator.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
alluxio.wire.WorkerInfo$LastContactSecComparator
constructor

Best Java code snippets using alluxio.wire.WorkerInfo$LastContactSecComparator.<init> (Showing top 4 results out of 315)

origin: Alluxio/alluxio

@Override
public List<WorkerInfo> getLostWorkersInfoList() throws UnavailableException {
 if (mSafeModeManager.isInSafeMode()) {
  throw new UnavailableException(ExceptionMessage.MASTER_IN_SAFEMODE.getMessage());
 }
 List<WorkerInfo> workerInfoList = new ArrayList<>(mLostWorkers.size());
 for (MasterWorkerInfo worker : mLostWorkers) {
  synchronized (worker) {
   workerInfoList.add(worker.generateWorkerInfo(null, false));
  }
 }
 Collections.sort(workerInfoList, new WorkerInfo.LastContactSecComparator());
 return workerInfoList;
}
origin: Alluxio/alluxio

/**
 * Generates capacity report.
 *
 * @param options GetWorkerReportOptions to get worker report
 */
public void generateCapacityReport(GetWorkerReportOptions options) throws IOException {
 List<WorkerInfo> workerInfoList = mBlockMasterClient.getWorkerReport(options);
 if (workerInfoList.size() == 0) {
  print("No workers found.");
  return;
 }
 Collections.sort(workerInfoList, new WorkerInfo.LastContactSecComparator());
 collectWorkerInfo(workerInfoList);
 printAggregatedInfo(options);
 printWorkerInfo(workerInfoList);
}
origin: org.alluxio/alluxio-core-server-master

@Override
public List<WorkerInfo> getLostWorkersInfoList() throws UnavailableException {
 if (mSafeModeManager.isInSafeMode()) {
  throw new UnavailableException(ExceptionMessage.MASTER_IN_SAFEMODE.getMessage());
 }
 List<WorkerInfo> workerInfoList = new ArrayList<>(mLostWorkers.size());
 for (MasterWorkerInfo worker : mLostWorkers) {
  synchronized (worker) {
   workerInfoList.add(worker.generateWorkerInfo(null, false));
  }
 }
 Collections.sort(workerInfoList, new WorkerInfo.LastContactSecComparator());
 return workerInfoList;
}
origin: Alluxio/alluxio

private static int compareLostWorkersWithTimes(int time1, int time2) {
 WorkerInfo.LastContactSecComparator comparator =
   new WorkerInfo.LastContactSecComparator();
 WorkerInfo worker1 = createRandom();
 WorkerInfo worker2 = createRandom();
 worker1.setLastContactSec(time1);
 worker2.setLastContactSec(time2);
 return comparator.compare(worker1, worker2);
}
alluxio.wireWorkerInfo$LastContactSecComparator<init>

Javadoc

LastContactSecComparator constructor.

Popular methods of WorkerInfo$LastContactSecComparator

  • compare

Popular in Java

  • Making http post requests using okhttp
  • setScale (BigDecimal)
  • addToBackStack (FragmentTransaction)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • JLabel (javax.swing)
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now