| java.lang.Object org.continuent.sequoia.console.jmx.RmiJmxClient
RmiJmxClient | public class RmiJmxClient (Code) | | This class defines a RmiJmxClient that uses Jmx 2.0 specifications to connect
to the RmiSever
author: Nicolas Modrzyk version: 1.0 |
Method Summary | |
public void | connect(String port, String host, Object credentials) | public AbstractSchedulerControlMBean | getAbstractScheduler(String vdb, String user, String password) Returns a proxy on the given vdb Scheduler. | public Object | getAttributeValue(ObjectName mbean, String attribute) | public BackendTaskQueuesControlMBean | getBackendTaskQueues(String vdb, String backend, String user, String password) Returns a proxy on a BackendTaskQueuesControlMBean. | public ControllerMBean | getControllerProxy() | public Object | getCredentials() Returns the credentials value. | public DataCollectorMBean | getDataCollectorProxy() | public DatabaseBackendMBean | getDatabaseBackendProxy(String vdb, String backend, String user, String password) | public MBeanInfo | getMBeanInfo(ObjectName mbean) | public NotificationListener | getNotificationListener() Returns the notificationListener value. | public ParsingCacheMBean | getParsingCache(String vdb, String user, String password) | public RecoveryLogControlMBean | getRecoveryLog(String vdb, String user, String password) Returns a proxy on a RecoveryLogControlMBean. | public String | getRemoteHostAddress() Returns the remoteHostAddress value. | public String | getRemoteHostPort() Returns the remoteHostPort value. | public String | getRemoteName() | public RequestManagerMBean | getRequestManager(String vdb, String user, String password) Returns a proxy on the RequestManager of the given virtual database. | public VirtualDatabaseMBean | getVirtualDatabaseProxy(String database, String user, String password) | public boolean | isValidConnection() | public Set | listSequoiaMBeans() | public void | reconnect() | public void | setAttributeValue(ObjectName mbean, String attribute, Object value) | public void | setNotificationListener(NotificationListener notificationListener) Sets the notificationListener value. |
RmiJmxClient | public RmiJmxClient(String port, String host, String jmxUser, String jmxPassword) throws IOException(Code) | | Creates a new RmiJmxClient.java object
Parameters: port - the port of the host to connect to Parameters: host - the host name to connect to Parameters: jmxUser - the jmxUser if one, to be authenticated with Parameters: jmxPassword - the jmxPassword if one, to be authenticated with throws: IOException - if cannot connect |
RmiJmxClient | public RmiJmxClient(String url, Object credentials) throws IOException(Code) | | Creates a new RmiJmxClient object
Parameters: url - the jmx connector url Parameters: credentials - to use for the connection throws: IOException - if connect fails |
RmiJmxClient | public RmiJmxClient(String port, String host, Object credentials) throws IOException(Code) | | Creates a new RmiJmxClient.java object
Parameters: port - the port of the host to connect to Parameters: host - the host name to connect to Parameters: credentials - to use for the connection throws: IOException - if connect fails |
connect | public void connect(String port, String host, Object credentials) throws IOException(Code) | | Connect to the MBean server
Parameters: port - the port of the host to connect to Parameters: host - the host name to connect to Parameters: credentials - to use for the connection throws: IOException - if connect fails |
getAbstractScheduler | public AbstractSchedulerControlMBean getAbstractScheduler(String vdb, String user, String password) throws IOException(Code) | | Returns a proxy on the given vdb Scheduler.
Parameters: vdb - name of the virtual database Parameters: user - user login for the virtual database Parameters: password - user password fort the virtual database a proxy on an AbstractScheduler throws: IOException - if an I/O exception occured |
getAttributeValue | public Object getAttributeValue(ObjectName mbean, String attribute) throws Exception(Code) | | Get the value of an attribute on the given mbean
Parameters: mbean - the ObjectName of the mbean to access Parameters: attribute - the attribute name Object being the value returned by the get method throws: Exception - if fails |
getBackendTaskQueues | public BackendTaskQueuesControlMBean getBackendTaskQueues(String vdb, String backend, String user, String password) throws IOException(Code) | | Returns a proxy on a BackendTaskQueuesControlMBean.
Parameters: vdb - name of the virtual database Parameters: backend - name of the backend Parameters: user - user login for the virtual database Parameters: password - user password fort the virtual database a proxy on a BackendTaskQueuesControlMBean throws: IOException - if an I/O exception occured |
getCredentials | public Object getCredentials()(Code) | | Returns the credentials value.
Returns the credentials. |
getNotificationListener | public NotificationListener getNotificationListener()(Code) | | Returns the notificationListener value.
Returns the notificationListener. |
getParsingCache | public ParsingCacheMBean getParsingCache(String vdb, String user, String password) throws IOException(Code) | | Returns a proxy on the given vdb Scheduler parsing cache
Parameters: vdb - name of the virtual database Parameters: user - user login for the virtual database Parameters: password - user password fort the virtual database a proxy on a ParsingCache throws: IOException - if an I/O exception occured |
getRecoveryLog | public RecoveryLogControlMBean getRecoveryLog(String vdb, String user, String password) throws IOException(Code) | | Returns a proxy on a RecoveryLogControlMBean.
Parameters: vdb - name of the virtual databaseTODO: getRecoveryLog definition. Parameters: user - user login for the virtual database Parameters: password - user password fort the virtual database a proxy on a RecoveryLogControlMBean throws: IOException - if an I/O exception occured |
getRemoteHostAddress | public String getRemoteHostAddress()(Code) | | Returns the remoteHostAddress value.
Returns the remoteHostAddress. |
getRemoteHostPort | public String getRemoteHostPort()(Code) | | Returns the remoteHostPort value.
Returns the remoteHostPort. |
getRemoteName | public String getRemoteName()(Code) | | Get the controller name used for jmx connection This is
[hostname]:[jmxServerPort]
remoteHostName+":"+remoteHostPort |
getRequestManager | public RequestManagerMBean getRequestManager(String vdb, String user, String password) throws IOException(Code) | | Returns a proxy on the RequestManager of the given virtual database.
Parameters: vdb - name of the virtual database Parameters: user - user login for the virtual database Parameters: password - user password fort the virtual database a proxy on a RequestManager throws: IOException - if an I/O exception occured |
isValidConnection | public boolean isValidConnection()(Code) | | Test if the connection with the mbean server is still valid
true if it is |
listSequoiaMBeans | public Set listSequoiaMBeans() throws Exception(Code) | | List of all the mbean on the current server
a set of ObjectInstance throws: Exception - if fails |
setAttributeValue | public void setAttributeValue(ObjectName mbean, String attribute, Object value) throws Exception(Code) | | Change an attribute value
Parameters: mbean - the ObjectName of the mbean to access Parameters: attribute - the attribute name Parameters: value - the attribute new value throws: Exception - if fails |
setNotificationListener | public void setNotificationListener(NotificationListener notificationListener)(Code) | | Sets the notificationListener value.
Parameters: notificationListener - The notificationListener to set. |
|
|