public interface WorkerNodeService
| Modifier and Type | Method and Description |
|---|---|
void |
activate(String uuid)
activates a worker
|
void |
addGroupToWorker(String workerUuid,
String group)
adds group to be associated with a worker
|
void |
create(String uuid,
String password,
String hostName,
String installDir)
Create a new worker
|
void |
deactivate(String uuid)
deactivate a worker
|
WorkerNode |
findByUuid(String uuid)
find worker without relating to the IS_DELETED property
|
boolean |
isActive(String workerUuid)
Returns active status of the worker according to the worker UUID
|
String |
keepAlive(String uuid)
Update the Worker Node entity with the current ack version for the keep alive mechanism
|
List<WorkerNode> |
readAllNotDeletedWorkers()
Reads all of the workers that are not marked with the IS_DELETED flag
|
List<String> |
readAllWorkerGroups()
Reads all of the worker groups
|
List<WorkerNode> |
readAllWorkers()
Reads all of the workers records
|
List<String> |
readAllWorkersUuids()
Read all workers uuids
|
WorkerNode |
readByUUID(String uuid)
find not deleted worker by uuid
|
com.google.common.collect.Multimap<String,String> |
readGroupWorkersMapActiveAndRunningAndVersion(String versionId)
Reads all of the worker that are active and running and their groups
|
List<String> |
readNonRespondingWorkers()
Read all of the worker that didn't send keep alive for a certain amount of time
|
List<String> |
readWorkerGroups(List<String> groups)
Reads all of the groups that matches the given group names
|
List<String> |
readWorkerGroups(String uuid)
Read all of the groups associated with a worker
|
List<WorkerNode> |
readWorkersByActivation(boolean isActive)
read all worker that there activation status is as a given status
|
void |
removeGroupFromWorker(String workerUuid,
String group)
removes a group association with a worker
|
String |
up(String uuid)
Notifies the orchestrator that a worker went up
|
String |
up(String uuid,
String version,
String versionId)
Notifies the orchestrator that a worker went up
|
void |
updateBulkNumber(String workerUuid,
String bulkNumber)
updates the worker recovery bulk number
|
void |
updateEnvironmentParams(String uuid,
String os,
String jvm,
String dotNetVersion)
updates the environment params of a given worker
|
void |
updateStatus(String uuid,
io.cloudslang.score.api.nodes.WorkerStatus status)
updates the status of a given worker
|
void |
updateStatusInSeparateTransaction(String uuid,
io.cloudslang.score.api.nodes.WorkerStatus status)
updates the status of a given worker in a separate transaction
|
void |
updateVersion(String workerUuid,
String version,
String versionId)
updates the worker version of a given worker
|
void |
updateWorkerGroups(String uuid,
String... groupNames)
updates the groups associated with a worker
|
void |
updateWorkerToDeleted(String uuid)
update a worker record to IS_DELETED state
|
void |
updateWorkerToNotDeleted(String uuid)
update a worker record to its not deleted state
|
void |
updateWRV(String workerUuid,
String wrv)
updates the worker recovery version of a given worker
|
String keepAlive(String uuid)
uuid - worker's unique identifiervoid create(String uuid, String password, String hostName, String installDir)
uuid - worker's unique identifierpassword - worker's passwordhostName - worker's hostinstallDir - worker's installation directoryvoid updateWorkerToDeleted(String uuid)
uuid - the uuid of the worker to mark deletedvoid updateWorkerToNotDeleted(String uuid)
uuid - the uuid of the worker to mark as not deletedList<WorkerNode> readAllNotDeletedWorkers()
WorkerNode that are ont marked with
the IS_DELETED flagString up(String uuid, String version, String versionId)
uuid - the the uuid of the worker that went upversion - the version of the worker that went upversionId - the versionId of the worker that went upString up(String uuid)
uuid - the the uuid of the worker that went upWorkerNode readByUUID(String uuid)
uuid - the uuid of the worker to findWorkerNode of the requested workerboolean isActive(String workerUuid)
workerUuid - WorkerNode findByUuid(String uuid)
uuid - the uuid of the worker to findWorkerNode of the requested workerList<WorkerNode> readAllWorkers()
WorkerNodeList<String> readNonRespondingWorkers()
List<WorkerNode> readWorkersByActivation(boolean isActive)
isActive - the requested activation status.WorkerNode the their
activation status is as the given statusvoid activate(String uuid)
uuid - the uuid of the worker to activatevoid deactivate(String uuid)
uuid - the uuid of the worker to deactivatevoid updateEnvironmentParams(String uuid, String os, String jvm, String dotNetVersion)
uuid - the uuid of the worker to updateos - the operating system the worker is running onjvm - the jvm version the worker is running ondotNetVersion - the dot-net version the worker is usingvoid updateStatus(String uuid, io.cloudslang.score.api.nodes.WorkerStatus status)
uuid - the uuid of the worker to updatestatus - the status to update the given worker tovoid updateStatusInSeparateTransaction(String uuid, io.cloudslang.score.api.nodes.WorkerStatus status)
uuid - the uuid of the worker to updatestatus - the status to update the given worker toList<String> readAllWorkerGroups()
List<String> readWorkerGroups(String uuid)
uuid - the the uuid of the worker to find groups forvoid updateWorkerGroups(String uuid, String... groupNames)
uuid - the uuid of the worker to update groups forgroupNames - the groups to associate with the workercom.google.common.collect.Multimap<String,String> readGroupWorkersMapActiveAndRunningAndVersion(String versionId)
versionId - - the version of workersMultimap of the
active and running workers in specific version and their groupsvoid addGroupToWorker(String workerUuid, String group)
workerUuid - the uuid of the worker to associate the group togroup - the group to associate with the workervoid removeGroupFromWorker(String workerUuid, String group)
workerUuid - the uuid of the worker to remove the group association fromgroup - the group to remove its association from the workerList<String> readWorkerGroups(List<String> groups)
groups - the group names to matchvoid updateBulkNumber(String workerUuid, String bulkNumber)
workerUuid - the uuid of the worker to updatebulkNumber - the new recovery bulk numbervoid updateWRV(String workerUuid, String wrv)
workerUuid - the uuid of the worker to updatewrv - the new worker recovery versionList<String> readAllWorkersUuids()
Copyright © 2019. All rights reserved.