@PrimaryNodeOnly @Deprecated @DeprecationNotice(classNames="org.apache.nifi.jms.processors.ConsumeJMS", reason="This processor is deprecated and may be removed in future releases.") @TriggerSerially @TriggerWhenEmpty @InputRequirement(value=INPUT_FORBIDDEN) @Tags(value={"jms","topic","subscription","durable","non-durable","listen","get","pull","source","consume","consumer"}) @CapabilityDescription(value="Pulls messages from a ActiveMQ JMS Topic, creating a FlowFile for each JMS Message or bundle of messages, as configured.") @SeeAlso(value=PutJMS.class) public class GetJMSTopic extends JmsConsumer
| Modifier and Type | Field and Description |
|---|---|
private List<PropertyDescriptor> |
properties
Deprecated.
|
static String |
SUBSCRIPTION_NAME_PROPERTY
Deprecated.
|
private WrappedMessageConsumer |
wrappedConsumer
Deprecated.
|
MAP_MESSAGE_PREFIX, REL_SUCCESS| Constructor and Description |
|---|
GetJMSTopic()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
cleanupResources()
Deprecated.
|
protected void |
decryptPassword(Properties properties,
ProcessContext context)
Deprecated.
Attempts to locate the password in the specified properties.
|
private Path |
getSubscriptionPath()
Deprecated.
|
private Properties |
getSubscriptionPropertiesFromContext(ProcessContext context)
Deprecated.
Returns the subscription details from the specified context.
|
private Properties |
getSubscriptionPropertiesFromFile()
Deprecated.
Loads the subscription details from disk.
|
protected List<PropertyDescriptor> |
getSupportedPropertyDescriptors()
Deprecated.
|
void |
handleSubscriptions(ProcessContext context)
Deprecated.
|
void |
onRemoved(ProcessContext context)
Deprecated.
|
void |
onStopped()
Deprecated.
|
void |
onTrigger(ProcessContext context,
ProcessSession session)
Deprecated.
|
private void |
persistSubscriptionInfo(ProcessContext context)
Deprecated.
Persists the subscription details for future use.
|
private void |
unsubscribe(ProcessContext context)
Deprecated.
Loads subscription info from the Subscription File and unsubscribes from the subscription, if the file exists; otherwise, does nothing
|
private void |
unsubscribe(String url,
String username,
String password,
String subscriptionId,
String jmsProvider,
int timeoutMillis)
Deprecated.
|
consume, createMapMessageValues, getRelationships, map2FlowFileonTriggergetControllerServiceLookup, getIdentifier, getLogger, getNodeTypeProvider, init, initialize, isConfigurationRestored, isScheduled, toString, updateConfiguredRestoredTrue, updateScheduledFalse, updateScheduledTruecustomValidate, equals, getPropertyDescriptor, getPropertyDescriptors, getSupportedDynamicPropertyDescriptor, hashCode, onPropertyModified, validateclone, finalize, getClass, notify, notifyAll, wait, wait, waitisStatefulgetPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validatepublic static final String SUBSCRIPTION_NAME_PROPERTY
private volatile WrappedMessageConsumer wrappedConsumer
private final List<PropertyDescriptor> properties
protected List<PropertyDescriptor> getSupportedPropertyDescriptors()
getSupportedPropertyDescriptors in class JmsConsumer@OnStopped public void cleanupResources()
private Path getSubscriptionPath()
@OnScheduled public void handleSubscriptions(ProcessContext context) throws IOException, javax.jms.JMSException
IOExceptionjavax.jms.JMSExceptionprotected void decryptPassword(Properties properties, ProcessContext context)
properties - propertiescontext - context@OnRemoved public void onRemoved(ProcessContext context) throws IOException, javax.jms.JMSException
IOExceptionjavax.jms.JMSExceptionprivate void persistSubscriptionInfo(ProcessContext context) throws IOException
context - contextIOException - exprivate Properties getSubscriptionPropertiesFromContext(ProcessContext context)
context - contextprivate Properties getSubscriptionPropertiesFromFile() throws IOException
IOException - exprivate void unsubscribe(ProcessContext context) throws IOException, javax.jms.JMSException
IOException - exjavax.jms.JMSException - exprivate void unsubscribe(String url, String username, String password, String subscriptionId, String jmsProvider, int timeoutMillis) throws javax.jms.JMSException
javax.jms.JMSException@OnStopped public void onStopped()
public void onTrigger(ProcessContext context, ProcessSession session) throws ProcessException
onTrigger in class AbstractProcessorProcessExceptionCopyright © 2023 Apache NiFi Project. All rights reserved.