org.ow2.jasmine.jadort.api.entities.topology
Class WorkerBean

java.lang.Object
  extended by org.ow2.jasmine.jadort.api.entities.topology.WorkerBean
All Implemented Interfaces:
java.io.Serializable

public class WorkerBean
extends java.lang.Object
implements java.io.Serializable

Bean represents a worker. In the XSD, each instance of this object is a Balancer.

Author:
Malek Chahine, Remy Bresson, S. Ali Tokmen
See Also:
Serialized Form

Nested Class Summary
static class WorkerBean.Type
          Worker type.
 
Constructor Summary
WorkerBean()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
          
 ConnectorBean getConnector()
          Get the worker connector
 java.lang.Integer getId()
          Get the worker id
 java.lang.String getName()
          Get the worker's name
 ServerBean getServer()
          Get the worker server
 java.lang.String getServerName()
          Get the server name associated with this worker
 WorkerBean.Type getType()
           
 java.lang.String getWorkerName()
          Get the worker name associated with this worker
 void setConnector(ConnectorBean connector)
          Set the worker connector
 void setId(java.lang.Integer id)
          Set the worker id
 void setName(java.lang.String name)
          Set the worker's name
 void setServer(ServerBean server)
          Set the worker server
 void setServerName(java.lang.String serverName)
          Set the server name associated with this worker
 void setType(WorkerBean.Type type)
           
 void setWorkerName(java.lang.String workerName)
          Set the worker name associated with this worker
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WorkerBean

public WorkerBean()
Method Detail

getId

public java.lang.Integer getId()
Get the worker id

Returns:
the worker id

setId

public void setId(java.lang.Integer id)
Set the worker id

Parameters:
id - the worker id

getName

public java.lang.String getName()
Get the worker's name

Returns:
the worker's name

setName

public void setName(java.lang.String name)
Set the worker's name

Parameters:
name - the worker's name

getServerName

public java.lang.String getServerName()
Get the server name associated with this worker

Returns:
the server name associated with this worker

setServerName

public void setServerName(java.lang.String serverName)
Set the server name associated with this worker

Parameters:
serverName - the server name associated with this worker

getWorkerName

public java.lang.String getWorkerName()
Get the worker name associated with this worker

Returns:
the worker name associated with this worker

setWorkerName

public void setWorkerName(java.lang.String workerName)
Set the worker name associated with this worker

Parameters:
workerName - the worker name associated with this worker

getConnector

public ConnectorBean getConnector()
Get the worker connector

Returns:
the worker connector

setConnector

public void setConnector(ConnectorBean connector)
Set the worker connector

Parameters:
connector - the worker connector

getServer

public ServerBean getServer()
Get the worker server

Returns:
the worker server

setServer

public void setServer(ServerBean server)
Set the worker server

Parameters:
server - the worker server

getType

public WorkerBean.Type getType()
Returns:
worker type

setType

public void setType(WorkerBean.Type type)
Parameters:
type - worker type

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)

Overrides:
equals in class java.lang.Object
Returns:
true if obj is a WorkerBean and the getId() is the same for both objects, false otherwise.


Copyright © 2010 OW2 Consortium. All Rights Reserved.