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. 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
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( classOf[java.lang.Throwable] )
  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: Seq[String]

  21. val jarBuildRevision: String

  22. val jarBuildScmMergeBase: String

  23. val jarBuildScmMergeTimestamp: String

  24. val jarBuildScmRepository: String

  25. val jarName: String

  26. 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.

  27. val jarVersion: String

  28. def loadConfig[T](): T

  29. def loadRuntimeConfig[T](): T

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

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

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

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

    Perform baseline command-line argument parsing.

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

  35. val serverInfo: ServerInfoHandler

  36. val stageName: String

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

    Definition Classes
    AnyRef
  38. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped