Class WorkerBean
- java.lang.Object
-
- fr.gouv.vitam.processing.common.model.WorkerBean
-
public class WorkerBean extends java.lang.ObjectWorker class used for deserialize JSON file (root element)
-
-
Constructor Summary
Constructors Constructor Description WorkerBean(java.lang.String name, java.lang.String family, int capacity, java.lang.String status, WorkerRemoteConfiguration configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCapacity()WorkerRemoteConfigurationgetConfiguration()java.lang.StringgetFamily()java.lang.StringgetName()java.lang.StringgetStatus()java.lang.StringgetWorkerId()WorkerBeansetCapacity(int capacity)WorkerBeansetConfiguration(WorkerRemoteConfiguration configuration)WorkerBeansetFamily(java.lang.String family)WorkerBeansetName(java.lang.String name)WorkerBeansetStatus(java.lang.String status)WorkerBeansetWorkerId(java.lang.String workerId)java.lang.StringtoString()toString : get the workerId, workerName, workerFamily, status on worker as String
-
-
-
Constructor Detail
-
WorkerBean
public WorkerBean(java.lang.String name, java.lang.String family, int capacity, java.lang.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 Detail
-
getName
public java.lang.String getName()
- Returns:
- the name
-
setName
public WorkerBean setName(java.lang.String name)
- Parameters:
name- the worker name to set- Returns:
- the updated WorkerBean object
-
getWorkerId
public java.lang.String getWorkerId()
- Returns:
- the id of the worker
-
setWorkerId
public WorkerBean setWorkerId(java.lang.String workerId)
- Parameters:
workerId- the workerId to set- Returns:
- the updated WorkerBean object
-
getFamily
public java.lang.String getFamily()
- Returns:
- the family
-
setFamily
public WorkerBean setFamily(java.lang.String family)
- Parameters:
family- the worker Family to set- Returns:
- the updated WorkerBean object
-
getCapacity
public int getCapacity()
- Returns:
- the capacity
-
setCapacity
public WorkerBean setCapacity(int capacity)
- Parameters:
capacity- the capacity to set- Returns:
- the updated WorkerBean object
-
getStatus
public java.lang.String getStatus()
- Returns:
- the status
-
setStatus
public WorkerBean setStatus(java.lang.String status)
- Parameters:
status- the status to set- Returns:
- the updated WorkerBean object
-
getConfiguration
public WorkerRemoteConfiguration getConfiguration()
- Returns:
- the WorkerRemoteConfiguration including properties to connect to the Worker
-
setConfiguration
public WorkerBean setConfiguration(WorkerRemoteConfiguration configuration)
- Parameters:
configuration- the WorkerRemoteConfiguration to set- Returns:
- the updated WorkerBean object
-
toString
public java.lang.String toString()
toString : get the workerId, workerName, workerFamily, status on worker as String- Overrides:
toStringin classjava.lang.Object
-
-