public class StandardRootGroupPort extends AbstractPort implements RootGroupPort
| Modifier and Type | Class and Description |
|---|---|
private static class |
StandardRootGroupPort.FlowFileRequest |
private static class |
StandardRootGroupPort.ProcessingResult |
static class |
StandardRootGroupPort.StandardPortAuthorizationResult |
| Modifier and Type | Field and Description |
|---|---|
private Set<StandardRootGroupPort.FlowFileRequest> |
activeRequests |
private BulletinRepository |
bulletinRepository |
private static String |
CATEGORY |
private EventReporter |
eventReporter |
private AtomicReference<Set<String>> |
groupAccessControl |
private static org.slf4j.Logger |
logger |
private ProcessScheduler |
processScheduler |
private Set<Relationship> |
relationships |
private Lock |
requestLock |
private BlockingQueue<StandardRootGroupPort.FlowFileRequest> |
requestQueue |
private ProcessScheduler |
scheduler |
private boolean |
secure |
private boolean |
shutdown |
private AtomicReference<Set<String>> |
userAccessControl |
private UserService |
userService |
DEFAULT_TIME_UNIT, DEFAULT_YIELD_PERIOD, DEFAULT_YIELD_TIME_UNIT, MINIMUM_PENALIZATION_MILLIS, MINIMUM_YIELD_MILLIS, PORT_RELATIONSHIPMINIMUM_SCHEDULING_NANOS| Constructor and Description |
|---|
StandardRootGroupPort(String id,
String name,
ProcessGroup processGroup,
TransferDirection direction,
ConnectableType type,
UserService userService,
BulletinRepository bulletinRepository,
ProcessScheduler scheduler,
boolean secure) |
addConnection, disable, enable, getComments, getConnectableType, getConnections, getConnections, getIdentifier, getIncomingConnections, getMaxConcurrentTasks, getName, getPenalizationPeriod, getPenalizationPeriod, getPosition, getProcessGroup, getRelationship, getScheduledState, getSchedulingPeriod, getSchedulingPeriod, getYieldExpiration, getYieldPeriod, getYieldPeriod, hasIncomingConnection, isAutoTerminated, isLossTolerant, isRunning, removeConnection, setComments, setLossTolerant, setMaxConcurrentTasks, setName, setPenalizationPeriod, setPosition, setProcessGroup, setScheduldingPeriod, setYieldPeriod, toString, updateConnection, verifyCanDelete, verifyCanDelete, verifyCanDisable, verifyCanEnable, verifyCanStart, verifyCanStop, verifyCanUpdate, yieldclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddConnection, getComments, getConnectableType, getConnections, getConnections, getIdentifier, getIncomingConnections, getName, getPenalizationPeriod, getPenalizationPeriod, getPosition, getProcessGroup, getRelationship, getYieldExpiration, getYieldPeriod, getYieldPeriod, hasIncomingConnection, isAutoTerminated, isLossTolerant, removeConnection, setComments, setLossTolerant, setName, setPenalizationPeriod, setPosition, setProcessGroup, setYieldPeriod, updateConnection, verifyCanDelete, verifyCanDelete, verifyCanDisable, verifyCanEnable, verifyCanStart, verifyCanStop, verifyCanUpdate, yieldgetMaxConcurrentTasks, getScheduledState, getSchedulingPeriod, getSchedulingPeriod, isRunning, setMaxConcurrentTasks, setScheduldingPeriodprivate static final String CATEGORY
private static final org.slf4j.Logger logger
private final AtomicReference<Set<String>> groupAccessControl
private final AtomicReference<Set<String>> userAccessControl
private final ProcessScheduler processScheduler
private final boolean secure
private final UserService userService
private final BulletinRepository bulletinRepository
private final EventReporter eventReporter
private final ProcessScheduler scheduler
private final Set<Relationship> relationships
private final BlockingQueue<StandardRootGroupPort.FlowFileRequest> requestQueue
private final Set<StandardRootGroupPort.FlowFileRequest> activeRequests
private final Lock requestLock
private boolean shutdown
public StandardRootGroupPort(String id, String name, ProcessGroup processGroup, TransferDirection direction, ConnectableType type, UserService userService, BulletinRepository bulletinRepository, ProcessScheduler scheduler, boolean secure)
public Collection<Relationship> getRelationships()
getRelationships in interface ConnectablegetRelationships in class AbstractPortpublic boolean isTriggerWhenEmpty()
isTriggerWhenEmpty in interface Connectablepublic void onTrigger(ProcessContext context, ProcessSessionFactory sessionFactory)
onTrigger in interface TriggerableonTrigger in class AbstractPortpublic void onTrigger(ProcessContext context, ProcessSession session) throws ProcessException
onTrigger in class AbstractPortProcessExceptionprivate void onTrigger(ProcessContext context, ProcessSession session, StandardRootGroupPort.FlowFileRequest flowFileRequest)
private int transferFlowFiles(ProcessContext context, ProcessSession session, FlowFileCodec codec, StandardRootGroupPort.FlowFileRequest request) throws IOException, ProtocolException
IOExceptionProtocolExceptionprivate int receiveFlowFiles(ProcessContext context, ProcessSession session, FlowFileCodec codec, StandardRootGroupPort.FlowFileRequest receiveRequest) throws IOException, ProtocolException
IOExceptionProtocolExceptionpublic boolean isValid()
isValid in interface PortisValid in class AbstractPortpublic Collection<ValidationResult> getValidationErrors()
getValidationErrors in interface Connectablepublic boolean isTransmitting()
isTransmitting in interface RootGroupPortpublic void setGroupAccessControl(Set<String> groups)
setGroupAccessControl in interface RootGroupPortpublic Set<String> getGroupAccessControl()
getGroupAccessControl in interface RootGroupPortpublic void setUserAccessControl(Set<String> users)
setUserAccessControl in interface RootGroupPortpublic Set<String> getUserAccessControl()
getUserAccessControl in interface RootGroupPortpublic void shutdown()
shutdown in interface Portshutdown in class AbstractPortpublic void onSchedulingStart()
onSchedulingStart in interface PortonSchedulingStart in class AbstractPortpublic PortAuthorizationResult checkUserAuthorization(String dn)
checkUserAuthorization in interface RootGroupPortpublic int receiveFlowFiles(Peer peer, ServerProtocol serverProtocol, Map<String,String> requestHeaders) throws NotAuthorizedException, BadRequestException, RequestExpiredException
receiveFlowFiles in interface RootGroupPortNotAuthorizedExceptionBadRequestExceptionRequestExpiredExceptionpublic int transferFlowFiles(Peer peer, ServerProtocol serverProtocol, Map<String,String> requestHeaders) throws NotAuthorizedException, BadRequestException, RequestExpiredException
transferFlowFiles in interface RootGroupPortNotAuthorizedExceptionBadRequestExceptionRequestExpiredExceptionpublic SchedulingStrategy getSchedulingStrategy()
getSchedulingStrategy in interface Connectablepublic boolean isSideEffectFree()
isSideEffectFree in interface ConnectableCopyright © 2015 Apache NiFi(incubating) Project. All rights reserved.