Package org.apache.camel.component.jt400
Class Jt400Endpoint
java.lang.Object
org.apache.camel.support.service.BaseService
org.apache.camel.support.service.ServiceSupport
org.apache.camel.support.DefaultEndpoint
org.apache.camel.support.ScheduledPollEndpoint
org.apache.camel.component.jt400.Jt400Endpoint
- All Implemented Interfaces:
AutoCloseable,org.apache.camel.CamelContextAware,org.apache.camel.ComponentAware,org.apache.camel.Endpoint,org.apache.camel.IsSingleton,org.apache.camel.MultipleConsumersSupport,org.apache.camel.Service,org.apache.camel.ShutdownableService,org.apache.camel.spi.EndpointServiceLocation,org.apache.camel.spi.HasCamelContext,org.apache.camel.spi.HasId,org.apache.camel.StatefulService,org.apache.camel.SuspendableService
@UriEndpoint(firstVersion="1.5.0",
scheme="jt400",
title="JT400",
syntax="jt400:userID:password@systemName/QSYS.LIB/objectPath.type",
category=MESSAGING,
headersClass=Jt400Constants.class)
public class Jt400Endpoint
extends org.apache.camel.support.ScheduledPollEndpoint
implements org.apache.camel.MultipleConsumersSupport, org.apache.camel.spi.EndpointServiceLocation
Exchanges messages with an IBM i system using data queues, message queues, or program call. IBM i is the replacement
for AS/400 and iSeries servers.
-
Field Summary
FieldsFields inherited from class org.apache.camel.support.service.BaseService
BUILT, FAILED, INITIALIZED, INITIALIZING, lock, NEW, SHUTDOWN, SHUTTING_DOWN, STARTED, STARTING, status, STOPPED, STOPPING, SUSPENDED, SUSPENDING -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedJt400Endpoint(String endpointUri, Jt400Component component) Creates a new IBM i data queue endpoint using a default connection pool provided by the component.protectedJt400Endpoint(String endpointUri, Jt400Component component, com.ibm.as400.access.AS400ConnectionPool connectionPool) Creates a new IBM i data queue endpoint using the specified connection pool. -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.camel.ConsumercreateConsumer(org.apache.camel.Processor processor) org.apache.camel.ProducerintgetCcsid()intgetCssid()protected StringReturns the fully qualified integrated file system path name of the data queue of this endpoint.intgetOutputFieldLength(int idx) Integer[]Integer[]intprotected com.ibm.as400.access.AS400Obtains anAS400object that connects to this endpoint.getType()booleanisFieldIdxForOuput(int idx) booleanbooleanisKeyed()booleanbooleanbooleanprotected voidreleaseSystem(com.ibm.as400.access.AS400 system) Releases a previously obtainedAS400object from use.voidsetCcsid(int ccsid) voidsetFieldsLength(String fieldsLength) voidsetFormat(Jt400Configuration.Format format) voidsetGuiAvailable(boolean guiAvailable) voidsetKeyed(boolean keyed) voidsetMessageAction(Jt400Configuration.MessageAction messageAction) voidsetObjectPath(String objectPath) voidsetOutputFieldsIdx(String outputFieldsIdx) voidsetOutputFieldsIdxArray(Integer[] outputFieldsIdxArray) voidsetOutputFieldsLengthArray(Integer[] outputFieldsLengthArray) voidsetPassword(String password) voidsetProcedureName(String procedureName) voidsetReadTimeout(int readTimeout) voidsetSearchKey(String searchKey) voidsetSearchType(Jt400Configuration.SearchType searchType) voidsetSecured(boolean secured) voidsetSendingReply(boolean sendingReply) voidsetSystemName(String systemName) voidvoidMethods inherited from class org.apache.camel.support.ScheduledPollEndpoint
configureConsumer, configureProperties, configureScheduledPollConsumerProperties, doConfigureConsumer, 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, setUseFixedDelayMethods inherited from class org.apache.camel.support.DefaultEndpoint
configureExchange, 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, toStringMethods inherited from class org.apache.camel.support.service.BaseService
build, doBuild, doFail, doLifecycleChange, doResume, doShutdown, doStart, doStop, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.camel.ComponentAware
getComponentMethods inherited from interface org.apache.camel.Endpoint
getEndpointBaseUri, isRemote, isSingletonProducerMethods inherited from interface org.apache.camel.Service
build, close, init, start, stopMethods inherited from interface org.apache.camel.ShutdownableService
shutdownMethods inherited from interface org.apache.camel.StatefulService
getStatus, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspendingMethods inherited from interface org.apache.camel.SuspendableService
isSuspended, resume, suspend
-
Field Details
-
KEY
- See Also:
-
SENDER_INFORMATION
- See Also:
-
-
Constructor Details
-
Jt400Endpoint
protected Jt400Endpoint(String endpointUri, Jt400Component component) throws org.apache.camel.CamelException Creates a new IBM i data queue endpoint using a default connection pool provided by the component.- Throws:
NullPointerException- ifcomponentis nullorg.apache.camel.CamelException
-
Jt400Endpoint
protected Jt400Endpoint(String endpointUri, Jt400Component component, com.ibm.as400.access.AS400ConnectionPool connectionPool) throws org.apache.camel.CamelException Creates a new IBM i data queue endpoint using the specified connection pool.- Throws:
org.apache.camel.CamelException
-
-
Method Details
-
getServiceUrl
- Specified by:
getServiceUrlin interfaceorg.apache.camel.spi.EndpointServiceLocation
-
getServiceProtocol
- Specified by:
getServiceProtocolin interfaceorg.apache.camel.spi.EndpointServiceLocation
-
getServiceMetadata
- Specified by:
getServiceMetadatain interfaceorg.apache.camel.spi.EndpointServiceLocation
-
getConfiguration
-
createProducer
- Specified by:
createProducerin interfaceorg.apache.camel.Endpoint- Throws:
Exception
-
createConsumer
public org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor) throws Exception - Specified by:
createConsumerin interfaceorg.apache.camel.Endpoint- Throws:
Exception
-
getSystem
protected com.ibm.as400.access.AS400 getSystem()Obtains anAS400object that connects to this endpoint. Since these objects represent limited resources, clients have the responsibility ofreleasing themwhen done.- Returns:
- an
AS400object that connects to this endpoint
-
releaseSystem
protected void releaseSystem(com.ibm.as400.access.AS400 system) Releases a previously obtainedAS400object from use.- Parameters:
system- a previously obtainedAS400object
-
getObjectPath
Returns the fully qualified integrated file system path name of the data queue of this endpoint.- Returns:
- the fully qualified integrated file system path name of the data queue of this endpoint
-
getType
-
setType
-
getSearchKey
-
isKeyed
public boolean isKeyed() -
getOutputFieldsIdxArray
-
getCcsid
public int getCcsid() -
setOutputFieldsIdxArray
-
setSearchKey
-
setOutputFieldsIdx
-
setKeyed
public void setKeyed(boolean keyed) -
getOutputFieldsLengthArray
-
setSearchType
-
isGuiAvailable
public boolean isGuiAvailable() -
setFormat
-
setFieldsLength
-
getFormat
-
setOutputFieldsLengthArray
-
getCssid
public int getCssid() -
getUserID
-
getSearchType
-
setCcsid
public void setCcsid(int ccsid) -
setGuiAvailable
public void setGuiAvailable(boolean guiAvailable) -
getPassword
-
getSystemName
-
isFieldIdxForOuput
public boolean isFieldIdxForOuput(int idx) -
getOutputFieldLength
public int getOutputFieldLength(int idx) -
setObjectPath
-
setPassword
-
setUserID
-
setSystemName
-
setSecured
public void setSecured(boolean secured) -
isSecured
public boolean isSecured() -
getReadTimeout
public int getReadTimeout() -
setReadTimeout
public void setReadTimeout(int readTimeout) -
setProcedureName
-
getProcedureName
-
setMessageAction
-
getMessageAction
-
setSendingReply
public void setSendingReply(boolean sendingReply) -
isSendingReply
public boolean isSendingReply() -
isMultipleConsumersSupported
public boolean isMultipleConsumersSupported()- Specified by:
isMultipleConsumersSupportedin interfaceorg.apache.camel.MultipleConsumersSupport
-