Class SimpleNotificationEndpoint

  • 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.8.0",
                 scheme="hwcloud-smn",
                 title="Huawei Simple Message Notification (SMN)",
                 syntax="hwcloud-smn:smnService",
                 category={CLOUD,MESSAGING},
                 producerOnly=true)
    public class SimpleNotificationEndpoint
    extends org.apache.camel.support.DefaultEndpoint
    To broadcast messages and connect cloud services through notifications 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)  
      ExecutorService createExecutor()  
      org.apache.camel.Producer createProducer()  
      String getAccessKey()  
      org.apache.camel.component.huaweicloud.common.models.ServiceKeys getCredentials()  
      String getEndpoint()  
      int getMessageTtl()  
      String getOperation()  
      String getProjectId()  
      String getProxyHost()  
      String getProxyPassword()  
      int getProxyPort()  
      String getProxyUser()  
      String getRegion()  
      String getSecretKey()  
      org.apache.camel.component.huaweicloud.common.models.ServiceKeys getServiceKeys()  
      com.huaweicloud.sdk.smn.v2.SmnClient getSmnClient()  
      String getSmnService()  
      boolean isIgnoreSslVerification()  
      void setAccessKey​(String accessKey)  
      void setCredentials​(org.apache.camel.component.huaweicloud.common.models.ServiceKeys serviceKeys)  
      void setEndpoint​(String endpoint)  
      void setIgnoreSslVerification​(boolean ignoreSslVerification)  
      void setMessageTtl​(int messageTtl)  
      void setOperation​(String operation)  
      void setProjectId​(String projectId)  
      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)  
      void setSmnClient​(com.huaweicloud.sdk.smn.v2.SmnClient smnClient)  
      void setSmnService​(String smnService)  
      • Methods inherited from class org.apache.camel.support.DefaultEndpoint

        configureConsumer, configureExchange, configurePollingConsumer, configureProperties, createAsyncProducer, createEndpointUri, createExchange, createExchange, createPollingConsumer, doInit, doStart, doStop, 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

      • SimpleNotificationEndpoint

        public SimpleNotificationEndpoint()
    • 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
      • getSmnService

        public String getSmnService()
      • setSmnService

        public void setSmnService​(String smnService)
      • getOperation

        public String getOperation()
      • setOperation

        public void setOperation​(String operation)
      • getCredentials

        public org.apache.camel.component.huaweicloud.common.models.ServiceKeys getCredentials()
      • setCredentials

        public void setCredentials​(org.apache.camel.component.huaweicloud.common.models.ServiceKeys serviceKeys)
      • 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)
      • getProjectId

        public String getProjectId()
      • setProjectId

        public void setProjectId​(String projectId)
      • getProxyUser

        public String getProxyUser()
      • setProxyUser

        public void setProxyUser​(String proxyUser)
      • getProxyPassword

        public String getProxyPassword()
      • setProxyPassword

        public void setProxyPassword​(String proxyPassword)
      • getProxyHost

        public String getProxyHost()
      • setProxyHost

        public void setProxyHost​(String proxyHost)
      • getProxyPort

        public int getProxyPort()
      • setProxyPort

        public void setProxyPort​(int proxyPort)
      • getRegion

        public String getRegion()
      • setRegion

        public void setRegion​(String region)
      • getEndpoint

        public String getEndpoint()
      • setEndpoint

        public void setEndpoint​(String endpoint)
      • getMessageTtl

        public int getMessageTtl()
      • setMessageTtl

        public void setMessageTtl​(int messageTtl)
      • isIgnoreSslVerification

        public boolean isIgnoreSslVerification()
      • setIgnoreSslVerification

        public void setIgnoreSslVerification​(boolean ignoreSslVerification)
      • getSmnClient

        public com.huaweicloud.sdk.smn.v2.SmnClient getSmnClient()
      • setSmnClient

        public void setSmnClient​(com.huaweicloud.sdk.smn.v2.SmnClient smnClient)