Interface Worker.Mutator
- All Superinterfaces:
AutoCloseable,Worker.Accessor
- Enclosing interface:
Worker
Allows for the mutation of the
Worker.-
Method Summary
Modifier and TypeMethodDescriptionaddNode(ApplicationId applicationId) Adds a new node with the suppliedApplicationId.default Worker.MutatorAdds a new node with the supplied application unique name.commit()Commits any changes to theWorker.removeNode(ApplicationId applicationId) Removes the suppliedNodewith the suppliedApplicationId.default Worker.MutatorremoveNode(String applicationUniqueName) Removes the suppliedNodewith the supplied name.default Worker.MutatorremoveNode(Collection<ApplicationId> toRestart) Removes the suppliedNodes with the suppliedApplicationIds.restartNode(ApplicationId applicationId) Restarts the suppliedNodewith the suppliedApplicationId.default Worker.MutatorrestartNode(String applicationUniqueName) Restarts the suppliedNodewith the supplied name.default Worker.MutatorrestartNode(Collection<ApplicationId> toRestart) Restarts the suppliedNodes with the suppliedApplicationIds.Methods inherited from interface dev.getelements.elements.rt.remote.Worker.Accessor
close, getBindingSet, getNodeSet
-
Method Details
-
addNode
Adds a new node with the suppliedApplicationId.- Parameters:
applicationId- theApplicationIdto add- Returns:
- this instance
-
addNode
Adds a new node with the supplied application unique name. TheApplicationIdis generated by usingApplicationId.forUniqueName(String)- Parameters:
applicationUniqueName- the application unique name- Returns:
- this instance
-
restartNode
Restarts the suppliedNodewith the suppliedApplicationId.- Parameters:
applicationId- theApplicationIdto restart- Returns:
- this instance
-
restartNode
Restarts the suppliedNodes with the suppliedApplicationIds.- Parameters:
toRestart- aCollection<ApplicationId>to restart in succession- Returns:
- this instance
-
restartNode
Restarts the suppliedNodewith the supplied name. TheApplicationIdis generated by usingApplicationId.forUniqueName(String).- Parameters:
applicationUniqueName- the application unique name- Returns:
- this instance
-
removeNode
Removes the suppliedNodewith the suppliedApplicationId.- Parameters:
applicationId- theApplicationIdto restart- Returns:
- this instance
-
removeNode
Removes the suppliedNodes with the suppliedApplicationIds.- Parameters:
toRestart- aCollection<ApplicationId>to restart in succession- Returns:
- this instance
-
removeNode
Removes the suppliedNodewith the supplied name. TheApplicationIdis generated by usingApplicationId.forUniqueName(String).- Parameters:
applicationUniqueName- the application unique name- Returns:
- this instance
-
commit
Worker.Mutator commit()Commits any changes to theWorker.- Returns:
- this instance
-