| java.lang.Object org.continuent.sequoia.controller.jmx.RmiConnector
RmiConnector | public class RmiConnector (Code) | | This class defines a RmiConnector
author: Marc Wick version: 1.0 |
RmiConnector | public RmiConnector(String controllerName, String hostName, int port, JMXAuthenticator authenticator, SSLConfiguration sslConfig) throws JmxException(Code) | | Creates a new RmiConnector.java object
Parameters: controllerName - for reference when sending notification Parameters: hostName - the name of the host we bind to, if null the defaultInetAddress.getLocalHost().getHostName() is used Parameters: port - the port the rmi registry is listening on Parameters: authenticator - the jmxauthenticator used for the connection Parameters: sslConfig - ssl configuration throws: JmxException - the name of the localhost could not be determined |
broadcastNotification | public static void broadcastNotification(AbstractStandardMBean mbean, String type, String priority, String description, Hashtable data)(Code) | | Broadcast a jmx notification to any client connected to any RmiConnector
registered in the static list. The method is static because it is sending
notifications to all rmi connectors.
Parameters: mbean - the mbean that is generating the notification Parameters: type - the type as seen in SequoiaNotificationList Parameters: priority - notification level as seen inSequoiaNotificationList Parameters: description - a string description of the notification Parameters: data - a hashtable of data that can be used to give more informationon the notification |
getAuthenticator | public JMXAuthenticator getAuthenticator()(Code) | | Returns the authenticator value.
Returns the authenticator. |
getControllerName | public String getControllerName()(Code) | | Returns the controllerName. |
getHostName | public String getHostName()(Code) | | Returns the hostName. |
getPort | public int getPort()(Code) | | Returns the port value.
Returns the port. |
getRmiConnectors | public static List getRmiConnectors()(Code) | | Returns a list of rmiConnectors .
Returns list of RmiConnector. |
sendNotification | public synchronized void sendNotification(AbstractStandardMBean mbean, String type, String priority, String description, Hashtable data)(Code) | | This method sends notification to all client registered to an instance of
the RmiConnector class. The JmxNotification
class is used here to create an object with all the information gathered in
parameters, and then is serialized in xml for interaction on the client
side.
See Also: JmxNotification Parameters: mbean - the mbean that is generating the notification Parameters: type - the type as seen in SequoiaNotificationList Parameters: priority - notification level as seen inSequoiaNotificationList Parameters: description - a string description of the notification Parameters: data - a hashtable of data that can be used to give more informationon the notification |
setAuthenticator | public void setAuthenticator(JMXAuthenticator authenticator)(Code) | | Sets the authenticator value.
Parameters: authenticator - The authenticator to set. |
setPort | public void setPort(int port)(Code) | | Sets the port value.
Parameters: port - The port to set. |
setSslConfig | public void setSslConfig(SSLConfiguration sslConfig)(Code) | | Sets the sslConfig value.
Parameters: sslConfig - The sslConfig to set. |
|
|