Class NodeService
java.lang.Object
services.moleculer.service.MoleculerComponent
services.moleculer.service.Service
services.moleculer.internal.NodeService
- All Implemented Interfaces:
MoleculerLifecycle
The broker contains some internal services to check the health of node or get
broker statistics. You can disable it with the "internalServices: false"
broker option with the ServiceBroker.builder().
-
Field Summary
FieldsModifier and TypeFieldDescriptionImplementation of the "$node.actions" actionImplementation of the "$node.events" actionImplementation of the "$node.health" actionImplementation of the "$node.list" actionprotected Stringprotected MonitorImplementation of the "$node.services" actionprotected static final longprotected TransporterFields inherited from class MoleculerComponent
broker, logger, name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleangetParameter(Context ctx, String name, boolean defaultValue) voidstarted(ServiceBroker broker) Methods inherited from class MoleculerComponent
getBroker, getLogger, getName, stopped
-
Field Details
-
startedAt
protected static final long startedAt -
localNodeID
-
transporter
-
monitor
-
actions
Implementation of the "$node.actions" action -
events
Implementation of the "$node.events" action -
health
Implementation of the "$node.health" action -
list
Implementation of the "$node.list" action -
services
Implementation of the "$node.services" action
-
-
Constructor Details
-
NodeService
public NodeService()
-
-
Method Details
-
started
- Specified by:
startedin interfaceMoleculerLifecycle- Overrides:
startedin classMoleculerComponent- Throws:
Exception
-
getParameter
-