Interface Worker.Mutator

All Superinterfaces:
AutoCloseable, Worker.Accessor
Enclosing interface:
Worker

public static interface Worker.Mutator extends Worker.Accessor, AutoCloseable
Allows for the mutation of the Worker.
  • Method Details

    • addNode

      Worker.Mutator addNode(dev.getelements.elements.sdk.cluster.id.ApplicationId applicationId)
      Adds a new node with the supplied ApplicationId.
      Parameters:
      applicationId - the ApplicationId to add
      Returns:
      this instance
    • addNode

      default Worker.Mutator addNode(String applicationUniqueName)
      Adds a new node with the supplied application unique name. The ApplicationId is generated by using ApplicationId.forUniqueName(String)
      Parameters:
      applicationUniqueName - the application unique name
      Returns:
      this instance
    • restartNode

      Worker.Mutator restartNode(dev.getelements.elements.sdk.cluster.id.ApplicationId applicationId)
      Restarts the supplied Node with the supplied ApplicationId.
      Parameters:
      applicationId - the ApplicationId to restart
      Returns:
      this instance
    • restartNode

      default Worker.Mutator restartNode(Collection<dev.getelements.elements.sdk.cluster.id.ApplicationId> toRestart)
      Restarts the supplied Nodes with the supplied ApplicationIds.
      Parameters:
      toRestart - a Collection<dev.getelements.elements.sdk.cluster.id.ApplicationId> to restart in succession
      Returns:
      this instance
    • restartNode

      default Worker.Mutator restartNode(String applicationUniqueName)
      Restarts the supplied Node with the supplied name. The ApplicationId is generated by using ApplicationId.forUniqueName(String).
      Parameters:
      applicationUniqueName - the application unique name
      Returns:
      this instance
    • removeNode

      Worker.Mutator removeNode(dev.getelements.elements.sdk.cluster.id.ApplicationId applicationId)
      Removes the supplied Node with the supplied ApplicationId.
      Parameters:
      applicationId - the ApplicationId to restart
      Returns:
      this instance
    • removeNode

      default Worker.Mutator removeNode(Collection<dev.getelements.elements.sdk.cluster.id.ApplicationId> toRestart)
      Removes the supplied Nodes with the supplied ApplicationIds.
      Parameters:
      toRestart - a Collection<dev.getelements.elements.sdk.cluster.id.ApplicationId> to restart in succession
      Returns:
      this instance
    • removeNode

      default Worker.Mutator removeNode(String applicationUniqueName)
      Removes the supplied Node with the supplied name. The ApplicationId is generated by using ApplicationId.forUniqueName(String).
      Parameters:
      applicationUniqueName - the application unique name
      Returns:
      this instance
    • commit

      Worker.Mutator commit()
      Commits any changes to the Worker.
      Returns:
      this instance