Packages

c

com.twitter.inject.server

AbstractTwitterServer

abstract class AbstractTwitterServer extends TwitterServer

AbstractTwitterServer for usage from Java

Linear Supertypes
TwitterServer, Warmup, Ports, server.TwitterServer, Stats, Lifecycle, Admin, AdminHttpServer, Hooks, LogFormat, EventSink, logging.Logging, Linters, App, Logging, util.logging.Logging, App, CloseAwaitably, CloseAwaitably0[Unit], Awaitable[Unit], Closable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AbstractTwitterServer
  2. TwitterServer
  3. Warmup
  4. Ports
  5. TwitterServer
  6. Stats
  7. Lifecycle
  8. Admin
  9. AdminHttpServer
  10. Hooks
  11. LogFormat
  12. EventSink
  13. Logging
  14. Linters
  15. App
  16. Logging
  17. Logging
  18. App
  19. CloseAwaitably
  20. CloseAwaitably0
  21. Awaitable
  22. Closable
  23. AnyRef
  24. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new AbstractTwitterServer()

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 val MinGrace: Duration
    Definition Classes
    App
  5. def addAdminRoute(route: Route): Unit
    Definition Classes
    AdminHttpServer
  6. def addAdminRoutes(newRoutes: Seq[Route]): Unit
    Definition Classes
    AdminHttpServer
  7. def addFrameworkModule(module: Module): Unit
    Attributes
    protected
    Definition Classes
    App
  8. def addFrameworkModules(modules: Module*): Unit
    Attributes
    protected
    Definition Classes
    App
  9. def addFrameworkOverrideModules(modules: Module*): Unit
    Attributes
    protected[com.twitter.inject]
    Definition Classes
    App
  10. def adminBoundAddress: InetSocketAddress
    Definition Classes
    AdminHttpServer
  11. val adminHttpServer: ListeningServer
    Attributes
    protected
    Definition Classes
    AdminHttpServer
    Annotations
    @volatile()
  12. val adminPort: Flag[InetSocketAddress]
    Definition Classes
    AdminHttpServer
  13. def afterPostWarmup(): Unit

    After postWarmup, all external servers have been started, and we can now enable our health endpoint.

    After postWarmup, all external servers have been started, and we can now enable our health endpoint.

    Attributes
    protected
    Definition Classes
    TwitterServer → App
    Annotations
    @Lifecycle()
    See also

    com.twitter.inject.app.App#afterPostwarmup

    com.twitter.server.Lifecycle.Warmup#warmupComplete

  14. def allowUndefinedFlags: Boolean
    Attributes
    protected
    Definition Classes
    App
  15. val appendFlag: Flag[Boolean]
    Attributes
    protected[this]
    Definition Classes
    Logging
  16. def args: Array[String]
    Definition Classes
    App
  17. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  18. val asyncFlag: Flag[Boolean]
    Attributes
    protected[this]
    Definition Classes
    Logging
  19. val asyncMaxSizeFlag: Flag[Int]
    Attributes
    protected[this]
    Definition Classes
    Logging
  20. def await(awaitables: Awaitable[_]*): Unit
    Attributes
    protected
    Definition Classes
    TwitterServer
  21. def await[T <: Awaitable[_]](awaitable: T): Unit
    Attributes
    protected
    Definition Classes
    TwitterServer
  22. def beforePostWarmup(): Unit

    After warmup but before accepting traffic promote to old gen (which triggers gc).

    After warmup but before accepting traffic promote to old gen (which triggers gc).

    Attributes
    protected
    Definition Classes
    TwitterServer → App
    Annotations
    @Lifecycle()
    See also

    com.twitter.inject.app.App#beforePostWarmup

    com.twitter.server.Lifecycle.Warmup#prebindWarmup

  23. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def close(deadline: Time): Future[Unit]
    Definition Classes
    App → Closable
  25. def close(after: Duration): Future[Unit]
    Definition Classes
    Closable
  26. final def close(): Future[Unit]
    Definition Classes
    Closable
  27. def closeAwaitably(f: ⇒ Future[Unit]): Future[Unit]
    Attributes
    protected
    Definition Classes
    CloseAwaitably0
  28. final def closeOnExit(closable: Closable): Unit
    Definition Classes
    App
  29. final def closeOnExitLast(closable: Closable): Unit
    Definition Classes
    App
  30. def configureAdminHttpServer(server: Server): Server
    Attributes
    protected
    Definition Classes
    AdminHttpServer
  31. def configureLoggerFactories(): Unit
    Definition Classes
    TwitterServer → Logging
  32. def debug(marker: Marker, message: ⇒ Any, cause: Throwable): Unit
    Attributes
    protected[this]
    Definition Classes
    Logging
  33. def debug(message: ⇒ Any, cause: Throwable): Unit
    Attributes
    protected[this]
    Definition Classes
    Logging
  34. def debug(marker: Marker, message: ⇒ Any): Unit
    Attributes
    protected[this]
    Definition Classes
    Logging
  35. def debug(message: ⇒ Any): Unit
    Attributes
    protected[this]
    Definition Classes
    Logging
  36. def debugFutureResult[T](msg: String)(func: ⇒ Future[T]): Future[T]
    Attributes
    protected
    Definition Classes
    Logging
  37. def debugResult[T](message: ⇒ String)(fn: ⇒ T): T
    Attributes
    protected[this]
    Definition Classes
    Logging
  38. def defaultAppend: Boolean
    Definition Classes
    Logging
  39. def defaultCloseGracePeriod: Duration
    Definition Classes
    App
  40. def defaultFormatter: Formatter
    Definition Classes
    Logging
  41. def defaultHttpPort: Int
    Definition Classes
    AdminHttpServer
  42. def defaultLogLevel: Level
    Definition Classes
    Logging
  43. def defaultOutput: String
    Definition Classes
    Logging
  44. def defaultRollPolicy: Policy
    Definition Classes
    Logging
  45. def defaultRotateCount: Int
    Definition Classes
    Logging
  46. def disableAdminHttpServer: Boolean

    If true, the Twitter-Server admin server will be disabled.

    If true, the Twitter-Server admin server will be disabled. Note: Disabling the admin server allows services to be deployed into environments where only a single port is allowed

    Attributes
    protected
    Definition Classes
    TwitterServer
  47. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  48. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  49. def error(marker: Marker, message: ⇒ Any, cause: Throwable): Unit
    Attributes
    protected[this]
    Definition Classes
    Logging
  50. def error(marker: Marker, message: ⇒ Any): Unit
    Attributes
    protected[this]
    Definition Classes
    Logging
  51. def error(message: ⇒ Any, cause: Throwable): Unit
    Attributes
    protected[this]
    Definition Classes
    Logging
  52. def error(message: ⇒ Any): Unit
    Attributes
    protected[this]
    Definition Classes
    Logging
  53. def errorResult[T](message: ⇒ String)(fn: ⇒ T): T
    Attributes
    protected[this]
    Definition Classes
    Logging
  54. def exitOnError(reason: String): Unit
    Attributes
    protected
    Definition Classes
    App
  55. def failfastOnFlagsNotParsed: Boolean
    Attributes
    protected
    Definition Classes
    TwitterServer → App
  56. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  57. val flag: Flags
    Definition Classes
    App
  58. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  59. val group: String
    Definition Classes
    Lifecycle
  60. def handle[T <: Handler]()(implicit arg0: Manifest[T]): Unit

    Utility to run a com.twitter.inject.utils.Handler.

    Utility to run a com.twitter.inject.utils.Handler. This is generally used for running a warmup handler in #warmup.

    T

    - type parameter with upper-bound of com.twitter.inject.utils.Handler

    Attributes
    protected
    Definition Classes
    TwitterServer
    See also

    com.twitter.inject.utils.Handler

  61. def handlers: List[() ⇒ Handler]
    Definition Classes
    Logging
  62. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  63. def httpExternalPort: Option[Int]
    Definition Classes
    Ports
  64. def httpsExternalPort: Option[Int]
    Definition Classes
    Ports
  65. val inferClassNamesFlag: Flag[Boolean]
    Attributes
    protected[this]
    Definition Classes
    Logging
  66. def info(marker: Marker, message: ⇒ Any, cause: Throwable): Unit
    Attributes
    protected[this]
    Definition Classes
    Logging
  67. def info(message: ⇒ Any, cause: Throwable): Unit
    Attributes
    protected[this]
    Definition Classes
    Logging
  68. def info(marker: Marker, message: ⇒ Any): Unit
    Attributes
    protected[this]
    Definition Classes
    Logging
  69. def info(message: ⇒ Any): Unit
    Attributes
    protected[this]
    Definition Classes
    Logging
  70. def infoResult[T](message: ⇒ String)(fn: ⇒ T): T
    Attributes
    protected[this]
    Definition Classes
    Logging
  71. final def init(f: ⇒ Unit): Unit
    Attributes
    protected
    Definition Classes
    App
  72. def injector: Injector
    Definition Classes
    App
  73. def isDebugEnabled(marker: Marker): Boolean
    Attributes
    protected[this]
    Definition Classes
    Logging
  74. def isDebugEnabled: Boolean
    Attributes
    protected[this]
    Definition Classes
    Logging
  75. def isErrorEnabled(marker: Marker): Boolean
    Attributes
    protected[this]
    Definition Classes
    Logging
  76. def isErrorEnabled: Boolean
    Attributes
    protected[this]
    Definition Classes
    Logging
  77. def isInfoEnabled(marker: Marker): Boolean
    Attributes
    protected[this]
    Definition Classes
    Logging
  78. def isInfoEnabled: Boolean
    Attributes
    protected[this]
    Definition Classes
    Logging
  79. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  80. def isReady(implicit permit: CanAwait): Boolean
    Definition Classes
    CloseAwaitably0 → Awaitable
  81. def isTraceEnabled(marker: Marker): Boolean
    Attributes
    protected[this]
    Definition Classes
    Logging
  82. def isTraceEnabled: Boolean
    Attributes
    protected[this]
    Definition Classes
    Logging
  83. def isWarnEnabled(marker: Marker): Boolean
    Attributes
    protected[this]
    Definition Classes
    Logging
  84. def isWarnEnabled: Boolean
    Attributes
    protected[this]
    Definition Classes
    Logging
  85. def javaModules: Collection[Module]
    Attributes
    protected
    Definition Classes
    App
  86. def javaOverrideModules: Collection[Module]
    Attributes
    protected
    Definition Classes
    App
  87. val levelFlag: Flag[Level]
    Attributes
    protected[this]
    Definition Classes
    Logging
  88. val libraryName: String

    Name used for registration in the com.twitter.util.registry.Library

    Name used for registration in the com.twitter.util.registry.Library

    returns

    library name to register in the Library registry.

    Attributes
    protected
    Definition Classes
    TwitterServer → AdminHttpServer
  89. def linterRules: Seq[Rule]
    Definition Classes
    Linters
  90. def loadModules(): InstalledModules
    Attributes
    protected[com.twitter.inject]
    Definition Classes
    App
  91. lazy val log: Logger
    Definition Classes
    Logging
  92. def logger: Logger
    Attributes
    protected[this]
    Definition Classes
    Logging
  93. def loggerFactories: List[LoggerFactory]
    Definition Classes
    Logging
  94. def loggerName: String
    Attributes
    protected
    Definition Classes
    Logging
  95. final def main(): Unit
    Definition Classes
    TwitterServer → App
  96. final def main(args: Array[String]): Unit
    Definition Classes
    App
  97. def modules: Seq[Module]
    Attributes
    protected
    Definition Classes
    App
  98. val name: String
    Definition Classes
    App
  99. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  100. final def nonExitingMain(args: Array[String]): Unit
    Definition Classes
    App
  101. final def notify(): Unit
    Definition Classes
    AnyRef
  102. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  103. final def onExit(f: ⇒ Unit): Unit
    Attributes
    protected
    Definition Classes
    App
  104. val outputFlag: Flag[String]
    Attributes
    protected[this]
    Definition Classes
    Logging
  105. def overrideModules: Seq[Module]
    Attributes
    protected
    Definition Classes
    App
  106. def postInjectorStartup(): Unit
    Attributes
    protected
    Definition Classes
    TwitterServer → App
    Annotations
    @Lifecycle()
  107. def postWarmup(): Unit

    If you override this method to create and bind any external interface or to instantiate any awaitable it is expected that you add the Awaitable (or com.twitter.finagle.ListeningServer) to the list of Awaitables using the <: Awaitable[_(awaitable: T): Unit]] function.

    If you override this method to create and bind any external interface or to instantiate any awaitable it is expected that you add the Awaitable (or com.twitter.finagle.ListeningServer) to the list of Awaitables using the <: Awaitable[_(awaitable: T): Unit]] function.

    It is NOT expected that you block in this method as you will prevent completion of the server lifecycle.

    Attributes
    protected
    Definition Classes
    TwitterServer → App
    Annotations
    @Lifecycle()
  108. final def postmain(f: ⇒ Unit): Unit
    Attributes
    protected
    Definition Classes
    App
  109. def prebindWarmup(): Unit
    Definition Classes
    Warmup
  110. final def premain(f: ⇒ Unit): Unit
    Attributes
    protected
    Definition Classes
    App
  111. def ready(timeout: Duration)(implicit permit: CanAwait): AbstractTwitterServer.this.type
    Definition Classes
    CloseAwaitably0 → Awaitable
  112. def resolveFinagleClientsOnStartup: Boolean

    Resolve all Finagle clients before warmup method called

    Resolve all Finagle clients before warmup method called

    Attributes
    protected
    Definition Classes
    TwitterServer
  113. def result(timeout: Duration)(implicit permit: CanAwait): Unit
    Definition Classes
    CloseAwaitably0 → Awaitable
  114. val rollPolicyFlag: Flag[Policy]
    Attributes
    protected[this]
    Definition Classes
    Logging
  115. val rotateCountFlag: Flag[Int]
    Attributes
    protected[this]
    Definition Classes
    Logging
  116. def routes: Seq[Route]
    Attributes
    protected
    Definition Classes
    Admin
  117. final def run(): Unit

    Attributes
    protected
    Definition Classes
    TwitterServer → App
    See also

    com.twitter.inject.server.TwitterServer#start

  118. lazy val shutdownTimer: Timer
    Attributes
    protected
    Definition Classes
    App
  119. def start(): Unit

    Callback method executed after the injector is created and all lifecycle methods have fully completed.

    Callback method executed after the injector is created and all lifecycle methods have fully completed. It is NOT expected that you block in this method as you will prevent completion of the server lifecycle.

    The server is signaled as STARTED prior to the execution of this callback as all lifecycle methods have successfully completed and the admin and any external interfaces have started.

    This method can be used to start long-lived processes that run in separate threads from the main() thread. It is expected that you manage these threads manually, e.g., by using a com.twitter.util.FuturePool.

    Any exceptions thrown in this method will result in the server exiting.

    Attributes
    protected
    Definition Classes
    TwitterServer
  120. val statsReceiver: StatsReceiver
    Definition Classes
    Stats
  121. def statsReceiverModule: Module

    Default com.twitter.inject.TwitterModule for providing a com.twitter.finagle.stats.StatsReceiver.

    Default com.twitter.inject.TwitterModule for providing a com.twitter.finagle.stats.StatsReceiver.

    returns

    a com.twitter.inject.TwitterModule which provides a com.twitter.finagle.stats.StatsReceiver implementation.

    Attributes
    protected
    Definition Classes
    TwitterServer
  122. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  123. def thriftPort: Option[Int]
    Definition Classes
    Ports
  124. def time[T](formatStr: String)(func: ⇒ T): T
    Attributes
    protected
    Definition Classes
    Logging
  125. def toString(): String
    Definition Classes
    AnyRef → Any
  126. def trace(marker: Marker, message: ⇒ Any, cause: Throwable): Unit
    Attributes
    protected[this]
    Definition Classes
    Logging
  127. def trace(message: ⇒ Any, cause: Throwable): Unit
    Attributes
    protected[this]
    Definition Classes
    Logging
  128. def trace(marker: Marker, message: ⇒ Any): Unit
    Attributes
    protected[this]
    Definition Classes
    Logging
  129. def trace(message: ⇒ Any): Unit
    Attributes
    protected[this]
    Definition Classes
    Logging
  130. def traceResult[T](message: ⇒ String)(fn: ⇒ T): T
    Attributes
    protected[this]
    Definition Classes
    Logging
  131. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  132. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  133. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  134. def warmup(): Unit
    Attributes
    protected
    Definition Classes
    App
    Annotations
    @Lifecycle()
  135. def warmupComplete(): Unit
    Definition Classes
    Warmup
  136. def warn(marker: Marker, message: ⇒ Any, cause: Throwable): Unit
    Attributes
    protected[this]
    Definition Classes
    Logging
  137. def warn(message: ⇒ Any, cause: Throwable): Unit
    Attributes
    protected[this]
    Definition Classes
    Logging
  138. def warn(marker: Marker, message: ⇒ Any): Unit
    Attributes
    protected[this]
    Definition Classes
    Logging
  139. def warn(message: ⇒ Any): Unit
    Attributes
    protected[this]
    Definition Classes
    Logging
  140. def warnResult[T](message: ⇒ String)(fn: ⇒ T): T
    Attributes
    protected[this]
    Definition Classes
    Logging

Inherited from TwitterServer

Inherited from Warmup

Inherited from Ports

Inherited from server.TwitterServer

Inherited from Stats

Inherited from Lifecycle

Inherited from Admin

Inherited from AdminHttpServer

Inherited from Hooks

Inherited from LogFormat

Inherited from EventSink

Inherited from logging.Logging

Inherited from Linters

Inherited from App

Inherited from Logging

Inherited from util.logging.Logging

Inherited from App

Inherited from CloseAwaitably

Inherited from CloseAwaitably0[Unit]

Inherited from Awaitable[Unit]

Inherited from Closable

Inherited from AnyRef

Inherited from Any

Ungrouped