@UriEndpoint(firstVersion="1.5.0",
scheme="jt400",
title="JT400",
syntax="jt400:userID:password/systemName/objectPath.type",
category=MESSAGING)
public class Jt400Endpoint
extends org.apache.camel.support.ScheduledPollEndpoint
implements org.apache.camel.MultipleConsumersSupport
| Modifier and Type | Field and Description |
|---|---|
static String |
KEY |
static String |
SENDER_INFORMATION |
| Modifier | Constructor and Description |
|---|---|
protected |
Jt400Endpoint(String endpointUri,
Jt400Component component)
Creates a new IBM i data queue endpoint using a default connection pool provided by the component.
|
protected |
Jt400Endpoint(String endpointUri,
Jt400Component component,
com.ibm.as400.access.AS400ConnectionPool connectionPool)
Creates a new IBM i data queue endpoint using the specified connection pool.
|
| Modifier and Type | Method and Description |
|---|---|
org.apache.camel.Consumer |
createConsumer(org.apache.camel.Processor processor) |
org.apache.camel.Producer |
createProducer() |
int |
getCcsid() |
Jt400Configuration |
getConfiguration() |
int |
getCssid() |
Jt400Configuration.Format |
getFormat() |
Jt400Configuration.MessageAction |
getMessageAction() |
protected String |
getObjectPath()
Returns the fully qualified integrated file system path name of the data queue of this endpoint.
|
int |
getOutputFieldLength(int idx) |
Integer[] |
getOutputFieldsIdxArray() |
Integer[] |
getOutputFieldsLengthArray() |
String |
getPassword() |
String |
getProcedureName() |
int |
getReadTimeout() |
String |
getSearchKey() |
Jt400Configuration.SearchType |
getSearchType() |
protected com.ibm.as400.access.AS400 |
getSystem()
Obtains an
AS400 object that connects to this endpoint. |
String |
getSystemName() |
Jt400Type |
getType() |
String |
getUserID() |
boolean |
isFieldIdxForOuput(int idx) |
boolean |
isGuiAvailable() |
boolean |
isKeyed() |
boolean |
isMultipleConsumersSupported() |
boolean |
isSecured() |
boolean |
isSendingReply() |
protected void |
releaseSystem(com.ibm.as400.access.AS400 system)
Releases a previously obtained
AS400 object from use. |
void |
setCcsid(int ccsid) |
void |
setFieldsLength(String fieldsLength) |
void |
setFormat(Jt400Configuration.Format format) |
void |
setGuiAvailable(boolean guiAvailable) |
void |
setKeyed(boolean keyed) |
void |
setMessageAction(Jt400Configuration.MessageAction messageAction) |
void |
setObjectPath(String objectPath) |
void |
setOutputFieldsIdx(String outputFieldsIdx) |
void |
setOutputFieldsIdxArray(Integer[] outputFieldsIdxArray) |
void |
setOutputFieldsLengthArray(Integer[] outputFieldsLengthArray) |
void |
setPassword(String password) |
void |
setProcedureName(String procedureName) |
void |
setReadTimeout(int readTimeout) |
void |
setSearchKey(String searchKey) |
void |
setSearchType(Jt400Configuration.SearchType searchType) |
void |
setSecured(boolean secured) |
void |
setSendingReply(boolean sendingReply) |
void |
setSystemName(String systemName) |
void |
setType(Jt400Type type) |
void |
setUserID(String userID) |
configureConsumer, configureProperties, configureScheduledPollConsumerProperties, doConfigureConsumer, doStart, doStop, getBackoffErrorThreshold, getBackoffIdleThreshold, getBackoffMultiplier, getDefaultDelay, getDelay, getInitialDelay, getPollStrategy, getRepeatCount, getRunLoggingLevel, getScheduledExecutorService, getScheduler, getSchedulerProperties, getTimeUnit, isGreedy, isSendEmptyMessageWhenIdle, isStartScheduler, isUseFixedDelay, setBackoffErrorThreshold, setBackoffIdleThreshold, setBackoffMultiplier, setDelay, setGreedy, setInitialDelay, setPollStrategy, setRepeatCount, setRunLoggingLevel, setScheduledExecutorService, setScheduler, setSchedulerProperties, setSendEmptyMessageWhenIdle, setStartScheduler, setTimeUnit, setUseFixedDelayconfigureExchange, configurePollingConsumer, createAsyncProducer, createEndpointUri, createExchange, createExchange, createPollingConsumer, doInit, equals, getCamelContext, getComponent, getEndpointKey, getEndpointUri, getExceptionHandler, getExchangePattern, getId, getPollingConsumerBlockTimeout, getPollingConsumerQueueSize, hashCode, isAutowiredEnabled, isBridgeErrorHandler, isLazyStartProducer, isLenientProperties, isPollingConsumerBlockWhenFull, isPollingConsumerCopy, isSingleton, setAutowiredEnabled, setBridgeErrorHandler, setCamelContext, setComponent, setEndpointUri, setEndpointUriIfNotSpecified, setExceptionHandler, setExchangePattern, setLazyStartProducer, setPollingConsumerBlockTimeout, setPollingConsumerBlockWhenFull, setPollingConsumerCopy, setPollingConsumerQueueSize, setProperties, toStringbuild, doBuild, doFail, doLifecycleChange, doResume, doShutdown, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final String KEY
public static final String SENDER_INFORMATION
protected Jt400Endpoint(String endpointUri, Jt400Component component) throws org.apache.camel.CamelException
NullPointerException - if component is nullorg.apache.camel.CamelExceptionprotected Jt400Endpoint(String endpointUri, Jt400Component component, com.ibm.as400.access.AS400ConnectionPool connectionPool) throws org.apache.camel.CamelException
org.apache.camel.CamelExceptionpublic Jt400Configuration getConfiguration()
public org.apache.camel.Producer createProducer()
throws Exception
createProducer in interface org.apache.camel.EndpointExceptionpublic org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor)
throws Exception
createConsumer in interface org.apache.camel.EndpointExceptionprotected 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 objectprotected String getObjectPath()
public Jt400Type getType()
public void setType(Jt400Type type)
public String getSearchKey()
public boolean isKeyed()
public Integer[] getOutputFieldsIdxArray()
public int getCcsid()
public void setOutputFieldsIdxArray(Integer[] outputFieldsIdxArray)
public void setSearchKey(String searchKey)
public void setOutputFieldsIdx(String outputFieldsIdx)
public void setKeyed(boolean keyed)
public Integer[] getOutputFieldsLengthArray()
public void setSearchType(Jt400Configuration.SearchType searchType)
public boolean isGuiAvailable()
public void setFormat(Jt400Configuration.Format format)
public void setFieldsLength(String fieldsLength)
public Jt400Configuration.Format getFormat()
public void setOutputFieldsLengthArray(Integer[] outputFieldsLengthArray)
public int getCssid()
public String getUserID()
public Jt400Configuration.SearchType getSearchType()
public void setCcsid(int ccsid)
public void setGuiAvailable(boolean guiAvailable)
public String getPassword()
public String getSystemName()
public boolean isFieldIdxForOuput(int idx)
public int getOutputFieldLength(int idx)
public void setObjectPath(String objectPath)
public void setPassword(String password)
public void setUserID(String userID)
public void setSystemName(String systemName)
public void setSecured(boolean secured)
public boolean isSecured()
public int getReadTimeout()
public void setReadTimeout(int readTimeout)
public void setProcedureName(String procedureName)
public String getProcedureName()
public void setMessageAction(Jt400Configuration.MessageAction messageAction)
public Jt400Configuration.MessageAction getMessageAction()
public void setSendingReply(boolean sendingReply)
public boolean isSendingReply()
public boolean isMultipleConsumersSupported()
isMultipleConsumersSupported in interface org.apache.camel.MultipleConsumersSupportApache Camel