|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.lokahi.core.common.interfaces.RestObject
org.apache.lokahi.core.common.interfaces.TMCDao<T>
org.apache.lokahi.core.common.interfaces.Application<Apache>
org.apache.lokahi.httpd.api.server.Apache
public class Apache
Constructor Summary | |
---|---|
Apache()
|
|
Apache(int container_id,
java.lang.String containerName,
java.lang.String logLocation,
java.lang.String envVaribles,
int forkWait,
java.lang.String pidfileLocation,
java.lang.String restartCommand,
java.lang.String startCommand,
java.lang.String stopCommand,
java.lang.String sysGroup,
java.lang.String sysUser,
java.lang.String serverRoot,
int mainId)
|
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 |
static boolean |
delete(Apache ap)
|
boolean |
equals(java.lang.Object o)
|
Apache |
fillObject(java.sql.ResultSet r)
Creates the Dao from the passed resultset, internally calling the appriate constructor. |
Apache |
get(int id)
|
static Apache |
getApache(int id,
boolean fromCache)
|
static java.util.Collection<Apache> |
getApaches()
|
static java.util.Collection<Apache> |
getApaches(java.lang.String name,
boolean fromCache)
|
java.lang.String |
getEnvVaribles()
|
int |
getForkWait()
|
java.lang.String |
getLogLocation()
|
File |
getMain()
|
int |
getMainId()
|
java.lang.String |
getName()
Gets the name. |
java.lang.String |
getPidFileLocation()
|
int |
getPk()
Gets the primary key |
java.lang.String |
getRestartCommand()
|
java.lang.String |
getServerRoot()
|
java.lang.String |
getStartCommand()
|
java.lang.String |
getStopCommand()
|
java.lang.String |
getSysGroup()
|
java.lang.String |
getSysUser()
|
int |
hashCode()
|
void |
setEnvVaribles(java.lang.String envVaribles)
|
void |
setForkWait(int forkWait)
|
void |
setLogLocation(java.lang.String logLocation)
|
void |
setMain(File main)
|
void |
setMainId(int mainId)
|
void |
setName(java.lang.String name)
|
void |
setPidFileLocation(java.lang.String pidFileLocation)
|
void |
setPk(int pk)
|
void |
setRestartCommand(java.lang.String restartCommand)
|
void |
setServerRoot(java.lang.String serverRoot)
|
void |
setStartCommand(java.lang.String startCommand)
|
void |
setStopCommand(java.lang.String stopCommand)
|
void |
setSysGroup(java.lang.String sysGroup)
|
void |
setSysUser(java.lang.String sysUser)
|
static Apache |
store(Apache ap)
|
java.lang.String |
toString()
|
static void |
update(Apache 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 Apache()
public Apache(int container_id, java.lang.String containerName, java.lang.String logLocation, java.lang.String envVaribles, int forkWait, java.lang.String pidfileLocation, java.lang.String restartCommand, java.lang.String startCommand, java.lang.String stopCommand, java.lang.String sysGroup, java.lang.String sysUser, java.lang.String serverRoot, int mainId)
Method Detail |
---|
public int getPk()
Collectable
int
primary keypublic void setPk(int pk)
public java.lang.String getName()
Collectable
String
name.public void setName(java.lang.String name)
public java.lang.String getServerRoot()
public void setServerRoot(java.lang.String serverRoot)
public java.lang.String getLogLocation()
public void setLogLocation(java.lang.String logLocation)
public java.lang.String getSysUser()
getSysUser
in class Application<Apache>
public void setSysUser(java.lang.String sysUser)
setSysUser
in class Application<Apache>
public java.lang.String getSysGroup()
getSysGroup
in class Application<Apache>
public void setSysGroup(java.lang.String sysGroup)
setSysGroup
in class Application<Apache>
public java.lang.String getStartCommand()
public void setStartCommand(java.lang.String startCommand)
public java.lang.String getStopCommand()
public void setStopCommand(java.lang.String stopCommand)
public java.lang.String getRestartCommand()
public void setRestartCommand(java.lang.String restartCommand)
public int getForkWait()
public void setForkWait(int forkWait)
public java.lang.String getEnvVaribles()
public void setEnvVaribles(java.lang.String envVaribles)
public java.lang.String getPidFileLocation()
public void setPidFileLocation(java.lang.String pidFileLocation)
public int getMainId()
public void setMainId(int mainId)
public File getMain()
public void setMain(File main)
public Apache fillObject(java.sql.ResultSet r) throws java.sql.SQLException
Dao
r
- the resultset from a database call,
should include the entire object
java.sql.SQLException
public static Apache getApache(int id, boolean fromCache) throws java.sql.SQLException
java.sql.SQLException
public static java.util.Collection<Apache> getApaches() throws java.sql.SQLException
java.sql.SQLException
public static java.util.Collection<Apache> getApaches(java.lang.String name, boolean fromCache) throws java.sql.SQLException
java.sql.SQLException
public static Apache store(Apache ap) throws java.sql.SQLException
java.sql.SQLException
public static void update(Apache ap) throws java.sql.SQLException
java.sql.SQLException
public static boolean delete(Apache ap) throws java.sql.SQLException
java.sql.SQLException
public java.lang.StringBuilder buildShortXMLRepresentation()
Restable
public java.lang.StringBuilder buildXMLRepresention()
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
public Apache get(int id) throws java.sql.SQLException
get
in class TMCDao<Apache>
java.sql.SQLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |