|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.test.util.server.Server
public class Server
A Server.
Constructor Summary | |
---|---|
Server()
|
Method Summary | |
---|---|
void |
addArg(Argument arg)
Add an argument. |
void |
addJvmArg(Argument arg)
Add a jvm arg. |
void |
addSysProperty(Property property)
Add a system property. |
String |
getArgs()
Get the arguments as a string for the command line. |
String |
getConfig()
Get the config. |
File |
getErrorLog()
Where should the server's std err log go? |
PrintWriter |
getErrorWriter()
The error log's writer. |
String |
getHost()
Get the host. |
URL |
getHttpUrl()
Where is the HTTP service listening? |
String |
getJvmArgs()
Get the JVM args for the command line. |
String |
getName()
Get the name. |
File |
getOutputLog()
Where should the servers's std out go? |
PrintWriter |
getOutWriter()
The writer for the output log. |
Process |
getProcess()
Get the process. |
Integer |
getRmiPort()
Get the rmiPort |
String |
getRmiUrl()
The URl for the RMI listener. |
String |
getSysProperties()
Get the system properties for the command line. |
boolean |
hasWebServer()
Get the hasWebServer. |
boolean |
isRunning()
Is the server actually running? |
boolean |
isStopped()
Has the server been intentionally stopped? |
void |
setConfig(String config)
Set the config. |
void |
setErrorWriter(PrintWriter errorlog)
Set the error writer. |
void |
setHasWebServer(boolean hasWebServer)
Set the hasWebServer. |
void |
setHost(String host)
Set the host. |
void |
setHttpPort(Integer httpPort)
Set the httpPort. |
protected void |
setManager(ServerManager manager)
Set the manager. |
void |
setName(String name)
Set the name. |
void |
setOutWriter(PrintWriter outlog)
Set the output log's writer |
void |
setProcess(Process process)
The running process of this server. |
void |
setRmiPort(Integer rmiPort)
Set the rmiPort. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Server()
Method Detail |
---|
public String getName()
public void setName(String name)
name
- The name to set.protected void setManager(ServerManager manager)
manager
- public void addArg(Argument arg)
arg
- public String getArgs()
public void addJvmArg(Argument arg)
arg
- public String getJvmArgs()
public void addSysProperty(Property property)
property
- public String getSysProperties()
public void setProcess(Process process)
process
- public boolean isRunning()
public boolean isStopped()
public Process getProcess()
public URL getHttpUrl() throws MalformedURLException
MalformedURLException
- for a malformed urlpublic String getRmiUrl()
public String getConfig()
public void setConfig(String config)
config
- The config to set.public String getHost()
public void setHost(String host)
host
- The host to set.public void setHttpPort(Integer httpPort)
httpPort
- The httpPort to set.public void setRmiPort(Integer rmiPort)
rmiPort
- The rmiPort to set.public Integer getRmiPort()
public File getErrorLog()
public File getOutputLog()
public void setOutWriter(PrintWriter outlog)
outlog
- the log writerpublic PrintWriter getOutWriter()
public PrintWriter getErrorWriter()
public void setErrorWriter(PrintWriter errorlog)
errorlog
- public boolean hasWebServer()
public void setHasWebServer(boolean hasWebServer)
hasWebServer
- The hasWebServer to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |