Class GitProducer

  • All Implemented Interfaces:
    AutoCloseable, org.apache.camel.EndpointAware, org.apache.camel.IsSingleton, org.apache.camel.Processor, org.apache.camel.Producer, org.apache.camel.Service, org.apache.camel.ShutdownableService, org.apache.camel.StatefulService, org.apache.camel.SuspendableService

    public class GitProducer
    extends org.apache.camel.support.DefaultProducer
    • 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
      protected void doAdd​(org.apache.camel.Exchange exchange, String operation)  
      protected void doCheckout​(String operation)  
      protected void doCherryPick​(org.apache.camel.Exchange exchange, String operation)  
      protected void doClean​(org.apache.camel.Exchange exchange, String operation)  
      protected void doClone​(String operation)  
      protected void doCommit​(org.apache.camel.Exchange exchange, String operation)  
      protected void doCommitAll​(org.apache.camel.Exchange exchange, String operation)  
      protected void doCreateBranch​(String operation)  
      protected void doCreateTag​(String operation)  
      protected void doDeleteBranch​(String operation)  
      protected void doDeleteTag​(String operation)  
      protected void doGc​(org.apache.camel.Exchange exchange, String operation)  
      protected void doInit​(String operation)  
      protected void doLog​(org.apache.camel.Exchange exchange, String operation)  
      protected void doMerge​(org.apache.camel.Exchange exchange, String operation)  
      protected void doPull​(org.apache.camel.Exchange exchange, String operation)  
      protected void doPush​(org.apache.camel.Exchange exchange, String operation)  
      protected void doPushTag​(org.apache.camel.Exchange exchange, String operation)  
      protected void doRemoteAdd​(org.apache.camel.Exchange exchange, String operation)  
      protected void doRemoteList​(org.apache.camel.Exchange exchange, String operation)  
      protected void doRemove​(org.apache.camel.Exchange exchange, String operation)  
      protected void doShowBranches​(org.apache.camel.Exchange exchange, String operation)  
      protected void doShowTags​(org.apache.camel.Exchange exchange, String operation)  
      protected void doStart()  
      protected void doStatus​(org.apache.camel.Exchange exchange, String operation)  
      protected void doStop()  
      void process​(org.apache.camel.Exchange exchange)  
      • Methods inherited from class org.apache.camel.support.DefaultProducer

        createExchange, getEndpoint, isSingleton, toString
      • Methods inherited from class org.apache.camel.support.service.BaseService

        build, doBuild, doFail, doInit, 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.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

      • GitProducer

        public GitProducer​(GitEndpoint endpoint)
    • Method Detail

      • doStart

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

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

        public void process​(org.apache.camel.Exchange exchange)
                     throws Exception
        Throws:
        Exception
      • doClone

        protected void doClone​(String operation)
                        throws org.eclipse.jgit.api.errors.GitAPIException
        Throws:
        org.eclipse.jgit.api.errors.GitAPIException
      • doCheckout

        protected void doCheckout​(String operation)
                           throws org.eclipse.jgit.api.errors.GitAPIException
        Throws:
        org.eclipse.jgit.api.errors.GitAPIException
      • doInit

        protected void doInit​(String operation)
                       throws org.eclipse.jgit.api.errors.GitAPIException
        Throws:
        org.eclipse.jgit.api.errors.GitAPIException
      • doAdd

        protected void doAdd​(org.apache.camel.Exchange exchange,
                             String operation)
                      throws org.eclipse.jgit.api.errors.GitAPIException
        Throws:
        org.eclipse.jgit.api.errors.GitAPIException
      • doRemove

        protected void doRemove​(org.apache.camel.Exchange exchange,
                                String operation)
                         throws org.eclipse.jgit.api.errors.GitAPIException
        Throws:
        org.eclipse.jgit.api.errors.GitAPIException
      • doCommit

        protected void doCommit​(org.apache.camel.Exchange exchange,
                                String operation)
                         throws org.eclipse.jgit.api.errors.GitAPIException
        Throws:
        org.eclipse.jgit.api.errors.GitAPIException
      • doCommitAll

        protected void doCommitAll​(org.apache.camel.Exchange exchange,
                                   String operation)
                            throws org.eclipse.jgit.api.errors.GitAPIException
        Throws:
        org.eclipse.jgit.api.errors.GitAPIException
      • doCreateBranch

        protected void doCreateBranch​(String operation)
                               throws org.eclipse.jgit.api.errors.GitAPIException
        Throws:
        org.eclipse.jgit.api.errors.GitAPIException
      • doDeleteBranch

        protected void doDeleteBranch​(String operation)
                               throws org.eclipse.jgit.api.errors.GitAPIException
        Throws:
        org.eclipse.jgit.api.errors.GitAPIException
      • doStatus

        protected void doStatus​(org.apache.camel.Exchange exchange,
                                String operation)
                         throws org.eclipse.jgit.api.errors.GitAPIException
        Throws:
        org.eclipse.jgit.api.errors.GitAPIException
      • doLog

        protected void doLog​(org.apache.camel.Exchange exchange,
                             String operation)
                      throws org.eclipse.jgit.api.errors.GitAPIException
        Throws:
        org.eclipse.jgit.api.errors.GitAPIException
      • doPush

        protected void doPush​(org.apache.camel.Exchange exchange,
                              String operation)
                       throws org.eclipse.jgit.api.errors.GitAPIException
        Throws:
        org.eclipse.jgit.api.errors.GitAPIException
      • doPushTag

        protected void doPushTag​(org.apache.camel.Exchange exchange,
                                 String operation)
                          throws org.eclipse.jgit.api.errors.GitAPIException
        Throws:
        org.eclipse.jgit.api.errors.GitAPIException
      • doPull

        protected void doPull​(org.apache.camel.Exchange exchange,
                              String operation)
                       throws org.eclipse.jgit.api.errors.GitAPIException
        Throws:
        org.eclipse.jgit.api.errors.GitAPIException
      • doMerge

        protected void doMerge​(org.apache.camel.Exchange exchange,
                               String operation)
                        throws org.eclipse.jgit.errors.ConfigInvalidException,
                               org.eclipse.jgit.api.errors.GitAPIException,
                               IOException
        Throws:
        org.eclipse.jgit.errors.ConfigInvalidException
        org.eclipse.jgit.api.errors.GitAPIException
        IOException
      • doCreateTag

        protected void doCreateTag​(String operation)
                            throws org.eclipse.jgit.api.errors.GitAPIException
        Throws:
        org.eclipse.jgit.api.errors.GitAPIException
      • doDeleteTag

        protected void doDeleteTag​(String operation)
                            throws org.eclipse.jgit.api.errors.GitAPIException
        Throws:
        org.eclipse.jgit.api.errors.GitAPIException
      • doShowBranches

        protected void doShowBranches​(org.apache.camel.Exchange exchange,
                                      String operation)
                               throws org.eclipse.jgit.api.errors.GitAPIException
        Throws:
        org.eclipse.jgit.api.errors.GitAPIException
      • doShowTags

        protected void doShowTags​(org.apache.camel.Exchange exchange,
                                  String operation)
                           throws org.eclipse.jgit.api.errors.GitAPIException
        Throws:
        org.eclipse.jgit.api.errors.GitAPIException
      • doCherryPick

        protected void doCherryPick​(org.apache.camel.Exchange exchange,
                                    String operation)
                             throws org.eclipse.jgit.api.errors.GitAPIException,
                                    IOException
        Throws:
        org.eclipse.jgit.api.errors.GitAPIException
        IOException
      • doClean

        protected void doClean​(org.apache.camel.Exchange exchange,
                               String operation)
                        throws org.eclipse.jgit.api.errors.GitAPIException
        Throws:
        org.eclipse.jgit.api.errors.GitAPIException
      • doGc

        protected void doGc​(org.apache.camel.Exchange exchange,
                            String operation)
                     throws org.eclipse.jgit.api.errors.GitAPIException
        Throws:
        org.eclipse.jgit.api.errors.GitAPIException
      • doRemoteAdd

        protected void doRemoteAdd​(org.apache.camel.Exchange exchange,
                                   String operation)
                            throws org.eclipse.jgit.api.errors.GitAPIException,
                                   URISyntaxException
        Throws:
        org.eclipse.jgit.api.errors.GitAPIException
        URISyntaxException
      • doRemoteList

        protected void doRemoteList​(org.apache.camel.Exchange exchange,
                                    String operation)
                             throws org.eclipse.jgit.api.errors.GitAPIException
        Throws:
        org.eclipse.jgit.api.errors.GitAPIException