Class WorkerNode

java.lang.Object
org.opensearch.task.commons.worker.WorkerNode

public class WorkerNode extends Object
Represents a worker node in the fleet
  • Method Details

    • createWorkerNode

      public static WorkerNode createWorkerNode(String id, String name, String ip)
      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

      public String getId()
      Returns the unique identifier of the worker node.
      Returns:
      The ID of the worker node.
    • getName

      public String getName()
      Returns the name of the worker node.
      Returns:
      The name of the worker node.
    • getIp

      public String getIp()
      Returns the IP address of the worker node.
      Returns:
      The IP address of the worker node.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object