Search
Preparing search index...
The search index is not available
pinus
Options
All
Public
Public/Protected
All
Inherited
Only exported
Menu
Globals
Watchdog
Class Watchdog
Hierarchy
EventEmitter
Watchdog
Index
Constructors
constructor
Properties
_listeners
app
count
is
Started
servers
service
default
Max
Listeners
Methods
add
Listener
add
Server
emit
event
Names
get
Max
Listeners
listener
Count
listeners
notify
notify
ById
on
once
prepend
Listener
prepend
Once
Listener
query
reconnect
Server
record
remove
All
Listeners
remove
Listener
remove
Server
set
Max
Listeners
subscribe
unsubscribe
listener
Count
Constructors
constructor
new
Watchdog
(
app
:
Application
, service
:
ConsoleService
)
:
Watchdog
Parameters
app:
Application
service:
ConsoleService
Returns
Watchdog
Properties
_listeners
_listeners
:
object
Type declaration
[
serverId:
string
]:
number
Private
app
app
:
Application
count
count
:
number
is
Started
is
Started
:
boolean
= false
servers
servers
:
object
Type declaration
[
serverId:
string
]:
ServerInfo
Private
service
service
:
ConsoleService
Static
default
Max
Listeners
default
Max
Listeners
:
number
Methods
add
Listener
add
Listener
(
event
:
string
|
symbol
, listener
:
function
)
:
this
Parameters
event:
string
|
symbol
listener:
function
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
this
add
Server
add
Server
(
server
:
ServerInfo
)
:
void
Parameters
server:
ServerInfo
Returns
void
emit
emit
(
event
:
string
|
symbol
,
...
args
:
any
[]
)
:
boolean
Parameters
event:
string
|
symbol
Rest
...
args:
any
[]
Returns
boolean
event
Names
event
Names
(
)
:
Array
<
string
|
symbol
>
Returns
Array
<
string
|
symbol
>
get
Max
Listeners
get
Max
Listeners
(
)
:
number
Returns
number
listener
Count
listener
Count
(
type
:
string
|
symbol
)
:
number
Parameters
type:
string
|
symbol
Returns
number
listeners
listeners
(
event
:
string
|
symbol
)
:
Function
[]
Parameters
event:
string
|
symbol
Returns
Function
[]
notify
notify
(
msg
:
any
)
:
void
Parameters
msg:
any
Returns
void
notify
ById
notify
ById
(
id
:
string
, msg
:
any
)
:
void
Parameters
id:
string
msg:
any
Returns
void
on
on
(
event
:
string
|
symbol
, listener
:
function
)
:
this
Parameters
event:
string
|
symbol
listener:
function
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
this
once
once
(
event
:
string
|
symbol
, listener
:
function
)
:
this
Parameters
event:
string
|
symbol
listener:
function
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
this
prepend
Listener
prepend
Listener
(
event
:
string
|
symbol
, listener
:
function
)
:
this
Parameters
event:
string
|
symbol
listener:
function
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
this
prepend
Once
Listener
prepend
Once
Listener
(
event
:
string
|
symbol
, listener
:
function
)
:
this
Parameters
event:
string
|
symbol
listener:
function
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
this
query
query
(
)
:
object
Returns
object
[
serverId:
string
]:
ServerInfo
reconnect
Server
reconnect
Server
(
server
:
ServerInfo
)
:
void
Parameters
server:
ServerInfo
Returns
void
record
record
(
id
:
string
)
:
void
Parameters
id:
string
Returns
void
remove
All
Listeners
remove
All
Listeners
(
event
?:
string
|
symbol
)
:
this
Parameters
Optional
event:
string
|
symbol
Returns
this
remove
Listener
remove
Listener
(
event
:
string
|
symbol
, listener
:
function
)
:
this
Parameters
event:
string
|
symbol
listener:
function
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
this
remove
Server
remove
Server
(
id
:
string
)
:
void
Parameters
id:
string
Returns
void
set
Max
Listeners
set
Max
Listeners
(
n
:
number
)
:
this
Parameters
n:
number
Returns
this
subscribe
subscribe
(
id
:
string
)
:
void
Parameters
id:
string
Returns
void
unsubscribe
unsubscribe
(
id
:
string
)
:
void
Parameters
id:
string
Returns
void
Static
listener
Count
listener
Count
(
emitter
:
EventEmitter
, event
:
string
|
symbol
)
:
number
Parameters
emitter:
EventEmitter
event:
string
|
symbol
Returns
number
Globals
Watchdog
constructor
_listeners
app
count
is
Started
servers
service
default
Max
Listeners
add
Listener
add
Server
emit
event
Names
get
Max
Listeners
listener
Count
listeners
notify
notify
ById
on
once
prepend
Listener
prepend
Once
Listener
query
reconnect
Server
record
remove
All
Listeners
remove
Listener
remove
Server
set
Max
Listeners
subscribe
unsubscribe
listener
Count