Class CountPrimaryNodeChangeEvents
java.lang.Object
org.apache.nifi.components.AbstractConfigurableComponent
org.apache.nifi.processor.AbstractSessionFactoryProcessor
org.apache.nifi.processors.tests.system.CountPrimaryNodeChangeEvents
- All Implemented Interfaces:
ConfigurableComponent,Processor
@TriggerWhenEmpty
@DefaultSchedule(period="100 millis")
public class CountPrimaryNodeChangeEvents
extends AbstractSessionFactoryProcessor
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final PropertyDescriptorprivate static final Stringprivate final AtomicReference<ProcessSession> private long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected List<PropertyDescriptor> voidvoidonTrigger(ProcessContext context, ProcessSessionFactory sessionFactory) Methods inherited from class org.apache.nifi.processor.AbstractSessionFactoryProcessor
getControllerServiceLookup, getIdentifier, getLogger, getNodeTypeProvider, getRelationships, init, initialize, isConfigurationRestored, isScheduled, toString, updateConfiguredRestoredTrue, updateScheduledFalse, updateScheduledTrueMethods inherited from class org.apache.nifi.components.AbstractConfigurableComponent
customValidate, equals, getPropertyDescriptor, getPropertyDescriptors, getSupportedDynamicPropertyDescriptor, hashCode, onPropertyModified, validateMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.nifi.components.ConfigurableComponent
getPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validateMethods inherited from interface org.apache.nifi.processor.Processor
isStateful, migrateProperties, migrateRelationships
-
Field Details
-
nodeNumber
-
EVENT_SLEEP_DURATION
-
sessionReference
-
sleepMillis
private volatile long sleepMillis
-
-
Constructor Details
-
CountPrimaryNodeChangeEvents
public CountPrimaryNodeChangeEvents()
-
-
Method Details
-
getSupportedPropertyDescriptors
- Overrides:
getSupportedPropertyDescriptorsin classAbstractConfigurableComponent
-
onPrimaryNodeChange
-
onTrigger
public void onTrigger(ProcessContext context, ProcessSessionFactory sessionFactory) throws ProcessException - Throws:
ProcessException
-