Packages

trait Cluster extends Object with StObject

Annotations
@JSType() @native()
Source
clusterMod.scala
Linear Supertypes
StObject, Object, Any, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Cluster
  2. StObject
  3. Object
  4. Any
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

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. val SCHED_NONE: Double
  5. val SCHED_RR: Double
  6. def addListener(event: java.lang.String, listener: Function1[Any, Unit]): Cluster.this.type

    events.EventEmitter

    events.EventEmitter

    1. disconnect 2. exit 3. fork 4. listening 5. message 6. online 7. setup
  7. def addListener_disconnect(event: disconnect, listener: Function1[Worker, Unit]): Cluster.this.type
    Annotations
    @JSName("addListener")
  8. def addListener_exit(event: exit, listener: Function3[Worker, Double, java.lang.String, Unit]): Cluster.this.type
    Annotations
    @JSName("addListener")
  9. def addListener_fork(event: fork, listener: Function1[Worker, Unit]): Cluster.this.type
    Annotations
    @JSName("addListener")
  10. def addListener_listening(event: listening, listener: Function2[Worker, Address, Unit]): Cluster.this.type
    Annotations
    @JSName("addListener")
  11. def addListener_message(event: message, listener: Function3[Worker, Any, |[Socket, Server], Unit]): Cluster.this.type
    Annotations
    @JSName("addListener")
  12. def addListener_online(event: online, listener: Function1[Worker, Unit]): Cluster.this.type
    Annotations
    @JSName("addListener")
  13. def addListener_setup(event: setup, listener: Function1[ClusterSettings, Unit]): Cluster.this.type
    Annotations
    @JSName("addListener")
  14. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  15. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  16. def disconnect(callback: Function0[Unit]): Unit
  17. def disconnect(): Unit
  18. def emit(event: Symbol, args: Any*): Boolean
  19. def emit(event: java.lang.String, args: Any*): Boolean
  20. def emit_disconnect(event: disconnect, worker: Worker): Boolean
    Annotations
    @JSName("emit")
  21. def emit_exit(event: exit, worker: Worker, code: Double, signal: java.lang.String): Boolean
    Annotations
    @JSName("emit")
  22. def emit_fork(event: fork, worker: Worker): Boolean
    Annotations
    @JSName("emit")
  23. def emit_listening(event: listening, worker: Worker, address: Address): Boolean
    Annotations
    @JSName("emit")
  24. def emit_message(event: message, worker: Worker, message: Any, handle: Socket): Boolean
    Annotations
    @JSName("emit")
  25. def emit_message(event: message, worker: Worker, message: Any, handle: Server): Boolean
    Annotations
    @JSName("emit")
  26. def emit_online(event: online, worker: Worker): Boolean
    Annotations
    @JSName("emit")
  27. def emit_setup(event: setup, settings: ClusterSettings): Boolean
    Annotations
    @JSName("emit")
  28. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  29. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  30. def fork(env: Any): Worker
  31. def fork(): Worker
  32. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  33. def hasOwnProperty(v: scala.Predef.String): Boolean
    Definition Classes
    Object
  34. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  35. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  36. val isPrimary: Boolean
  37. def isPrototypeOf(v: Object): Boolean
    Definition Classes
    Object
  38. val isWorker: Boolean
  39. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  40. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  41. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  42. def on(event: java.lang.String, listener: Function1[Any, Unit]): Cluster.this.type
  43. def on_disconnect(event: disconnect, listener: Function1[Worker, Unit]): Cluster.this.type
    Annotations
    @JSName("on")
  44. def on_exit(event: exit, listener: Function3[Worker, Double, java.lang.String, Unit]): Cluster.this.type
    Annotations
    @JSName("on")
  45. def on_fork(event: fork, listener: Function1[Worker, Unit]): Cluster.this.type
    Annotations
    @JSName("on")
  46. def on_listening(event: listening, listener: Function2[Worker, Address, Unit]): Cluster.this.type
    Annotations
    @JSName("on")
  47. def on_message(event: message, listener: Function3[Worker, Any, |[Socket, Server], Unit]): Cluster.this.type
    Annotations
    @JSName("on")
  48. def on_online(event: online, listener: Function1[Worker, Unit]): Cluster.this.type
    Annotations
    @JSName("on")
  49. def on_setup(event: setup, listener: Function1[ClusterSettings, Unit]): Cluster.this.type
    Annotations
    @JSName("on")
  50. def once(event: java.lang.String, listener: Function1[Any, Unit]): Cluster.this.type
  51. def once_disconnect(event: disconnect, listener: Function1[Worker, Unit]): Cluster.this.type
    Annotations
    @JSName("once")
  52. def once_exit(event: exit, listener: Function3[Worker, Double, java.lang.String, Unit]): Cluster.this.type
    Annotations
    @JSName("once")
  53. def once_fork(event: fork, listener: Function1[Worker, Unit]): Cluster.this.type
    Annotations
    @JSName("once")
  54. def once_listening(event: listening, listener: Function2[Worker, Address, Unit]): Cluster.this.type
    Annotations
    @JSName("once")
  55. def once_message(event: message, listener: Function3[Worker, Any, |[Socket, Server], Unit]): Cluster.this.type
    Annotations
    @JSName("once")
  56. def once_online(event: online, listener: Function1[Worker, Unit]): Cluster.this.type
    Annotations
    @JSName("once")
  57. def once_setup(event: setup, listener: Function1[ClusterSettings, Unit]): Cluster.this.type
    Annotations
    @JSName("once")
  58. def prependListener(event: java.lang.String, listener: Function1[Any, Unit]): Cluster.this.type
  59. def prependListener_disconnect(event: disconnect, listener: Function1[Worker, Unit]): Cluster.this.type
    Annotations
    @JSName("prependListener")
  60. def prependListener_exit(event: exit, listener: Function3[Worker, Double, java.lang.String, Unit]): Cluster.this.type
    Annotations
    @JSName("prependListener")
  61. def prependListener_fork(event: fork, listener: Function1[Worker, Unit]): Cluster.this.type
    Annotations
    @JSName("prependListener")
  62. def prependListener_listening(event: listening, listener: Function2[Worker, Address, Unit]): Cluster.this.type
    Annotations
    @JSName("prependListener")
  63. def prependListener_message(event: message, listener: Function3[Worker, Any, UndefOr[|[Socket, Server]], Unit]): Cluster.this.type
    Annotations
    @JSName("prependListener")
  64. def prependListener_online(event: online, listener: Function1[Worker, Unit]): Cluster.this.type
    Annotations
    @JSName("prependListener")
  65. def prependListener_setup(event: setup, listener: Function1[ClusterSettings, Unit]): Cluster.this.type
    Annotations
    @JSName("prependListener")
  66. def prependOnceListener(event: java.lang.String, listener: Function1[Any, Unit]): Cluster.this.type
  67. def prependOnceListener_disconnect(event: disconnect, listener: Function1[Worker, Unit]): Cluster.this.type
    Annotations
    @JSName("prependOnceListener")
  68. def prependOnceListener_exit(event: exit, listener: Function3[Worker, Double, java.lang.String, Unit]): Cluster.this.type
    Annotations
    @JSName("prependOnceListener")
  69. def prependOnceListener_fork(event: fork, listener: Function1[Worker, Unit]): Cluster.this.type
    Annotations
    @JSName("prependOnceListener")
  70. def prependOnceListener_listening(event: listening, listener: Function2[Worker, Address, Unit]): Cluster.this.type
    Annotations
    @JSName("prependOnceListener")
  71. def prependOnceListener_message(event: message, listener: Function3[Worker, Any, |[Socket, Server], Unit]): Cluster.this.type
    Annotations
    @JSName("prependOnceListener")
  72. def prependOnceListener_online(event: online, listener: Function1[Worker, Unit]): Cluster.this.type
    Annotations
    @JSName("prependOnceListener")
  73. def prependOnceListener_setup(event: setup, listener: Function1[ClusterSettings, Unit]): Cluster.this.type
    Annotations
    @JSName("prependOnceListener")
  74. def propertyIsEnumerable(v: scala.Predef.String): Boolean
    Definition Classes
    Object
  75. val schedulingPolicy: Double
  76. val settings: ClusterSettings
  77. def setupMaster(settings: ClusterSettings): Unit
  78. def setupPrimary(settings: ClusterSettings): Unit
  79. def setupPrimary(): Unit

    setupPrimary is used to change the default 'fork' behavior.

    setupPrimary is used to change the default 'fork' behavior. Once called, the settings will be present in cluster.settings.

  80. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  81. def toLocaleString(): scala.Predef.String
    Definition Classes
    Object
  82. def toString(): java.lang.String
    Definition Classes
    AnyRef → Any
  83. def valueOf(): Any
    Definition Classes
    Object
  84. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  85. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  86. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  87. val worker: UndefOr[Worker]
  88. val workers: UndefOr[Dict[Worker]]

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated
  2. val isMaster: Boolean

    Deprecated

    since v16.0.0 - use setupPrimary.

  3. def setupMaster(): Unit

    Deprecated

    since v16.0.0 - use setupPrimary.

Inherited from StObject

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped