Class IOTAEndpoint

  • 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="2.23.0",
                 scheme="iota",
                 title="IOTA",
                 syntax="iota:name",
                 category={LEDGER,API},
                 producerOnly=true)
    public class IOTAEndpoint
    extends org.apache.camel.support.DefaultEndpoint
    Manage financial transactions using IOTA distributed ledger.
    • 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()  
      protected void doStart()  
      protected void doStop()  
      org.iota.jota.IotaAPI getApiClient()  
      Integer getDepth()  
      Integer getMinWeightMagnitude()  
      String getName()  
      String getOperation()  
      Integer getSecurityLevel()  
      String getTag()  
      String getUrl()  
      void setDepth​(Integer depth)
      The depth determines how deep the tangle is analysed for getting Tips
      void setMinWeightMagnitude​(Integer minWeightMagnitude)
      The minWeightMagnitude is the minimum number of zeroes that a proof-of-work output/transaction hash must end with to be considered valid by full nodes
      void setName​(String name)
      Component name
      void setOperation​(String operation)
      Which operation to perform, one of: sendTransfer, getNewAddress, getTransfers
      void setSecurityLevel​(Integer securityLevel)
      Security level to be used for the private key / address.
      void setTag​(String tag)
      TAG
      void setUrl​(String url)
      Node url
      • Methods inherited from class org.apache.camel.support.DefaultEndpoint

        configureConsumer, configureExchange, configurePollingConsumer, configureProperties, 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

      • IOTAEndpoint

        public IOTAEndpoint()
    • 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
      • doStart

        protected void doStart()
                        throws Exception
        Overrides:
        doStart in class org.apache.camel.support.DefaultEndpoint
        Throws:
        Exception
      • doStop

        protected void doStop()
                       throws Exception
        Overrides:
        doStop in class org.apache.camel.support.DefaultEndpoint
        Throws:
        Exception
      • getName

        public String getName()
      • setName

        public void setName​(String name)
        Component name
      • getUrl

        public String getUrl()
      • setUrl

        public void setUrl​(String url)
        Node url
      • getTag

        public String getTag()
      • setTag

        public void setTag​(String tag)
        TAG
      • getSecurityLevel

        public Integer getSecurityLevel()
      • setSecurityLevel

        public void setSecurityLevel​(Integer securityLevel)
        Security level to be used for the private key / address. Can be 1, 2 or 3.
      • getMinWeightMagnitude

        public Integer getMinWeightMagnitude()
      • setMinWeightMagnitude

        public void setMinWeightMagnitude​(Integer minWeightMagnitude)
        The minWeightMagnitude is the minimum number of zeroes that a proof-of-work output/transaction hash must end with to be considered valid by full nodes
      • getDepth

        public Integer getDepth()
      • setDepth

        public void setDepth​(Integer depth)
        The depth determines how deep the tangle is analysed for getting Tips
      • getApiClient

        public org.iota.jota.IotaAPI getApiClient()
      • getOperation

        public String getOperation()
      • setOperation

        public void setOperation​(String operation)
        Which operation to perform, one of: sendTransfer, getNewAddress, getTransfers