TPTP 4.3.0 Monitoring Tools Project
Internal API Specification

org.eclipse.tptp.monitoring.managedagent.jmx.internal.configuration
Class AbstractServerConnection

java.lang.Object
  extended byorg.eclipse.tptp.monitoring.managedagent.jmx.internal.configuration.AbstractServerConnection
All Implemented Interfaces:
IServerConnection
Direct Known Subclasses:
JSR160ServerConnection, MX4J1ServerConnection

public abstract class AbstractServerConnection
extends java.lang.Object
implements IServerConnection

The abstract class for those MBeanServer connection type which has some parameters defined. All concrete server connection types can extend this class as base.

Since:
TPTP 4.3

Field Summary
protected  java.util.Properties params
          The parameters of this connection type.
 
Fields inherited from interface org.eclipse.tptp.monitoring.managedagent.jmx.internal.configuration.IServerConnection
PARAMETER_INITIAL_CONTEXT_FACTORY, PARAMETER_JNDI_NAME, PARAMETER_PASSWORD, PARAMETER_SERVICE_URL, PARAMETER_USERNAME, TYPE_JSR_160, TYPE_MX4J_1
 
Constructor Summary
AbstractServerConnection()
           
 
Method Summary
 java.lang.String getParameter(java.lang.String parameterKey)
          Returns the value of the specified parameter.
 boolean hasParameter(java.lang.String key)
          Tests if this MBeanServer connection type has this parameter.
protected abstract  void initialize()
          The concrete subclass must implement this method to initialize the parameters of this server connection type.
 void setParameter(java.lang.String key, java.lang.String value)
          Sets the parameter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.tptp.monitoring.managedagent.jmx.internal.configuration.IServerConnection
getServerType
 

Field Detail

params

protected java.util.Properties params
The parameters of this connection type.

KEY : a parameter's name
VALUE : a parameter's value

Constructor Detail

AbstractServerConnection

public AbstractServerConnection()
Method Detail

getParameter

public java.lang.String getParameter(java.lang.String parameterKey)
Description copied from interface: IServerConnection
Returns the value of the specified parameter.

Specified by:
getParameter in interface IServerConnection
Parameters:
parameterKey - The parameter's name
Returns:
The parameter's value

setParameter

public void setParameter(java.lang.String key,
                         java.lang.String value)
Description copied from interface: IServerConnection
Sets the parameter

Specified by:
setParameter in interface IServerConnection
Parameters:
key - The parameter's name
value - The parameter's value

hasParameter

public boolean hasParameter(java.lang.String key)
Description copied from interface: IServerConnection
Tests if this MBeanServer connection type has this parameter.

Specified by:
hasParameter in interface IServerConnection
Parameters:
key - The parameter's name
Returns:
true if has, otherwise, false

initialize

protected abstract void initialize()
The concrete subclass must implement this method to initialize the parameters of this server connection type.


TPTP 4.3.0 Monitoring Tools Project
Internal API Specification