|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lokahi.core.common.interfaces.RestObject org.apache.lokahi.core.common.interfaces.TMCDao<TomcatWorker> org.apache.lokahi.tomcat.api.worker.TomcatWorker
public class TomcatWorker
Constructor Summary | |
---|---|
TomcatWorker()
|
|
TomcatWorker(Hardware hardware,
State state,
Tomcat tomcat)
|
|
TomcatWorker(Hardware h,
Tomcat t)
|
|
TomcatWorker(int tomcatId,
int hardwareId)
|
|
TomcatWorker(int workerId,
int hardwareId,
int stateId,
int tomcatId)
Deprecated. |
|
TomcatWorker(int workerId,
int stateId,
Tomcat t,
Hardware h)
|
Method Summary | |
---|---|
java.lang.String |
buildConfForWeb()
|
java.lang.String |
buildServerXML()
Deprecated. |
java.lang.StringBuilder |
buildShortXMLRepresentation()
Builds a short xml representation of this object containing name, and primary key. |
java.lang.StringBuilder |
buildXMLRepresention()
Builds a xml representation of this object |
static boolean |
delete(TomcatWorker tw)
|
boolean |
equals(java.lang.Object o)
|
TomcatWorker |
fillObject(java.sql.ResultSet r)
Creates the Dao from the passed resultset, internally calling the appriate constructor. |
TomcatWorker |
get(int id)
|
java.util.Collection<TomcatContext> |
getAllContexts()
|
Hardware |
getHardware()
|
int |
getHardwareId()
|
java.lang.String |
getName()
Gets the name. |
int |
getPk()
Gets the primary key |
State |
getState()
|
int |
getStateId()
|
Tomcat |
getTomcat()
|
int |
getTomcatId()
|
static TomcatWorker |
getTomcatWorker(Hardware h,
Tomcat t,
boolean cache)
|
static TomcatWorker |
getTomcatWorker(int id,
boolean cache)
|
static java.util.Collection<TomcatWorker> |
getTomcatWorkers(boolean cache)
|
static java.util.Collection<TomcatWorker> |
getTomcatWorkers(Hardware h,
boolean cache)
|
static java.util.Collection<TomcatWorker> |
getTomcatWorkers(int poolId,
boolean cache)
|
static java.util.Collection<TomcatWorker> |
getTomcatWorkers(java.lang.String name,
boolean cache)
|
static java.util.Collection<TomcatWorker> |
getTomcatWorkers(java.lang.String name,
Instance i,
boolean cache)
|
static java.util.Collection<TomcatWorker> |
getTomcatWorkers(Tomcat t,
boolean cache)
|
static java.util.Collection<TomcatWorker> |
getTomcatWorkers(TomcatPool tp,
boolean cache)
|
int |
getType()
|
int |
getWorkerId()
|
java.lang.String |
getWorkerName()
|
int |
hashCode()
|
boolean |
isActive()
|
void |
setHardware(Hardware hardware)
|
void |
setHardwareId(int hardwareId)
|
void |
setName(java.lang.String name)
|
void |
setPk(int pk)
|
void |
setState(State state)
|
void |
setStateId(int stateId)
|
void |
setTomcat(Tomcat tomcat)
|
void |
setTomcatId(int workerId)
|
void |
setWorkerId(int workerId)
|
static TomcatWorker |
store(TomcatWorker tw)
|
static void |
update(TomcatWorker tw)
|
Methods inherited from class org.apache.lokahi.core.common.interfaces.RestObject |
---|
elementBuilder, elementBuilder |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TomcatWorker()
public TomcatWorker(Hardware hardware, State state, Tomcat tomcat)
public TomcatWorker(int workerId, int hardwareId, int stateId, int tomcatId)
public TomcatWorker(int workerId, int stateId, Tomcat t, Hardware h)
public TomcatWorker(int tomcatId, int hardwareId)
public TomcatWorker(Hardware h, Tomcat t)
Method Detail |
---|
public int getPk()
Collectable
getPk
in interface Collectable
int
primary keypublic void setPk(int pk)
public java.lang.String getName()
Collectable
getName
in interface Collectable
String
name.public void setName(java.lang.String name)
public int getWorkerId()
public int getTomcatId()
public void setWorkerId(int workerId)
public void setTomcatId(int workerId)
public java.lang.String getWorkerName()
public int getHardwareId()
public void setHardwareId(int hardwareId)
public int getStateId()
public void setStateId(int stateId)
public Hardware getHardware()
public void setHardware(Hardware hardware)
public Tomcat getTomcat()
public void setTomcat(Tomcat tomcat)
public State getState()
public void setState(State state)
public boolean isActive()
public int getType()
public java.util.Collection<TomcatContext> getAllContexts()
public TomcatWorker fillObject(java.sql.ResultSet r) throws java.sql.SQLException
Dao
fillObject
in interface Dao<TomcatWorker>
r
- the resultset from a database call,
should include the entire object
java.sql.SQLException
public java.lang.String buildServerXML() throws java.sql.SQLException
java.sql.SQLException
public static java.util.Collection<TomcatWorker> getTomcatWorkers(TomcatPool tp, boolean cache) throws java.sql.SQLException
java.sql.SQLException
public java.lang.String buildConfForWeb()
public static void update(TomcatWorker tw) throws java.sql.SQLException
java.sql.SQLException
public static boolean delete(TomcatWorker tw) throws java.sql.SQLException
java.sql.SQLException
public static TomcatWorker store(TomcatWorker tw) throws java.sql.SQLException
java.sql.SQLException
public static java.util.Collection<TomcatWorker> getTomcatWorkers(int poolId, boolean cache) throws java.sql.SQLException
java.sql.SQLException
public static java.util.Collection<TomcatWorker> getTomcatWorkers(boolean cache) throws java.sql.SQLException
java.sql.SQLException
public TomcatWorker get(int id) throws java.sql.SQLException
get
in class TMCDao<TomcatWorker>
java.sql.SQLException
public static TomcatWorker getTomcatWorker(int id, boolean cache) throws java.sql.SQLException
java.sql.SQLException
public static TomcatWorker getTomcatWorker(Hardware h, Tomcat t, boolean cache) throws java.sql.SQLException
java.sql.SQLException
public static java.util.Collection<TomcatWorker> getTomcatWorkers(Hardware h, boolean cache) throws java.sql.SQLException
java.sql.SQLException
public static java.util.Collection<TomcatWorker> getTomcatWorkers(Tomcat t, boolean cache) throws java.sql.SQLException
java.sql.SQLException
public static java.util.Collection<TomcatWorker> getTomcatWorkers(java.lang.String name, boolean cache) throws java.sql.SQLException
java.sql.SQLException
public static java.util.Collection<TomcatWorker> getTomcatWorkers(java.lang.String name, Instance i, boolean cache) throws java.sql.SQLException
java.sql.SQLException
public java.lang.StringBuilder buildShortXMLRepresentation()
Restable
buildShortXMLRepresentation
in interface Restable
public java.lang.StringBuilder buildXMLRepresention()
Restable
buildXMLRepresention
in interface Restable
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |