public class BESConfig
extends java.lang.Object
Constructor and Description |
---|
BESConfig(org.jdom.Document besConfiguration) |
BESConfig(org.jdom.Element besConfiguration) |
BESConfig(java.lang.String filename)
Creates a new BESConfig and sets its state according to the values of the persistent representation of the
BESConfig fpund in the (XML) file whose name is passed in.
|
Modifier and Type | Method and Description |
---|---|
static void |
config(BESConfig bc) |
BESConfig |
copy() |
int |
getAdminPort() |
java.lang.String |
getBesName() |
org.jdom.Document |
getConfigDocument() |
org.jdom.Element |
getConfigElement() |
java.lang.String |
getHost() |
int |
getMaxClients() |
int |
getMaxCommands() |
int |
getMaxResponseSize() |
int |
getPort() |
java.lang.String |
getPrefix() |
int |
getTimeOut() |
static void |
main(java.lang.String[] args) |
void |
setAdminPort(int port) |
void |
setAdminPort(java.lang.String port) |
void |
setBesName(java.lang.String nickName) |
void |
setHost(java.lang.String host) |
void |
setMaxClients(int i) |
void |
setMaxClients(java.lang.String i) |
void |
setMaxCommands(int max) |
void |
setMaxResponseSize(int maxResponseSize) |
void |
setMaxResponseSize(java.lang.String maxResponseSize) |
void |
setPort(int port) |
void |
setPort(java.lang.String port) |
void |
setPrefix(java.lang.String prefix) |
void |
setTimeOut(int timeOut) |
void |
setTimeOut(java.lang.String timeOut) |
java.lang.String |
toString() |
void |
userConfigure()
Provides a console interface to initialize (or configure if you will) an OLFSConfig object, which provides
BES configuration information to the OLFS.
|
static void |
userConfigure(BESConfig bc)
Provides a console interface to initialize (or configure if you will) the passed OLFSConfig object, which provides
BES configuration information for the OLFS.
|
void |
writeConfiguration(java.io.OutputStream os) |
public BESConfig(org.jdom.Document besConfiguration) throws java.lang.Exception
java.lang.Exception
public BESConfig(org.jdom.Element besConfiguration) throws java.lang.Exception
java.lang.Exception
public BESConfig(java.lang.String filename) throws java.lang.Exception
filename
- The name of the confguration filejava.lang.Exception
- When bad things happen.public BESConfig copy()
public void setBesName(java.lang.String nickName)
public java.lang.String getBesName()
public void setMaxCommands(int max)
public int getMaxCommands()
public void writeConfiguration(java.io.OutputStream os) throws java.io.IOException
java.io.IOException
public org.jdom.Document getConfigDocument()
public org.jdom.Element getConfigElement()
public void setHost(java.lang.String host)
public java.lang.String getHost()
public void setPort(java.lang.String port)
public void setPort(int port)
public int getPort()
public void setAdminPort(java.lang.String port)
public void setAdminPort(int port)
public int getAdminPort()
public void setMaxResponseSize(java.lang.String maxResponseSize)
public void setMaxResponseSize(int maxResponseSize)
public int getMaxResponseSize()
public void setTimeOut(java.lang.String timeOut)
timeOut
- Number of seconds for the client to wait for the BES to respondpublic void setTimeOut(int timeOut)
timeOut
- Number of seconds for the client to wait for the BES to respondpublic int getTimeOut()
public void setPrefix(java.lang.String prefix)
public java.lang.String getPrefix()
public void setMaxClients(java.lang.String i)
public void setMaxClients(int i)
public int getMaxClients()
public java.lang.String toString()
toString
in class java.lang.Object
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
public void userConfigure() throws java.io.IOException
java.io.IOException
- When bad things happenpublic static void userConfigure(BESConfig bc) throws java.io.IOException
bc
- The OLFSConfig to initialize.java.io.IOException
- When bad things happenpublic static void config(BESConfig bc) throws java.io.IOException
java.io.IOException