|
||||||||||
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<ApachePool> org.apache.lokahi.httpd.api.pool.ApachePool
public class ApachePool
Constructor Summary | |
---|---|
ApachePool()
|
|
ApachePool(Environment env,
java.lang.String name)
|
|
ApachePool(int id,
java.lang.String name,
int envId)
|
Method Summary | |
---|---|
boolean |
addWorker(ApacheWorker aw)
|
boolean |
addWorkers(java.util.Collection<ApacheWorker> c)
|
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(ApachePool ap)
|
boolean |
equals(java.lang.Object o)
|
ApachePool |
fillObject(java.sql.ResultSet r)
Creates the Dao from the passed resultset, internally calling the appriate constructor. |
ApachePool |
get(int id)
|
java.util.Collection<VirtualHost> |
getAllVirtualhosts()
|
static ApachePool |
getApachePool(int id)
|
static ApachePool |
getApachePool(VirtualHost vh)
|
static java.util.Collection<ApachePool> |
getApachePools()
|
static java.util.Collection<ApachePool> |
getApachePools(ApacheWorker aw)
|
static java.util.Collection<ApachePool> |
getApachePools(java.lang.String name)
|
java.util.Collection<ApacheWorker> |
getApaches()
|
java.util.Collection<ApacheWorker> |
getApaches(Instance i)
|
Environment |
getEnv()
|
int |
getEnvId()
|
java.util.Collection<Hardware> |
getHardwares()
|
java.lang.String |
getName()
Gets the name. |
int |
getPk()
Gets the primary key |
int |
hashCode()
|
boolean |
removeWorker(ApacheWorker aw)
|
boolean |
removeWorkers(java.util.Collection<ApacheWorker> c)
|
void |
setApaches(java.util.Collection<ApacheWorker> apaches)
|
void |
setEnv(Environment env)
|
void |
setEnvId(int envId)
|
void |
setName(java.lang.String name)
|
void |
setPk(int pk)
|
static ApachePool |
store(ApachePool ap)
|
java.lang.String |
toString()
|
static boolean |
update(ApachePool ap)
|
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 ApachePool()
public ApachePool(Environment env, java.lang.String name)
public ApachePool(int id, java.lang.String name, int envId)
Method Detail |
---|
public int getPk()
Collectable
getPk
in interface Collectable
int
primary keypublic java.lang.String getName()
Collectable
getName
in interface Collectable
String
name.public void setName(java.lang.String name)
public void setPk(int pk)
public Environment getEnv()
public void setEnv(Environment env)
public int getEnvId()
public void setEnvId(int envId)
public java.util.Collection<ApacheWorker> getApaches()
public java.util.Collection<ApacheWorker> getApaches(Instance i)
public java.util.Collection<Hardware> getHardwares()
public void setApaches(java.util.Collection<ApacheWorker> apaches)
public static ApachePool store(ApachePool ap) throws java.sql.SQLException
java.sql.SQLException
public static boolean update(ApachePool ap) throws java.sql.SQLException
java.sql.SQLException
public static boolean delete(ApachePool ap) throws java.sql.SQLException
java.sql.SQLException
public ApachePool get(int id) throws java.sql.SQLException
get
in class TMCDao<ApachePool>
java.sql.SQLException
public static ApachePool getApachePool(int id) throws java.sql.SQLException
java.sql.SQLException
public static java.util.Collection<ApachePool> getApachePools(java.lang.String name) throws java.sql.SQLException
java.sql.SQLException
public static ApachePool getApachePool(VirtualHost vh) throws java.sql.SQLException
java.sql.SQLException
public static java.util.Collection<ApachePool> getApachePools() throws java.sql.SQLException
java.sql.SQLException
public static java.util.Collection<ApachePool> getApachePools(ApacheWorker aw) throws java.sql.SQLException
java.sql.SQLException
public ApachePool fillObject(java.sql.ResultSet r) throws java.sql.SQLException
Dao
fillObject
in interface Dao<ApachePool>
r
- the resultset from a database call,
should include the entire object
java.sql.SQLException
public boolean addWorker(ApacheWorker aw) throws java.sql.SQLException
java.sql.SQLException
public boolean removeWorker(ApacheWorker aw) throws java.sql.SQLException
java.sql.SQLException
public boolean addWorkers(java.util.Collection<ApacheWorker> c) throws java.sql.SQLException
java.sql.SQLException
public java.util.Collection<VirtualHost> getAllVirtualhosts() throws java.sql.SQLException
java.sql.SQLException
public boolean removeWorkers(java.util.Collection<ApacheWorker> c) 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 |