Class WorkerBean
java.lang.Object
fr.gouv.vitam.processing.common.model.WorkerBean
Worker class used for deserialize JSON file (root element)
-
Constructor Summary
ConstructorDescriptionWorkerBean
(String name, String family, int capacity, String status, WorkerRemoteConfiguration configuration) -
Method Summary
Modifier and TypeMethodDescriptionint
getName()
setCapacity
(int capacity) setConfiguration
(WorkerRemoteConfiguration configuration) setWorkerId
(String workerId) toString()
toString : get the workerId, workerName, workerFamily, status on worker as String
-
Constructor Details
-
WorkerBean
public WorkerBean(String name, String family, int capacity, String status, WorkerRemoteConfiguration configuration) - Parameters:
name
- : the name of the workerfamily
- : the family of the workercapacity
- : the capacity of the workerstatus
- : the status of the workerconfiguration
- : the configuration of the worker
-
-
Method Details
-
getName
- Returns:
- the name
-
setName
- Parameters:
name
- the worker name to set- Returns:
- the updated WorkerBean object
-
getWorkerId
- Returns:
- the id of the worker
-
setWorkerId
- Parameters:
workerId
- the workerId to set- Returns:
- the updated WorkerBean object
-
getFamily
- Returns:
- the family
-
setFamily
- Parameters:
family
- the worker Family to set- Returns:
- the updated WorkerBean object
-
getCapacity
public int getCapacity()- Returns:
- the capacity
-
setCapacity
- Parameters:
capacity
- the capacity to set- Returns:
- the updated WorkerBean object
-
getStatus
- Returns:
- the status
-
setStatus
- Parameters:
status
- the status to set- Returns:
- the updated WorkerBean object
-
getConfiguration
- Returns:
- the WorkerRemoteConfiguration including properties to connect to the Worker
-
setConfiguration
- Parameters:
configuration
- the WorkerRemoteConfiguration to set- Returns:
- the updated WorkerBean object
-
toString
toString : get the workerId, workerName, workerFamily, status on worker as String
-