|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.jbossas.servermanager.Server
public class Server
A Server.
Field Summary | |
---|---|
static String |
JBOSS_SERVER_CONFIG_DIR_NAME
the directory where server config instances live |
static String |
JBOSS_SERVER_DEPLOY_DIR_NAME
the hot deployment directory |
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. |
Integer |
getHttpPort()
Get the httpPort. |
URL |
getHttpUrl()
Where is the HTTP service listening? |
String |
getJvmArgs()
Get the JVM args for the command line. |
String |
getName()
Get the name. |
Context |
getNamingContext()
Get the Naming Context. |
File |
getOutputLog()
Where should the servers's std out go? |
PrintWriter |
getOutWriter()
The writer for the output log. |
String |
getPassword()
Get password to pass to org.jboss.Shutdown using the -p option. |
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. |
String |
getSysProperty(String key)
Get a single system property. |
String |
getUsername()
Get username to pass to org.jboss.Shutdown using the -u option. |
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 |
setNamingContext(Context namingContext)
Set the NamingContext in case the default is inadequate. |
void |
setOutWriter(PrintWriter outlog)
Set the output log's writer |
void |
setPassword(String password)
Set password to pass to org.jboss.Shutdown using the -p option. |
void |
setProcess(Process process)
The running process of this server. |
void |
setRmiPort(Integer rmiPort)
Set the rmiPort. |
void |
setUsername(String username)
Set username to pass to org.jboss.Shutdown using the -u option. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String JBOSS_SERVER_CONFIG_DIR_NAME
public static final String JBOSS_SERVER_DEPLOY_DIR_NAME
Constructor Detail |
---|
public Server()
Method Detail |
---|
public String getName()
public void setName(String name)
name
- The name to set.public String getUsername()
public void setUsername(String username)
username
- the server jmx usernamepublic String getPassword()
public void setPassword(String password)
password
- the server jmx passwordprotected 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 getSysProperty(String key)
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 Integer getHttpPort()
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.public Context getNamingContext() throws NamingException
NamingException
public void setNamingContext(Context namingContext)
namingContext
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |