abstract class Application extends AnyRef
A Streambed application
- Alphabetic
- By Inheritance
- Application
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new Application()
Abstract Value Members
- abstract def acquireDurableQueue()(implicit system: ActorSystem): DurableQueue
- abstract def acquireRawStorage()(implicit system: ActorSystem): RawStorage
- abstract def acquireSecretStore()(implicit system: ActorSystem): SecretStore
- abstract def main(args: Array[String], context: ApplicationContext): Unit
The main entry point.
The main entry point. All application's must implement this.
- args
Command line arguments passed in from the outside
- context
An application context of Streambed services
Concrete 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 def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def trap(signal: Int): Boolean
A receiver of Unix signals received by the application.
A receiver of Unix signals received by the application.
This method can be entirely overridden without having to call any super method.
By default, SIGTERM and SIGINT are handled. Furthermore, if this method returns false for SIGTERM or SIGINT then their default handling will occur.
The default behavior of SIGTERM and SIGINT is to invoke System.exit with an appropriate code. This will initiate Akka's CoordinatedShutdown mechanism and shutdown other services including the tracer and metrics. Please refer to the ApplicationContext to understand the scope of services that will be shutdown.
You should should generally use Akka's shutdown mechanisms to orchestrate any required shutdown behavior i.e. CoordinatedShutdown.
Note that this thread will NOT be called on the same thread as the main method and that you should take care to synchronize its activities.
- returns
A boolean indicating if the signal was handled. If it was not handled, default signal handling will take effect.
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()