Class OBSEndpoint
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.huaweicloud.obs.OBSEndpoint
- All Implemented Interfaces:
AutoCloseable
,org.apache.camel.CamelContextAware
,org.apache.camel.ComponentAware
,org.apache.camel.Endpoint
,org.apache.camel.IsSingleton
,org.apache.camel.Service
,org.apache.camel.ShutdownableService
,org.apache.camel.spi.HasCamelContext
,org.apache.camel.spi.HasId
,org.apache.camel.StatefulService
,org.apache.camel.SuspendableService
@UriEndpoint(firstVersion="3.12.0",
scheme="hwcloud-obs",
title="Huawei Object Storage Service (OBS)",
syntax="hwcloud-obs:operation",
category=CLOUD,
headersClass=OBSHeaders.class)
public class OBSEndpoint
extends org.apache.camel.support.ScheduledPollEndpoint
To provide stable, secure, efficient, and easy-to-use cloud storage service on Huawei Cloud
-
Field Summary
Fields 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
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.camel.Consumer
createConsumer
(org.apache.camel.Processor processor) org.apache.camel.Producer
int
com.obs.services.ObsClient
int
org.apache.camel.component.huaweicloud.common.models.ServiceKeys
com.obs.services.ObsClient
Initialize and return a new OBS Clientboolean
boolean
boolean
boolean
void
setAccessKey
(String accessKey) void
setBucketLocation
(String bucketLocation) void
setBucketName
(String bucketName) void
setDeleteAfterRead
(boolean deleteAfterRead) void
setDelimiter
(String delimiter) void
setDestinationBucket
(String destinationBucket) void
setEndpoint
(String endpoint) void
setFileName
(String fileName) void
setIgnoreSslVerification
(boolean ignoreSslVerification) void
setIncludeFolders
(boolean includeFolders) void
setMaxMessagesPerPoll
(int maxMessagesPerPoll) void
setMoveAfterRead
(boolean moveAfterRead) void
setObjectName
(String objectName) void
setObsClient
(com.obs.services.ObsClient obsClient) void
setOperation
(String operation) void
void
setProxyHost
(String proxyHost) void
setProxyPassword
(String proxyPassword) void
setProxyPort
(int proxyPort) void
setProxyUser
(String proxyUser) void
void
setSecretKey
(String secretKey) void
setServiceKeys
(org.apache.camel.component.huaweicloud.common.models.ServiceKeys serviceKeys) Methods 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, setUseFixedDelay
Methods 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, toString
Methods 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, suspend
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.camel.ComponentAware
getComponent
Methods inherited from interface org.apache.camel.Endpoint
getEndpointBaseUri, isSingletonProducer
Methods inherited from interface org.apache.camel.Service
build, close, init, start, stop
Methods inherited from interface org.apache.camel.ShutdownableService
shutdown
Methods inherited from interface org.apache.camel.StatefulService
getStatus, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspending
Methods inherited from interface org.apache.camel.SuspendableService
isSuspended, resume, suspend
-
Constructor Details
-
OBSEndpoint
public OBSEndpoint() -
OBSEndpoint
-
-
Method Details
-
createProducer
- Throws:
Exception
-
createConsumer
public org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor) throws Exception - Throws:
Exception
-
getOperation
-
setOperation
-
getRegion
-
setRegion
-
getEndpoint
-
setEndpoint
-
getProxyHost
-
setProxyHost
-
getProxyPort
public int getProxyPort() -
setProxyPort
public void setProxyPort(int proxyPort) -
getProxyUser
-
setProxyUser
-
getProxyPassword
-
setProxyPassword
-
isIgnoreSslVerification
public boolean isIgnoreSslVerification() -
setIgnoreSslVerification
public void setIgnoreSslVerification(boolean ignoreSslVerification) -
getServiceKeys
public org.apache.camel.component.huaweicloud.common.models.ServiceKeys getServiceKeys() -
setServiceKeys
public void setServiceKeys(org.apache.camel.component.huaweicloud.common.models.ServiceKeys serviceKeys) -
getAccessKey
-
setAccessKey
-
getSecretKey
-
setSecretKey
-
getBucketName
-
setBucketName
-
getBucketLocation
-
setBucketLocation
-
getObsClient
public com.obs.services.ObsClient getObsClient() -
setObsClient
public void setObsClient(com.obs.services.ObsClient obsClient) -
isMoveAfterRead
public boolean isMoveAfterRead() -
setMoveAfterRead
public void setMoveAfterRead(boolean moveAfterRead) -
getDestinationBucket
-
setDestinationBucket
-
getFileName
-
setFileName
-
getPrefix
-
setPrefix
-
getDelimiter
-
setDelimiter
-
isIncludeFolders
public boolean isIncludeFolders() -
setIncludeFolders
public void setIncludeFolders(boolean includeFolders) -
isDeleteAfterRead
public boolean isDeleteAfterRead() -
setDeleteAfterRead
public void setDeleteAfterRead(boolean deleteAfterRead) -
getMaxMessagesPerPoll
public int getMaxMessagesPerPoll() -
setMaxMessagesPerPoll
public void setMaxMessagesPerPoll(int maxMessagesPerPoll) -
getObjectName
-
setObjectName
-
initClient
public com.obs.services.ObsClient initClient()Initialize and return a new OBS Client- Returns:
-