|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.petals.tools.webadmin.bo.ServerConfiguration
public class ServerConfiguration
Represents the configuration of a server as a HashMap of his properties : host, jmxPort, jmxLogin, jmxPassword and with an attribute : a MBeanServerConnection connection to the server
Constructor Summary | |
---|---|
ServerConfiguration()
Creates a new empty ServerConfiguration |
|
ServerConfiguration(java.util.Map<java.lang.String,java.lang.String> serverInfos)
Creatse a new ServerConfiguration, based on a HashMap containing the connexion's informations |
|
ServerConfiguration(java.lang.String host,
java.lang.String jmxPort,
java.lang.String jmxLogin,
java.lang.String jmxPassword)
Creates a new ServerConfiguration with base connection's informations |
|
ServerConfiguration(java.lang.String name,
java.lang.String host,
java.lang.String jmxPort,
java.lang.String jmxLogin,
java.lang.String jmxPassword)
Creates a new ServerConfiguration with base informations |
|
ServerConfiguration(java.lang.String name,
java.lang.String host,
java.lang.String jmxPort,
java.lang.String jmxLogin,
java.lang.String jmxPassword,
java.lang.String state)
Creates a new ServerConfiguration with base informations |
|
ServerConfiguration(java.lang.String name,
java.lang.String host,
java.lang.String jmxPort,
java.lang.String jmxLogin,
java.lang.String jmxPassword,
java.lang.String state,
javax.management.MBeanServerConnection connection)
Creates a new ServerConfiguration with complete informations |
Method Summary | |
---|---|
void |
createConnection()
Retrieves a new connection to the server and sets the connection attribute |
java.lang.String |
getAddress()
|
javax.management.MBeanServerConnection |
getConnection()
Returns the connection to the server |
java.util.Map<java.lang.String,java.lang.String> |
getConnectionParameters()
Gets basics server's informations for connection : name, host, port, login, password |
java.lang.String |
getHost()
Returns the host of the server |
java.lang.String |
getJmxLogin()
Returns the JMX login name |
java.lang.String |
getJmxPassword()
Returns the JMX user password |
java.lang.String |
getJmxPort()
Returns the JMX port |
java.lang.String |
getMonitor()
|
java.lang.String |
getName()
Returns the name of the server |
java.util.Map<java.lang.String,java.lang.String> |
getServerProperties()
Gets the server's informations as a |
java.lang.String |
getShowMessageContent()
|
java.lang.String |
getState()
Returns the state of the server |
void |
setConnection(javax.management.MBeanServerConnection connection)
Sets the connection to the server |
void |
setHost(java.lang.String host)
Sets the host of the server |
void |
setJmxLogin(java.lang.String jmxLogin)
Sets the JMX login name |
void |
setJmxPassword(java.lang.String jmxPassword)
Sets the JMX user password |
void |
setJmxPort(java.lang.String jmxPort)
Sets the JMX port |
void |
setMonitor(boolean monitor)
|
void |
setName()
Retrieve the name of the server, and sets it |
void |
setName(java.lang.String name)
Sets the name of the server |
void |
setServerProperties(java.util.Map<java.lang.String,java.lang.String> connectionProperties)
Sets the new connection properties for the server |
void |
setShowMessageContent(boolean showMessageContent)
|
void |
setState(java.lang.String state)
Sets the state of the server |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ServerConfiguration()
public ServerConfiguration(java.util.Map<java.lang.String,java.lang.String> serverInfos)
serverInfos
- HashMap containing the infospublic ServerConfiguration(java.lang.String host, java.lang.String jmxPort, java.lang.String jmxLogin, java.lang.String jmxPassword)
host
- host of the serverjmxPort
- JMX port of the serverjmxLogin
- JMX login of the serverjmxPassword
- JMX password of the serverpublic ServerConfiguration(java.lang.String name, java.lang.String host, java.lang.String jmxPort, java.lang.String jmxLogin, java.lang.String jmxPassword)
name
- the name of the serverhost
- host of the serverjmxPort
- JMX port of the serverjmxLogin
- JMX login of the serverjmxPassword
- JMX password of the serverpublic ServerConfiguration(java.lang.String name, java.lang.String host, java.lang.String jmxPort, java.lang.String jmxLogin, java.lang.String jmxPassword, java.lang.String state)
name
- the name of the serverhost
- host of the serverjmxPort
- JMX port of the serverjmxLogin
- JMX login of the serverjmxPassword
- JMX password of the serverstate
- the state of the server (started, stopped)public ServerConfiguration(java.lang.String name, java.lang.String host, java.lang.String jmxPort, java.lang.String jmxLogin, java.lang.String jmxPassword, java.lang.String state, javax.management.MBeanServerConnection connection)
name
- the name of the serverhost
- host of the serverjmxPort
- JMX port of the serverjmxLogin
- JMX login of the serverjmxPassword
- JMX password of the serverstate
- the state of the server (started, stopped)connection
- a MBeanServerConnection connection to the serverMethod Detail |
---|
public void createConnection() throws java.io.IOException
java.io.IOException
public java.lang.String getAddress()
public javax.management.MBeanServerConnection getConnection()
public java.util.Map<java.lang.String,java.lang.String> getConnectionParameters()
public java.lang.String getHost()
public java.lang.String getJmxLogin()
public java.lang.String getJmxPassword()
public java.lang.String getJmxPort()
public java.lang.String getShowMessageContent()
public java.lang.String getMonitor()
public java.lang.String getName()
public java.util.Map<java.lang.String,java.lang.String> getServerProperties()
public java.lang.String getState()
public void setConnection(javax.management.MBeanServerConnection connection)
state
- a MBeanServerConnection that is to be the connectionpublic void setHost(java.lang.String host)
host
- a String that is to be the host of the serverpublic void setJmxLogin(java.lang.String jmxLogin)
jmxLogin
- a String that is to be the JMX login namepublic void setJmxPassword(java.lang.String jmxPassword)
jmxPassword
- a String that is to be password for jmx accesspublic void setJmxPort(java.lang.String jmxPort)
jmxPort
- a String that is to be the portpublic void setMonitor(boolean monitor)
public void setName() throws javax.management.MBeanException, java.io.IOException, javax.management.AttributeNotFoundException
java.io.IOException
javax.management.MBeanException
javax.management.AttributeNotFoundException
java.lang.Exception
public void setName(java.lang.String name)
name
- a String that is to be the server's namepublic void setServerProperties(java.util.Map<java.lang.String,java.lang.String> connectionProperties)
connectionProperties
- public void setShowMessageContent(boolean showMessageContent)
public void setState(java.lang.String state)
state
- a String that is to be the statepublic java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |