Class FunctionGraphEndpoint

  • 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.11.0",
                 scheme="hwcloud-functiongraph",
                 title="Huawei FunctionGraph",
                 syntax="hwcloud-functiongraph:operation",
                 category={CLOUD,SERVERLESS},
                 producerOnly=true)
    public class FunctionGraphEndpoint
    extends org.apache.camel.support.DefaultEndpoint
    To call serverless functions 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 getEndpoint()  
      com.huaweicloud.sdk.functiongraph.v2.FunctionGraphClient getFunctionGraphClient()  
      String getFunctionName()  
      String getFunctionPackage()  
      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.functiongraph.v2.FunctionGraphClient initClient()
      Initialize and return a new FunctionGraph Client
      boolean isIgnoreSslVerification()  
      void setAccessKey​(String accessKey)  
      void setEndpoint​(String endpoint)  
      void setFunctionGraphClient​(com.huaweicloud.sdk.functiongraph.v2.FunctionGraphClient functionGraphClient)  
      void setFunctionName​(String functionName)  
      void setFunctionPackage​(String functionPackage)  
      void setIgnoreSslVerification​(boolean ignoreSslVerification)  
      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)  
      • 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

      • FunctionGraphEndpoint

        public FunctionGraphEndpoint()
    • 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
      • getRegion

        public String getRegion()
      • setRegion

        public void setRegion​(String region)
      • getProjectId

        public String getProjectId()
      • setProjectId

        public void setProjectId​(String projectId)
      • getFunctionPackage

        public String getFunctionPackage()
      • setFunctionPackage

        public void setFunctionPackage​(String functionPackage)
      • getFunctionName

        public String getFunctionName()
      • setFunctionName

        public void setFunctionName​(String functionName)
      • getOperation

        public String getOperation()
      • setOperation

        public void setOperation​(String operation)
      • 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)
      • getEndpoint

        public String getEndpoint()
      • setEndpoint

        public void setEndpoint​(String endpoint)
      • 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)
      • getFunctionGraphClient

        public com.huaweicloud.sdk.functiongraph.v2.FunctionGraphClient getFunctionGraphClient()
      • setFunctionGraphClient

        public void setFunctionGraphClient​(com.huaweicloud.sdk.functiongraph.v2.FunctionGraphClient functionGraphClient)
      • initClient

        public com.huaweicloud.sdk.functiongraph.v2.FunctionGraphClient initClient()
        Initialize and return a new FunctionGraph Client
        Returns: