|
||||||||||
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<ApacheWorker> org.apache.lokahi.httpd.api.worker.ApacheWorker
public class ApacheWorker
Constructor Summary | |
---|---|
ApacheWorker()
|
|
ApacheWorker(int apacheId,
int hardwareId)
|
|
ApacheWorker(int pk,
int stateId,
Apache apache,
Hardware h)
|
|
ApacheWorker(int pk,
int apacheId,
int stateId,
int hardwareId)
|
|
ApacheWorker(State state,
Hardware hardware,
Apache apache,
ApachePool aPool)
|
Method Summary | |
---|---|
java.lang.String |
buildConfForWeb()
|
java.lang.StringBuilder |
buildShortXMLRepresentation()
Builds a short xml representation of this object containing name, and primary key. |
java.lang.String |
buildWorkersProperties()
|
java.lang.StringBuilder |
buildXMLRepresention()
Builds a xml representation of this object |
static boolean |
delete(ApacheWorker aw)
|
boolean |
equals(java.lang.Object o)
|
ApacheWorker |
fillObject(java.sql.ResultSet r)
Creates the Dao from the passed resultset, internally calling the appriate constructor. |
ApacheWorker |
get(int id)
|
Apache |
getApache()
|
int |
getApacheId()
|
static ApacheWorker |
getApacheWorker(int id,
boolean cache)
|
static ApacheWorker |
getApacheWorker(int apacheId,
int hardwareId,
boolean cache)
|
static java.util.Collection<ApacheWorker> |
getApacheWorkers(Apache a,
boolean cache)
|
static java.util.Collection<ApacheWorker> |
getApacheWorkers(boolean cache)
|
static java.util.Collection<ApacheWorker> |
getApacheWorkers(Hardware h,
boolean cache)
|
static java.util.Collection<ApacheWorker> |
getApacheWorkers(int poolId,
boolean cache)
|
static java.util.Collection<ApacheWorker> |
getApacheWorkers(java.lang.String name,
boolean cache)
|
static java.util.Collection<ApacheWorker> |
getApacheWorkers(java.lang.String name,
Instance i,
boolean cache)
|
Hardware |
getHardware()
|
int |
getHardwareId()
|
java.lang.String |
getName()
Gets the name. |
int |
getPk()
Gets the primary key |
int |
getPoolId()
|
State |
getState()
|
int |
getStateId()
|
int |
hashCode()
|
boolean |
isActive()
|
void |
setApache(Apache apache)
|
void |
setApacheId(int apacheId)
|
void |
setHardware(Hardware hardware)
|
void |
setHardwareId(int hardwareId)
|
void |
setName(java.lang.String name)
|
void |
setPk(int pk)
|
void |
setPoolId(int poolId)
|
void |
setState(State state)
|
void |
setStateId(int stateId)
|
static ApacheWorker |
store(ApacheWorker aw)
|
java.lang.String |
toString()
|
static void |
update(ApacheWorker aw)
|
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, wait, wait, wait |
Constructor Detail |
---|
public ApacheWorker()
public ApacheWorker(State state, Hardware hardware, Apache apache, ApachePool aPool)
public ApacheWorker(int apacheId, int hardwareId)
public ApacheWorker(int pk, int apacheId, int stateId, int hardwareId)
public ApacheWorker(int pk, int stateId, Apache apache, Hardware h)
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 getApacheId()
public void setApacheId(int apacheId)
public int getStateId()
public void setStateId(int stateId)
public int getHardwareId()
public void setHardwareId(int hardwareId)
public State getState()
public void setState(State state)
public Hardware getHardware()
public void setHardware(Hardware hardware)
public Apache getApache()
public void setApache(Apache apache)
public int getPoolId()
public void setPoolId(int poolId)
public boolean isActive()
public ApacheWorker get(int id) throws java.sql.SQLException
get
in class TMCDao<ApacheWorker>
java.sql.SQLException
public static ApacheWorker getApacheWorker(int id, boolean cache) throws java.sql.SQLException
java.sql.SQLException
public static ApacheWorker getApacheWorker(int apacheId, int hardwareId, boolean cache) throws java.sql.SQLException
java.sql.SQLException
public static java.util.Collection<ApacheWorker> getApacheWorkers(boolean cache) throws java.sql.SQLException
java.sql.SQLException
public static java.util.Collection<ApacheWorker> getApacheWorkers(int poolId, boolean cache) throws java.sql.SQLException
java.sql.SQLException
public static java.util.Collection<ApacheWorker> getApacheWorkers(java.lang.String name, boolean cache) throws java.sql.SQLException
java.sql.SQLException
public static java.util.Collection<ApacheWorker> getApacheWorkers(java.lang.String name, Instance i, boolean cache) throws java.sql.SQLException
java.sql.SQLException
public static java.util.Collection<ApacheWorker> getApacheWorkers(Hardware h, boolean cache) throws java.sql.SQLException
java.sql.SQLException
public static java.util.Collection<ApacheWorker> getApacheWorkers(Apache a, boolean cache) throws java.sql.SQLException
java.sql.SQLException
public ApacheWorker fillObject(java.sql.ResultSet r) throws java.sql.SQLException
Dao
fillObject
in interface Dao<ApacheWorker>
r
- the resultset from a database call,
should include the entire object
java.sql.SQLException
public static ApacheWorker store(ApacheWorker aw) throws java.sql.SQLException
java.sql.SQLException
public static void update(ApacheWorker aw) throws java.sql.SQLException
java.sql.SQLException
public static boolean delete(ApacheWorker aw) throws java.sql.SQLException
java.sql.SQLException
public java.lang.String buildConfForWeb()
public java.lang.String buildWorkersProperties() 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 java.lang.String toString()
toString
in class java.lang.Object
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 |