Class OBSEndpoint

  • All Implemented Interfaces:
    AutoCloseable, org.apache.camel.CamelContextAware, org.apache.camel.Endpoint, org.apache.camel.IsSingleton, org.apache.camel.Service, org.apache.camel.ShutdownableService, 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.apache.camel.Consumer createConsumer​(org.apache.camel.Processor processor)  
      org.apache.camel.Producer createProducer()  
      String getAccessKey()  
      String getBucketLocation()  
      String getBucketName()  
      String getDelimiter()  
      String getDestinationBucket()  
      String getEndpoint()  
      String getFileName()  
      int getMaxMessagesPerPoll()  
      String getObjectName()  
      com.obs.services.ObsClient getObsClient()  
      String getOperation()  
      String getPrefix()  
      String getProxyHost()  
      String getProxyPassword()  
      int getProxyPort()  
      String getProxyUser()  
      String getRegion()  
      String getSecretKey()  
      org.apache.camel.component.huaweicloud.common.models.ServiceKeys getServiceKeys()  
      com.obs.services.ObsClient initClient()
      Initialize and return a new OBS Client
      boolean isDeleteAfterRead()  
      boolean isIgnoreSslVerification()  
      boolean isIncludeFolders()  
      boolean isMoveAfterRead()  
      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 setPrefix​(String prefix)  
      void setProxyHost​(String proxyHost)  
      void setProxyPassword​(String proxyPassword)  
      void setProxyPort​(int proxyPort)  
      void setProxyUser​(String proxyUser)  
      void setRegion​(String region)  
      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, 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, 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, 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 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 Detail

      • OBSEndpoint

        public OBSEndpoint()
    • Method Detail

      • createProducer

        public org.apache.camel.Producer createProducer()
                                                 throws Exception
        Throws:
        Exception
      • createConsumer

        public org.apache.camel.Consumer createConsumer​(org.apache.camel.Processor processor)
                                                 throws Exception
        Throws:
        Exception
      • getOperation

        public String getOperation()
      • setOperation

        public void setOperation​(String operation)
      • getRegion

        public String getRegion()
      • setRegion

        public void setRegion​(String region)
      • getEndpoint

        public String getEndpoint()
      • setEndpoint

        public void setEndpoint​(String endpoint)
      • getProxyHost

        public String getProxyHost()
      • setProxyHost

        public void setProxyHost​(String proxyHost)
      • getProxyPort

        public int getProxyPort()
      • setProxyPort

        public void setProxyPort​(int proxyPort)
      • getProxyUser

        public String getProxyUser()
      • setProxyUser

        public void setProxyUser​(String proxyUser)
      • getProxyPassword

        public String getProxyPassword()
      • setProxyPassword

        public void setProxyPassword​(String proxyPassword)
      • 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

        public String getAccessKey()
      • setAccessKey

        public void setAccessKey​(String accessKey)
      • getSecretKey

        public String getSecretKey()
      • setSecretKey

        public void setSecretKey​(String secretKey)
      • getBucketName

        public String getBucketName()
      • setBucketName

        public void setBucketName​(String bucketName)
      • getBucketLocation

        public String getBucketLocation()
      • setBucketLocation

        public void setBucketLocation​(String bucketLocation)
      • 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

        public String getDestinationBucket()
      • setDestinationBucket

        public void setDestinationBucket​(String destinationBucket)
      • getFileName

        public String getFileName()
      • setFileName

        public void setFileName​(String fileName)
      • getPrefix

        public String getPrefix()
      • setPrefix

        public void setPrefix​(String prefix)
      • getDelimiter

        public String getDelimiter()
      • setDelimiter

        public void setDelimiter​(String delimiter)
      • 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

        public String getObjectName()
      • setObjectName

        public void setObjectName​(String objectName)
      • initClient

        public com.obs.services.ObsClient initClient()
        Initialize and return a new OBS Client
        Returns: