public class MockReportingInitializationContext extends MockControllerServiceLookup implements ReportingInitializationContext, ControllerServiceLookup
Modifier and Type | Field and Description |
---|---|
private String |
identifier |
private ComponentLog |
logger |
private String |
name |
private Map<PropertyDescriptor,String> |
properties |
Constructor and Description |
---|
MockReportingInitializationContext(String identifier,
String name,
ComponentLog logger) |
Modifier and Type | Method and Description |
---|---|
ControllerServiceLookup |
getControllerServiceLookup() |
String |
getIdentifier() |
ComponentLog |
getLogger() |
String |
getName() |
String |
getSchedulingPeriod() |
long |
getSchedulingPeriod(TimeUnit timeUnit) |
SchedulingStrategy |
getSchedulingStrategy() |
void |
setProperties(Map<PropertyDescriptor,String> properties) |
void |
setProperty(PropertyDescriptor propertyName,
String value) |
void |
setProperty(String propertyName,
String value) |
addControllerService, addControllerService, addControllerServices, getConfiguration, getControllerService, getControllerServiceIdentifiers, getControllerServiceName, isControllerServiceEnabled, isControllerServiceEnabled, isControllerServiceEnabling, removeControllerService
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getControllerService, getControllerServiceIdentifiers, getControllerServiceName, isControllerServiceEnabled, isControllerServiceEnabled, isControllerServiceEnabling
private final String identifier
private final String name
private final Map<PropertyDescriptor,String> properties
private final ComponentLog logger
public MockReportingInitializationContext(String identifier, String name, ComponentLog logger)
public String getIdentifier()
getIdentifier
in interface ReportingInitializationContext
public String getName()
getName
in interface ReportingInitializationContext
public long getSchedulingPeriod(TimeUnit timeUnit)
getSchedulingPeriod
in interface ReportingInitializationContext
public void setProperty(PropertyDescriptor propertyName, String value)
public void setProperties(Map<PropertyDescriptor,String> properties)
public ControllerServiceLookup getControllerServiceLookup()
getControllerServiceLookup
in interface ReportingInitializationContext
public String getSchedulingPeriod()
getSchedulingPeriod
in interface ReportingInitializationContext
public SchedulingStrategy getSchedulingStrategy()
getSchedulingStrategy
in interface ReportingInitializationContext
public ComponentLog getLogger()
getLogger
in interface ReportingInitializationContext
Copyright © 2016 Apache NiFi Project. All rights reserved.