385N/A * See LICENSE.txt included in this distribution for the specific
385N/A * file and include the License file at LICENSE.txt.
385N/A * @throws javax.management.MalformedObjectNameException if the JMX object name is not correct
385N/A public AgentConnection(String url) throws MalformedURLException, IOException, MalformedObjectNameException {
653N/A if (!isConnected()) {
588N/A private void handleObjectName(StringBuilder sb, Notification notification, Object handback) {
588N/A actionListener.actionPerformed(new ActionEvent(this, ActionEvent.ACTION_PERFORMED, "OpenGrok fileevent"));
385N/A logger.fine("Registering listener: " + this.getClass().getName() + " for ObjectName: " + objName);
385N/A listenerRegistered = true;
385N/A boolean notconnected = true;
385N/A while (notconnected) {
385N/A notconnected = false;
385N/A notconnected = true;
385N/A logger.fine("Unregistering listener: " + this.getClass().getName() + " for ObjectName: " + objName);
385N/A listenerRegistered = false;