abstract class AbstractTwitterServer extends TwitterServer
AbstractTwitterServer for usage from Java
- Alphabetic
- By Inheritance
- AbstractTwitterServer
- TwitterServer
- Warmup
- Ports
- TwitterServer
- Stats
- Lifecycle
- Admin
- AdminHttpServer
- Hooks
- LogFormat
- EventSink
- Logging
- Linters
- App
- Logging
- Logging
- App
- CloseAwaitably
- CloseAwaitably0
- Awaitable
- Closable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new AbstractTwitterServer()
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
val
MinGrace: Duration
- Definition Classes
- App
-
def
addAdminRoute(route: Route): Unit
- Definition Classes
- AdminHttpServer
-
def
addAdminRoutes(newRoutes: Seq[Route]): Unit
- Definition Classes
- AdminHttpServer
-
def
addFrameworkModule(module: Module): Unit
- Attributes
- protected
- Definition Classes
- App
-
def
addFrameworkModules(modules: Module*): Unit
- Attributes
- protected
- Definition Classes
- App
-
def
addFrameworkOverrideModules(modules: Module*): Unit
- Attributes
- protected[com.twitter.inject]
- Definition Classes
- App
-
def
adminBoundAddress: InetSocketAddress
- Definition Classes
- AdminHttpServer
-
val
adminHttpServer: ListeningServer
- Attributes
- protected
- Definition Classes
- AdminHttpServer
- Annotations
- @volatile()
-
val
adminPort: Flag[InetSocketAddress]
- Definition Classes
- AdminHttpServer
-
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
-
def
allowUndefinedFlags: Boolean
- Attributes
- protected
- Definition Classes
- App
-
val
appendFlag: Flag[Boolean]
- Attributes
- protected[this]
- Definition Classes
- Logging
-
def
args: Array[String]
- Definition Classes
- App
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
val
asyncFlag: Flag[Boolean]
- Attributes
- protected[this]
- Definition Classes
- Logging
-
val
asyncMaxSizeFlag: Flag[Int]
- Attributes
- protected[this]
- Definition Classes
- Logging
-
def
await(awaitables: Awaitable[_]*): Unit
- Attributes
- protected
- Definition Classes
- TwitterServer
-
def
await[T <: Awaitable[_]](awaitable: T): Unit
- Attributes
- protected
- Definition Classes
- TwitterServer
-
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.server.Lifecycle.Warmup#prebindWarmup
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
close(deadline: Time): Future[Unit]
- Definition Classes
- App → Closable
-
def
close(after: Duration): Future[Unit]
- Definition Classes
- Closable
-
final
def
close(): Future[Unit]
- Definition Classes
- Closable
-
def
closeAwaitably(f: ⇒ Future[Unit]): Future[Unit]
- Attributes
- protected
- Definition Classes
- CloseAwaitably0
-
final
def
closeOnExit(closable: Closable): Unit
- Definition Classes
- App
-
final
def
closeOnExitLast(closable: Closable): Unit
- Definition Classes
- App
-
def
configureAdminHttpServer(server: Server): Server
- Attributes
- protected
- Definition Classes
- AdminHttpServer
-
def
configureLoggerFactories(): Unit
- Definition Classes
- TwitterServer → Logging
-
def
debug(marker: Marker, message: ⇒ Any, cause: Throwable): Unit
- Attributes
- protected[this]
- Definition Classes
- Logging
-
def
debug(message: ⇒ Any, cause: Throwable): Unit
- Attributes
- protected[this]
- Definition Classes
- Logging
-
def
debug(marker: Marker, message: ⇒ Any): Unit
- Attributes
- protected[this]
- Definition Classes
- Logging
-
def
debug(message: ⇒ Any): Unit
- Attributes
- protected[this]
- Definition Classes
- Logging
-
def
debugFutureResult[T](msg: String)(func: ⇒ Future[T]): Future[T]
- Attributes
- protected
- Definition Classes
- Logging
-
def
debugResult[T](message: ⇒ String)(fn: ⇒ T): T
- Attributes
- protected[this]
- Definition Classes
- Logging
-
def
defaultAppend: Boolean
- Definition Classes
- Logging
-
def
defaultCloseGracePeriod: Duration
- Definition Classes
- App
-
def
defaultFormatter: Formatter
- Definition Classes
- Logging
-
def
defaultHttpPort: Int
- Definition Classes
- AdminHttpServer
-
def
defaultLogLevel: Level
- Definition Classes
- Logging
-
def
defaultOutput: String
- Definition Classes
- Logging
-
def
defaultRollPolicy: Policy
- Definition Classes
- Logging
-
def
defaultRotateCount: Int
- Definition Classes
- Logging
-
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
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
error(marker: Marker, message: ⇒ Any, cause: Throwable): Unit
- Attributes
- protected[this]
- Definition Classes
- Logging
-
def
error(marker: Marker, message: ⇒ Any): Unit
- Attributes
- protected[this]
- Definition Classes
- Logging
-
def
error(message: ⇒ Any, cause: Throwable): Unit
- Attributes
- protected[this]
- Definition Classes
- Logging
-
def
error(message: ⇒ Any): Unit
- Attributes
- protected[this]
- Definition Classes
- Logging
-
def
errorResult[T](message: ⇒ String)(fn: ⇒ T): T
- Attributes
- protected[this]
- Definition Classes
- Logging
-
def
exitOnError(reason: String): Unit
- Attributes
- protected
- Definition Classes
- App
-
def
failfastOnFlagsNotParsed: Boolean
- Attributes
- protected
- Definition Classes
- TwitterServer → App
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
val
flag: Flags
- Definition Classes
- App
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
val
group: String
- Definition Classes
- Lifecycle
-
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
-
def
handlers: List[() ⇒ Handler]
- Definition Classes
- Logging
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
def
httpExternalPort: Option[Int]
- Definition Classes
- Ports
-
def
httpsExternalPort: Option[Int]
- Definition Classes
- Ports
-
val
inferClassNamesFlag: Flag[Boolean]
- Attributes
- protected[this]
- Definition Classes
- Logging
-
def
info(marker: Marker, message: ⇒ Any, cause: Throwable): Unit
- Attributes
- protected[this]
- Definition Classes
- Logging
-
def
info(message: ⇒ Any, cause: Throwable): Unit
- Attributes
- protected[this]
- Definition Classes
- Logging
-
def
info(marker: Marker, message: ⇒ Any): Unit
- Attributes
- protected[this]
- Definition Classes
- Logging
-
def
info(message: ⇒ Any): Unit
- Attributes
- protected[this]
- Definition Classes
- Logging
-
def
infoResult[T](message: ⇒ String)(fn: ⇒ T): T
- Attributes
- protected[this]
- Definition Classes
- Logging
-
final
def
init(f: ⇒ Unit): Unit
- Attributes
- protected
- Definition Classes
- App
-
def
injector: Injector
- Definition Classes
- App
-
def
isDebugEnabled(marker: Marker): Boolean
- Attributes
- protected[this]
- Definition Classes
- Logging
-
def
isDebugEnabled: Boolean
- Attributes
- protected[this]
- Definition Classes
- Logging
-
def
isErrorEnabled(marker: Marker): Boolean
- Attributes
- protected[this]
- Definition Classes
- Logging
-
def
isErrorEnabled: Boolean
- Attributes
- protected[this]
- Definition Classes
- Logging
-
def
isInfoEnabled(marker: Marker): Boolean
- Attributes
- protected[this]
- Definition Classes
- Logging
-
def
isInfoEnabled: Boolean
- Attributes
- protected[this]
- Definition Classes
- Logging
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isReady(implicit permit: CanAwait): Boolean
- Definition Classes
- CloseAwaitably0 → Awaitable
-
def
isTraceEnabled(marker: Marker): Boolean
- Attributes
- protected[this]
- Definition Classes
- Logging
-
def
isTraceEnabled: Boolean
- Attributes
- protected[this]
- Definition Classes
- Logging
-
def
isWarnEnabled(marker: Marker): Boolean
- Attributes
- protected[this]
- Definition Classes
- Logging
-
def
isWarnEnabled: Boolean
- Attributes
- protected[this]
- Definition Classes
- Logging
-
def
javaModules: Collection[Module]
- Attributes
- protected
- Definition Classes
- App
-
def
javaOverrideModules: Collection[Module]
- Attributes
- protected
- Definition Classes
- App
-
val
levelFlag: Flag[Level]
- Attributes
- protected[this]
- Definition Classes
- Logging
-
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
-
def
linterRules: Seq[Rule]
- Definition Classes
- Linters
-
def
loadModules(): InstalledModules
- Attributes
- protected[com.twitter.inject]
- Definition Classes
- App
-
lazy val
log: Logger
- Definition Classes
- Logging
-
def
logger: Logger
- Attributes
- protected[this]
- Definition Classes
- Logging
-
def
loggerFactories: List[LoggerFactory]
- Definition Classes
- Logging
-
def
loggerName: String
- Attributes
- protected
- Definition Classes
- Logging
-
final
def
main(): Unit
- Definition Classes
- TwitterServer → App
-
final
def
main(args: Array[String]): Unit
- Definition Classes
- App
-
def
modules: Seq[Module]
- Attributes
- protected
- Definition Classes
- App
-
val
name: String
- Definition Classes
- App
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
nonExitingMain(args: Array[String]): Unit
- Definition Classes
- App
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
final
def
onExit(f: ⇒ Unit): Unit
- Attributes
- protected
- Definition Classes
- App
-
val
outputFlag: Flag[String]
- Attributes
- protected[this]
- Definition Classes
- Logging
-
def
overrideModules: Seq[Module]
- Attributes
- protected
- Definition Classes
- App
-
def
postInjectorStartup(): Unit
- Attributes
- protected
- Definition Classes
- TwitterServer → App
- Annotations
- @Lifecycle()
-
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()
-
final
def
postmain(f: ⇒ Unit): Unit
- Attributes
- protected
- Definition Classes
- App
-
def
prebindWarmup(): Unit
- Definition Classes
- Warmup
-
final
def
premain(f: ⇒ Unit): Unit
- Attributes
- protected
- Definition Classes
- App
-
def
ready(timeout: Duration)(implicit permit: CanAwait): AbstractTwitterServer.this.type
- Definition Classes
- CloseAwaitably0 → Awaitable
-
def
resolveFinagleClientsOnStartup: Boolean
Resolve all Finagle clients before warmup method called
Resolve all Finagle clients before warmup method called
- Attributes
- protected
- Definition Classes
- TwitterServer
-
def
result(timeout: Duration)(implicit permit: CanAwait): Unit
- Definition Classes
- CloseAwaitably0 → Awaitable
-
val
rollPolicyFlag: Flag[Policy]
- Attributes
- protected[this]
- Definition Classes
- Logging
-
val
rotateCountFlag: Flag[Int]
- Attributes
- protected[this]
- Definition Classes
- Logging
-
def
routes: Seq[Route]
- Attributes
- protected
- Definition Classes
- Admin
-
final
def
run(): Unit
- Attributes
- protected
- Definition Classes
- TwitterServer → App
- See also
-
lazy val
shutdownTimer: Timer
- Attributes
- protected
- Definition Classes
- App
-
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
-
val
statsReceiver: StatsReceiver
- Definition Classes
- Stats
-
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
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
thriftPort: Option[Int]
- Definition Classes
- Ports
-
def
time[T](formatStr: String)(func: ⇒ T): T
- Attributes
- protected
- Definition Classes
- Logging
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
trace(marker: Marker, message: ⇒ Any, cause: Throwable): Unit
- Attributes
- protected[this]
- Definition Classes
- Logging
-
def
trace(message: ⇒ Any, cause: Throwable): Unit
- Attributes
- protected[this]
- Definition Classes
- Logging
-
def
trace(marker: Marker, message: ⇒ Any): Unit
- Attributes
- protected[this]
- Definition Classes
- Logging
-
def
trace(message: ⇒ Any): Unit
- Attributes
- protected[this]
- Definition Classes
- Logging
-
def
traceResult[T](message: ⇒ String)(fn: ⇒ T): T
- Attributes
- protected[this]
- Definition Classes
- Logging
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
warmup(): Unit
- Attributes
- protected
- Definition Classes
- App
- Annotations
- @Lifecycle()
-
def
warmupComplete(): Unit
- Definition Classes
- Warmup
-
def
warn(marker: Marker, message: ⇒ Any, cause: Throwable): Unit
- Attributes
- protected[this]
- Definition Classes
- Logging
-
def
warn(message: ⇒ Any, cause: Throwable): Unit
- Attributes
- protected[this]
- Definition Classes
- Logging
-
def
warn(marker: Marker, message: ⇒ Any): Unit
- Attributes
- protected[this]
- Definition Classes
- Logging
-
def
warn(message: ⇒ Any): Unit
- Attributes
- protected[this]
- Definition Classes
- Logging
-
def
warnResult[T](message: ⇒ String)(fn: ⇒ T): T
- Attributes
- protected[this]
- Definition Classes
- Logging