Class WorkerNode
java.lang.Object
org.opensearch.task.commons.worker.WorkerNode
Represents a worker node in the fleet
-
Method Summary
Modifier and TypeMethodDescriptionstatic WorkerNodecreateWorkerNode(String id, String name, String ip) Creates a new worker node with the given ID, name, and IP address.booleangetId()Returns the unique identifier of the worker node.getIp()Returns the IP address of the worker node.getName()Returns the name of the worker node.inthashCode()
-
Method Details
-
createWorkerNode
Creates a new worker node with the given ID, name, and IP address.- Parameters:
id- The unique identifier of the worker node.name- The name of the worker node.ip- The IP address of the worker node.- Returns:
- The created worker node.
-
getId
Returns the unique identifier of the worker node.- Returns:
- The ID of the worker node.
-
getName
Returns the name of the worker node.- Returns:
- The name of the worker node.
-
getIp
Returns the IP address of the worker node.- Returns:
- The IP address of the worker node.
-
equals
-
hashCode
public int hashCode()
-