Class ProcessCriterium

java.lang.Object
org.torproject.metrics.collector.sync.ProcessCriterium
All Implemented Interfaces:
Criterium<org.torproject.descriptor.Descriptor>

public class ProcessCriterium
extends java.lang.Object
implements Criterium<org.torproject.descriptor.Descriptor>
Should a descriptor file be processed during sync.
  • Constructor Summary

    Constructors 
    Constructor Description
    ProcessCriterium​(java.lang.Class<? extends org.torproject.descriptor.Descriptor> descType)  
  • Method Summary

    Modifier and Type Method Description
    boolean applies​(org.torproject.descriptor.Descriptor desc)
    Only process descriptors with the appropriate type.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ProcessCriterium

      public ProcessCriterium​(java.lang.Class<? extends org.torproject.descriptor.Descriptor> descType)
  • Method Details

    • applies

      public boolean applies​(org.torproject.descriptor.Descriptor desc)
      Only process descriptors with the appropriate type.
      Specified by:
      applies in interface Criterium<org.torproject.descriptor.Descriptor>