Class WorkerBean


  • public class WorkerBean
    extends java.lang.Object
    Worker class used for deserialize JSON file (root element)
    • 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 worker
        family - : the family of the worker
        capacity - : the capacity of the worker
        status - : the status of the worker
        configuration - : 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:
        toString in class java.lang.Object