Class/Object

com.twitter.ostrich.admin

RuntimeEnvironment

Related Docs: object RuntimeEnvironment | package admin

Permalink

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. The ClassLoader for the given object is used to load the buid.properties file, which is first searched for relative to the given class (class-package-name/build.properties), and if not found there, then it is searched for with an absolute path ("/build.properties").

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

Instance Constructors

  1. new RuntimeEnvironment(obj: AnyRef)

    Permalink

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. var arguments: Map[String, String]

    Permalink
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

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

    Permalink

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

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

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

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

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

    Permalink
  12. final def getClass(): Class[_]

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

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

    Permalink

    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.

  15. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. val jarBuild: String

    Permalink
  17. val jarBuildBranchName: String

    Permalink
  18. val jarBuildLastFewCommits: Seq[String]

    Permalink
  19. val jarBuildRevision: String

    Permalink
  20. val jarBuildScmMergeBase: String

    Permalink
  21. val jarBuildScmMergeTimestamp: String

    Permalink
  22. val jarBuildScmRepository: String

    Permalink
  23. val jarName: String

    Permalink
  24. lazy val jarPath: Option[String]

    Permalink

    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.

  25. val jarVersion: String

    Permalink
  26. def loadConfig[T](): T

    Permalink
  27. def loadRuntimeConfig[T](): T

    Permalink
  28. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  29. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  30. final def notifyAll(): Unit

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

    Permalink

    Perform baseline command-line argument parsing.

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

    Permalink
  33. val serverInfo: ServerInfoHandler

    Permalink
  34. val stageName: String

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

    Permalink
    Definition Classes
    AnyRef
  36. def toString(): String

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped