|
||||||||||
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<HostingPool> org.apache.lokahi.core.api.pool.HostingPool
public class HostingPool
Constructor Summary | |
---|---|
HostingPool()
|
|
HostingPool(int id,
java.lang.String name,
int apachePoolid,
int tomcatPoolId,
int envId)
|
|
HostingPool(java.lang.String name,
ApachePool apachePool,
TomcatPool tomcatPool,
Environment env)
|
Method Summary | |
---|---|
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 |
boolean |
equals(java.lang.Object o)
|
HostingPool |
fillObject(java.sql.ResultSet r)
Creates the Dao from the passed resultset, internally calling the appriate constructor. |
HostingPool |
get(int id)
|
ApachePool |
getApachePool()
|
int |
getApachePoolId()
|
Environment |
getEnv()
|
int |
getEnvId()
|
static HostingPool |
getHostingPool(int id,
boolean fromCache)
|
static java.util.Collection<HostingPool> |
getHostingPools()
|
static java.util.Collection<HostingPool> |
getHostingPools(ApachePool ap,
boolean fromCache)
|
static java.util.Collection<HostingPool> |
getHostingPools(ApacheWorker aw,
boolean fromCache)
|
static java.util.Collection<HostingPool> |
getHostingPools(java.lang.String name,
boolean fromCache)
|
static java.util.Collection<HostingPool> |
getHostingPools(TomcatPool tp,
boolean fromCache)
|
java.util.Collection<Ip> |
getIps()
|
java.lang.String |
getName()
Gets the name. |
int |
getPk()
Gets the primary key |
TomcatPool |
getTomcatPool()
|
int |
getTomcatPoolId()
|
java.util.Collection<VirtualHost> |
getVirtualhosts()
|
int |
hashCode()
|
boolean |
isContextAllowed(java.util.Collection<TomcatContext> c)
|
boolean |
isContextAllowed(java.lang.String contextName)
|
boolean |
isContextAllowed(java.lang.String[] names)
|
boolean |
isContextAllowed(TomcatContext tc)
This method returns true if the vhost name does not already exist in any of our apache workers vhost tables. |
boolean |
isVhostAllowed(java.lang.String vhostName)
|
boolean |
isVhostAllowed(VirtualHost vh)
This method returns true if the vhost name does not already exist in any of our apache workers vhost tables. |
void |
setApachePool(ApachePool apachePool)
|
void |
setApachePoolId(int apachePoolId)
|
void |
setEnv(Environment env)
|
void |
setEnvId(int envId)
|
void |
setName(java.lang.String name)
|
void |
setPk(int id)
|
void |
setTomcatPool(TomcatPool tomcatPool)
|
void |
setTomcatPoolId(int tomcatPoolId)
|
void |
setVirtualhosts(java.util.Collection<VirtualHost> virtualhosts)
|
java.lang.String |
toString()
|
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 HostingPool()
public HostingPool(java.lang.String name, ApachePool apachePool, TomcatPool tomcatPool, Environment env)
public HostingPool(int id, java.lang.String name, int apachePoolid, int tomcatPoolId, int envId)
Method Detail |
---|
public int getPk()
Collectable
getPk
in interface Collectable
int
primary keypublic void setPk(int id)
public java.lang.String getName()
Collectable
getName
in interface Collectable
String
name.public void setName(java.lang.String name)
public int getApachePoolId()
public void setApachePoolId(int apachePoolId)
public int getTomcatPoolId()
public void setTomcatPoolId(int tomcatPoolId)
public int getEnvId()
public void setEnvId(int envId)
public Environment getEnv()
public void setEnv(Environment env)
public TomcatPool getTomcatPool()
public void setTomcatPool(TomcatPool tomcatPool)
public ApachePool getApachePool()
public void setApachePool(ApachePool apachePool)
public java.util.Collection<VirtualHost> getVirtualhosts()
public void setVirtualhosts(java.util.Collection<VirtualHost> virtualhosts)
public HostingPool fillObject(java.sql.ResultSet r) throws java.sql.SQLException
Dao
fillObject
in interface Dao<HostingPool>
r
- the resultset from a database call,
should include the entire object
java.sql.SQLException
public boolean isVhostAllowed(VirtualHost vh)
public boolean isVhostAllowed(java.lang.String vhostName)
public boolean isContextAllowed(TomcatContext tc)
public boolean isContextAllowed(java.util.Collection<TomcatContext> c)
public boolean isContextAllowed(java.lang.String contextName)
public boolean isContextAllowed(java.lang.String[] names)
public java.util.Collection<Ip> getIps()
public static HostingPool getHostingPool(int id, boolean fromCache) throws java.sql.SQLException
java.sql.SQLException
public static java.util.Collection<HostingPool> getHostingPools() throws java.sql.SQLException
java.sql.SQLException
public static java.util.Collection<HostingPool> getHostingPools(ApacheWorker aw, boolean fromCache) throws java.sql.SQLException
java.sql.SQLException
public static java.util.Collection<HostingPool> getHostingPools(java.lang.String name, boolean fromCache) throws java.sql.SQLException
java.sql.SQLException
public static java.util.Collection<HostingPool> getHostingPools(ApachePool ap, boolean fromCache) throws java.sql.SQLException
java.sql.SQLException
public static java.util.Collection<HostingPool> getHostingPools(TomcatPool tp, boolean fromCache) 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
public java.lang.String toString()
toString
in class java.lang.Object
public HostingPool get(int id) throws java.sql.SQLException
get
in class TMCDao<HostingPool>
java.sql.SQLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |