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.Mutator
Adds a new node with the supplied application unique name.commit()
Commits any changes to theWorker
.removeNode
(ApplicationId applicationId) Removes the suppliedNode
with the suppliedApplicationId
.default Worker.Mutator
removeNode
(String applicationUniqueName) Removes the suppliedNode
with the supplied name.default Worker.Mutator
removeNode
(Collection<ApplicationId> toRestart) Removes the suppliedNode
s with the suppliedApplicationId
s.restartNode
(ApplicationId applicationId) Restarts the suppliedNode
with the suppliedApplicationId
.default Worker.Mutator
restartNode
(String applicationUniqueName) Restarts the suppliedNode
with the supplied name.default Worker.Mutator
restartNode
(Collection<ApplicationId> toRestart) Restarts the suppliedNode
s with the suppliedApplicationId
s.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
- theApplicationId
to add- Returns:
- this instance
-
addNode
Adds a new node with the supplied application unique name. TheApplicationId
is generated by usingApplicationId.forUniqueName(String)
- Parameters:
applicationUniqueName
- the application unique name- Returns:
- this instance
-
restartNode
Restarts the suppliedNode
with the suppliedApplicationId
.- Parameters:
applicationId
- theApplicationId
to restart- Returns:
- this instance
-
restartNode
Restarts the suppliedNode
s with the suppliedApplicationId
s.- Parameters:
toRestart
- aCollection<ApplicationId>
to restart in succession- Returns:
- this instance
-
restartNode
Restarts the suppliedNode
with the supplied name. TheApplicationId
is generated by usingApplicationId.forUniqueName(String)
.- Parameters:
applicationUniqueName
- the application unique name- Returns:
- this instance
-
removeNode
Removes the suppliedNode
with the suppliedApplicationId
.- Parameters:
applicationId
- theApplicationId
to restart- Returns:
- this instance
-
removeNode
Removes the suppliedNode
s with the suppliedApplicationId
s.- Parameters:
toRestart
- aCollection<ApplicationId>
to restart in succession- Returns:
- this instance
-
removeNode
Removes the suppliedNode
with the supplied name. TheApplicationId
is 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
-