com.cloudcontrolled.api.model
Class Worker

java.lang.Object
  extended by com.cloudcontrolled.api.model.AbstractModel
      extended by com.cloudcontrolled.api.model.Worker

public class Worker
extends AbstractModel

The worker object contains informations about your heavy working scripts and / or programs which are connected to your deployment.

Author:
Denis Neuling (denisneuling@gmail.com)

Constructor Summary
Worker()
           Constructor for Worker.
 
Method Summary
 String getCommand()
           Getter for the field command.
 String getDate_created()
           Getter for the field date_created.
 String getParams()
           Getter for the field params.
 int getSize()
           Getter for the field size.
 String getWrk_id()
           Getter for the field wrk_id.
 void setCommand(String command)
           Setter for the field command.
 void setDate_created(String date_created)
           Setter for the field date_created.
 void setParams(String params)
           Setter for the field params.
 void setSize(int size)
           Setter for the field size.
 void setWrk_id(String wrk_id)
           Setter for the field wrk_id.
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Worker

public Worker()

Constructor for Worker.

Method Detail

getWrk_id

public String getWrk_id()

Getter for the field wrk_id.

Returns:
workerId the id of the concerning worker

setWrk_id

public void setWrk_id(String wrk_id)

Setter for the field wrk_id.

Parameters:
wrk_id - the worker id to set

getDate_created

public String getDate_created()

Getter for the field date_created.

Returns:
created the datetime when the worker was created

setDate_created

public void setDate_created(String date_created)

Setter for the field date_created.

Parameters:
date_created - the datetime to set

getParams

public String getParams()

Getter for the field params.

Returns:
parameters the parameters of the worker start command

setParams

public void setParams(String params)

Setter for the field params.

Parameters:
params - the parameters to set

getCommand

public String getCommand()

Getter for the field command.

Returns:
command the command how the worker was started

setCommand

public void setCommand(String command)

Setter for the field command.

Parameters:
command - the command to set

getSize

public int getSize()

Getter for the field size.

Returns:
size the amount of memory which the worker can use

setSize

public void setSize(int size)

Setter for the field size.

Parameters:
size - the amount of memory to set

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2012. All Rights Reserved.