trait Cluster extends Object with StObject
- Annotations
- @JSType() @native()
- Source
- clusterMod.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Cluster
- StObject
- Object
- Any
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
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
- val SCHED_NONE: Double
- val SCHED_RR: Double
- def addListener(event: java.lang.String, listener: Function1[Any, Unit]): Cluster.this.type
events.EventEmitter
events.EventEmitter
- disconnect 2. exit 3. fork 4. listening 5. message 6. online 7. setup
- def addListener_disconnect(event: disconnect, listener: Function1[Worker, Unit]): Cluster.this.type
- Annotations
- @JSName("addListener")
- def addListener_exit(event: exit, listener: Function3[Worker, Double, java.lang.String, Unit]): Cluster.this.type
- Annotations
- @JSName("addListener")
- def addListener_fork(event: fork, listener: Function1[Worker, Unit]): Cluster.this.type
- Annotations
- @JSName("addListener")
- def addListener_listening(event: listening, listener: Function2[Worker, Address, Unit]): Cluster.this.type
- Annotations
- @JSName("addListener")
- def addListener_message(event: message, listener: Function3[Worker, Any, |[Socket, Server], Unit]): Cluster.this.type
- Annotations
- @JSName("addListener")
- def addListener_online(event: online, listener: Function1[Worker, Unit]): Cluster.this.type
- Annotations
- @JSName("addListener")
- def addListener_setup(event: setup, listener: Function1[ClusterSettings, Unit]): Cluster.this.type
- Annotations
- @JSName("addListener")
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- def disconnect(callback: Function0[Unit]): Unit
- def disconnect(): Unit
- def emit(event: Symbol, args: Any*): Boolean
- def emit(event: java.lang.String, args: Any*): Boolean
- def emit_disconnect(event: disconnect, worker: Worker): Boolean
- Annotations
- @JSName("emit")
- def emit_exit(event: exit, worker: Worker, code: Double, signal: java.lang.String): Boolean
- Annotations
- @JSName("emit")
- def emit_fork(event: fork, worker: Worker): Boolean
- Annotations
- @JSName("emit")
- def emit_listening(event: listening, worker: Worker, address: Address): Boolean
- Annotations
- @JSName("emit")
- def emit_message(event: message, worker: Worker, message: Any, handle: Socket): Boolean
- Annotations
- @JSName("emit")
- def emit_message(event: message, worker: Worker, message: Any, handle: Server): Boolean
- Annotations
- @JSName("emit")
- def emit_online(event: online, worker: Worker): Boolean
- Annotations
- @JSName("emit")
- def emit_setup(event: setup, settings: ClusterSettings): Boolean
- Annotations
- @JSName("emit")
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def fork(env: Any): Worker
- def fork(): Worker
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def hasOwnProperty(v: scala.Predef.String): Boolean
- Definition Classes
- Object
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val isPrimary: Boolean
- def isPrototypeOf(v: Object): Boolean
- Definition Classes
- Object
- val isWorker: Boolean
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- def on(event: java.lang.String, listener: Function1[Any, Unit]): Cluster.this.type
- def on_disconnect(event: disconnect, listener: Function1[Worker, Unit]): Cluster.this.type
- Annotations
- @JSName("on")
- def on_exit(event: exit, listener: Function3[Worker, Double, java.lang.String, Unit]): Cluster.this.type
- Annotations
- @JSName("on")
- def on_fork(event: fork, listener: Function1[Worker, Unit]): Cluster.this.type
- Annotations
- @JSName("on")
- def on_listening(event: listening, listener: Function2[Worker, Address, Unit]): Cluster.this.type
- Annotations
- @JSName("on")
- def on_message(event: message, listener: Function3[Worker, Any, |[Socket, Server], Unit]): Cluster.this.type
- Annotations
- @JSName("on")
- def on_online(event: online, listener: Function1[Worker, Unit]): Cluster.this.type
- Annotations
- @JSName("on")
- def on_setup(event: setup, listener: Function1[ClusterSettings, Unit]): Cluster.this.type
- Annotations
- @JSName("on")
- def once(event: java.lang.String, listener: Function1[Any, Unit]): Cluster.this.type
- def once_disconnect(event: disconnect, listener: Function1[Worker, Unit]): Cluster.this.type
- Annotations
- @JSName("once")
- def once_exit(event: exit, listener: Function3[Worker, Double, java.lang.String, Unit]): Cluster.this.type
- Annotations
- @JSName("once")
- def once_fork(event: fork, listener: Function1[Worker, Unit]): Cluster.this.type
- Annotations
- @JSName("once")
- def once_listening(event: listening, listener: Function2[Worker, Address, Unit]): Cluster.this.type
- Annotations
- @JSName("once")
- def once_message(event: message, listener: Function3[Worker, Any, |[Socket, Server], Unit]): Cluster.this.type
- Annotations
- @JSName("once")
- def once_online(event: online, listener: Function1[Worker, Unit]): Cluster.this.type
- Annotations
- @JSName("once")
- def once_setup(event: setup, listener: Function1[ClusterSettings, Unit]): Cluster.this.type
- Annotations
- @JSName("once")
- def prependListener(event: java.lang.String, listener: Function1[Any, Unit]): Cluster.this.type
- def prependListener_disconnect(event: disconnect, listener: Function1[Worker, Unit]): Cluster.this.type
- Annotations
- @JSName("prependListener")
- def prependListener_exit(event: exit, listener: Function3[Worker, Double, java.lang.String, Unit]): Cluster.this.type
- Annotations
- @JSName("prependListener")
- def prependListener_fork(event: fork, listener: Function1[Worker, Unit]): Cluster.this.type
- Annotations
- @JSName("prependListener")
- def prependListener_listening(event: listening, listener: Function2[Worker, Address, Unit]): Cluster.this.type
- Annotations
- @JSName("prependListener")
- def prependListener_message(event: message, listener: Function3[Worker, Any, UndefOr[|[Socket, Server]], Unit]): Cluster.this.type
- Annotations
- @JSName("prependListener")
- def prependListener_online(event: online, listener: Function1[Worker, Unit]): Cluster.this.type
- Annotations
- @JSName("prependListener")
- def prependListener_setup(event: setup, listener: Function1[ClusterSettings, Unit]): Cluster.this.type
- Annotations
- @JSName("prependListener")
- def prependOnceListener(event: java.lang.String, listener: Function1[Any, Unit]): Cluster.this.type
- def prependOnceListener_disconnect(event: disconnect, listener: Function1[Worker, Unit]): Cluster.this.type
- Annotations
- @JSName("prependOnceListener")
- def prependOnceListener_exit(event: exit, listener: Function3[Worker, Double, java.lang.String, Unit]): Cluster.this.type
- Annotations
- @JSName("prependOnceListener")
- def prependOnceListener_fork(event: fork, listener: Function1[Worker, Unit]): Cluster.this.type
- Annotations
- @JSName("prependOnceListener")
- def prependOnceListener_listening(event: listening, listener: Function2[Worker, Address, Unit]): Cluster.this.type
- Annotations
- @JSName("prependOnceListener")
- def prependOnceListener_message(event: message, listener: Function3[Worker, Any, |[Socket, Server], Unit]): Cluster.this.type
- Annotations
- @JSName("prependOnceListener")
- def prependOnceListener_online(event: online, listener: Function1[Worker, Unit]): Cluster.this.type
- Annotations
- @JSName("prependOnceListener")
- def prependOnceListener_setup(event: setup, listener: Function1[ClusterSettings, Unit]): Cluster.this.type
- Annotations
- @JSName("prependOnceListener")
- def propertyIsEnumerable(v: scala.Predef.String): Boolean
- Definition Classes
- Object
- val schedulingPolicy: Double
- val settings: ClusterSettings
- def setupMaster(settings: ClusterSettings): Unit
- def setupPrimary(settings: ClusterSettings): Unit
- def setupPrimary(): Unit
setupPrimaryis used to change the default 'fork' behavior.setupPrimaryis used to change the default 'fork' behavior. Once called, the settings will be present in cluster.settings. - final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toLocaleString(): scala.Predef.String
- Definition Classes
- Object
- def toString(): java.lang.String
- Definition Classes
- AnyRef → Any
- def valueOf(): Any
- Definition Classes
- Object
- 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()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- val worker: UndefOr[Worker]
- val workers: UndefOr[Dict[Worker]]