com.twitter.ostrich.admin

RuntimeEnvironment

class RuntimeEnvironment extends AnyRef

Use information in a local build.properties file to determine runtime environment info like the package name, version, and installation path. This can be used to automatically load config files from a config/ path relative to the executable jar.

An example of how to generate a build.properties file is included in sbt standard-project: <http://github.com/twitter/standard-project>

You have to pass in an object from your package in order to identify the location of the build.properties file.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. RuntimeEnvironment
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new RuntimeEnvironment(obj: AnyRef)

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. var arguments: Map[String, String]

  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  9. var configFile: File

    Config file, as determined from this jar's runtime path, possibly overridden by a command-line option.

  10. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  13. def findCandidateJar(paths: Seq[String], name: String, version: String): Option[String]

  14. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  15. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  16. def initLogs(): Unit

    If we don't have any loggers configured, try to get at least console output setup.

    If we don't have any loggers configured, try to get at least console output setup. In all likelihood the eval'd config is going to set this to something more robust, but we at least need to see errors encountered while processing the config. We also may need to rebuild this if a config file threw an exception before getting around to setting up logging.

  17. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  18. val jarBuild: String

  19. val jarBuildBranchName: String

  20. val jarBuildLastFewCommits: String

  21. val jarBuildRevision: String

  22. val jarName: String

  23. lazy val jarPath: Option[String]

    Return the path this jar was executed from.

    Return the path this jar was executed from. Depends on the presence of a valid build.properties file. Will return None if it couldn't figure out the environment.

  24. val jarVersion: String

  25. def loadConfig[T](): T

  26. def loadRuntimeConfig[T](): T

  27. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  28. final def notify(): Unit

    Definition Classes
    AnyRef
  29. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  30. def parseArgs(args: List[String]): Unit

    Perform baseline command-line argument parsing.

  31. def parseSetting(arg: String, value: String): Unit

  32. val stageName: String

  33. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  34. def toString(): String

    Definition Classes
    AnyRef → Any
  35. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  36. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  37. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from AnyRef

Inherited from Any

Ungrouped