Client node commands
The following is a list of commands that can be fired from client nodes:
The
register
commandThe
activate
commandThe
set
commandThe
get
commandThe
status
commandThe
del
commandThe
passivate
commandThe
reacyivate
commandThe
archive
commandThe
sync
commandThe
reconnect
command
Let's take a look at each command from a design and implementation perspective.
The register command
This command will register the node into the gossip server ecosystem. The precondition for executing this command is that the node name should be unique; otherwise, a response of failure will be sent to the Shell. The node name will be stored in the Registration holder, which is implemented as a Set data structure in Redis. Apart from this, when the registration process takes place, an archive file is created in the local machine of the node.
The syntax for this command is: register
. The following screenshot shows the response in the Shell console: