public class Jt400DataQueueEndpoint
extends org.apache.camel.impl.DefaultPollingEndpoint
| Modifier and Type | Class and Description |
|---|---|
static class |
Jt400DataQueueEndpoint.Format
Enumeration of supported data formats
|
static class |
Jt400DataQueueEndpoint.SearchType
SearchTypes for reading from Keyed Data Queues
|
| Modifier and Type | Field and Description |
|---|---|
static String |
KEY |
static String |
SENDER_INFORMATION |
| Modifier | Constructor and Description |
|---|---|
protected |
Jt400DataQueueEndpoint(String endpointUri,
Jt400Component component)
Creates a new AS/400 data queue endpoint using a default connection pool
provided by the component.
|
protected |
Jt400DataQueueEndpoint(String endpointUri,
Jt400Component component,
com.ibm.as400.access.AS400ConnectionPool connectionPool)
Creates a new AS/400 data queue endpoint using the specified connection
pool.
|
| Modifier and Type | Method and Description |
|---|---|
org.apache.camel.PollingConsumer |
createPollingConsumer() |
org.apache.camel.Producer |
createProducer() |
protected com.ibm.as400.access.BaseDataQueue |
getDataQueue()
Deprecated.
This method does not benefit from connection pooling; data
queue instances should be constructed with a connection
obtained by
getSystem(). |
Jt400DataQueueEndpoint.Format |
getFormat() |
protected String |
getObjectPath()
Returns the fully qualified integrated file system path name of the data
queue of this endpoint.
|
String |
getSearchKey() |
Jt400DataQueueEndpoint.SearchType |
getSearchType() |
protected com.ibm.as400.access.AS400 |
getSystem()
Obtains an
AS400 object that connects to this endpoint. |
boolean |
isKeyed() |
boolean |
isSingleton() |
protected void |
releaseSystem(com.ibm.as400.access.AS400 system)
Releases a previously obtained
AS400 object from use. |
void |
setCcsid(int ccsid) |
void |
setFormat(Jt400DataQueueEndpoint.Format format) |
void |
setGuiAvailable(boolean guiAvailable) |
void |
setKeyed(boolean keyed) |
void |
setSearchKey(String searchKey) |
void |
setSearchType(Jt400DataQueueEndpoint.SearchType searchType) |
configurePollingConsumer, configureProperties, configureScheduledPollConsumerPropertiesconfigureConsumer, createEndpointConfiguration, createEndpointUri, createExchange, createExchange, createExchange, doStart, doStop, equals, getCamelContext, getComponent, getConsumerProperties, getEndpointConfiguration, getEndpointKey, getEndpointUri, getExchangePattern, getId, hashCode, isLenientProperties, isSynchronous, setCamelContext, setConsumerProperties, setEndpointConfiguration, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setProperties, setSynchronous, toStringdoResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, resume, shutdown, start, stop, suspendpublic static final String KEY
public static final String SENDER_INFORMATION
protected Jt400DataQueueEndpoint(String endpointUri, Jt400Component component) throws org.apache.camel.CamelException
NullPointerException - if component is nullorg.apache.camel.CamelExceptionprotected Jt400DataQueueEndpoint(String endpointUri, Jt400Component component, com.ibm.as400.access.AS400ConnectionPool connectionPool) throws org.apache.camel.CamelException
org.apache.camel.CamelExceptionpublic void setCcsid(int ccsid)
throws PropertyVetoException
PropertyVetoExceptionpublic void setFormat(Jt400DataQueueEndpoint.Format format)
public Jt400DataQueueEndpoint.Format getFormat()
public void setKeyed(boolean keyed)
public boolean isKeyed()
public void setSearchKey(String searchKey)
public String getSearchKey()
public void setSearchType(Jt400DataQueueEndpoint.SearchType searchType)
public Jt400DataQueueEndpoint.SearchType getSearchType()
public void setGuiAvailable(boolean guiAvailable)
throws PropertyVetoException
PropertyVetoExceptionpublic org.apache.camel.PollingConsumer createPollingConsumer()
throws Exception
createPollingConsumer in interface org.apache.camel.EndpointcreatePollingConsumer in class org.apache.camel.impl.DefaultEndpointExceptionprotected com.ibm.as400.access.AS400 getSystem()
AS400 object that connects to this endpoint. Since
these objects represent limited resources, clients have the
responsibility of releasing them when done.AS400 object that connects to this endpointprotected void releaseSystem(com.ibm.as400.access.AS400 system)
AS400 object from use.system - a previously obtained AS400 object@Deprecated protected com.ibm.as400.access.BaseDataQueue getDataQueue()
getSystem().protected String getObjectPath()
public boolean isSingleton()
Apache Camel