Packages

c

org.codefeedr.plugins.travis.util

TravisBuildCollector

class TravisBuildCollector extends AnyRef

Class that keeps querying Travis about a certain push event until it is found.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TravisBuildCollector
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new TravisBuildCollector(repoOwner: String, repoName: String, branchName: String, pushCommitSha: String, pushDate: Date, travis: TravisService, pollingInterval: Int = 30000, timeoutSeconds: Int = 60)

    repoOwner

    Owner of the repo of the push event

    repoName

    Name of the repo of the push event

    branchName

    Name of the branch of the push event

    pushCommitSha

    Sha of the commit of the push event

    pushDate

    Date of the push event

    travis

    TravisService used to query Travis

    pollingInterval

    Interval at which builds are queried

    timeoutSeconds

    How long it will wait for the build to be created

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def builtIsCompleted: Boolean

    Checks whether or not a build is completed.

    Checks whether or not a build is completed.

    returns

    Whether or not a build is completed

  6. def checkIfBuildShouldBeKnownAlready(): Unit

    Checks if the timeout period for waiting before a build is created has passed.

    Checks if the timeout period for waiting before a build is created has passed. Throws an exception if this is the case.

  7. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. def getBuildFromBuilds(builds: TravisBuilds): (Option[TravisBuild], Date)

    Tries to find the correct TravisBuild within a TravisBuilds object.

    Tries to find the correct TravisBuild within a TravisBuilds object. Also returns the date of the latest Build.

    builds

    Builds to search in

    returns

    Correct Build if found and date newest seen build

  12. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  17. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  18. def requestBuild: Option[TravisBuild]

    Requests the build information based on if a build id is known

    Requests the build information based on if a build id is known

    returns

    A Travis build

  19. def requestFinishedBuild(): Future[TravisBuild]

    Keeps requesting the build until it is finished asynchronously

    Keeps requesting the build until it is finished asynchronously

    returns

    A Futre with a finished Travis build

  20. def requestKnownBuild(): Option[TravisBuild]

    Requests a build from travis of which the build id is known

    Requests a build from travis of which the build id is known

    returns

    A TravisBuild if it is found, None otherwise

  21. def requestUnknownBuild(): Option[TravisBuild]

    Looks through the Travis builds of the push event to find the build with the corresponding commit sha.

    Looks through the Travis builds of the push event to find the build with the corresponding commit sha. The builds are sorted on date, so it only looks after the push date

    returns

    A TravisBuild if it is found, None otherwise

  22. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  23. def toString(): String
    Definition Classes
    AnyRef → Any
  24. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped