Kieker 1.4

kieker.analysis.reader.jmx
Class JMXReader

java.lang.Object
  extended by kieker.analysis.reader.AbstractMonitoringReader
      extended by kieker.analysis.reader.jmx.JMXReader
All Implemented Interfaces:
IMonitoringReader

public final class JMXReader
extends AbstractMonitoringReader

Author:
Jan Waller

Constructor Summary
JMXReader()
          Constructor for JMXReader.
JMXReader(boolean silentreconnect)
           
 
Method Summary
 boolean init(String initString)
          Expects an initString of the following format: "property1@value1|property2@value2|..." known properties are server, port, serviceURL, domain, logname either port or serviceURL are mandatory
 boolean read()
          Starts the reader.
 void terminate()
          Initiates a termination of the reader.
 
Methods inherited from class kieker.analysis.reader.AbstractMonitoringReader
addRecordReceiver
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JMXReader

public JMXReader()
Constructor for JMXReader. Requires a subsequent call to the init method in order to specify the input directory using the parameters


JMXReader

public JMXReader(boolean silentreconnect)
Method Detail

init

public final boolean init(String initString)
Expects an initString of the following format: "property1@value1|property2@value2|..." known properties are server, port, serviceURL, domain, logname either port or serviceURL are mandatory

Parameters:
initString - the initialization string
Returns:
true if the initialization was successful; false if an error occurred

terminate

public void terminate()
Description copied from interface: IMonitoringReader
Initiates a termination of the reader. This method is only used by the framework and should not be called manually to register a receiver. Use the method AnalysisController.terminate() instead. After receiving this notification, the reader should terminate its IMonitoringReader.read() method.


read

public final boolean read()
Description copied from interface: IMonitoringReader
Starts the reader. This method is intended to be a blocking operation, i.e., it is assumed that reading has finished before this method returns. The method should indicate an error by the return value false. In asynchronous scenarios, the IMonitoringReader.terminate() method can be used to initiate the termination of this method.

Returns:
true if reading was successful; false if an error occurred

Kieker 1.4

Copyright 2011 the Kieker Project, http://kieker.sourceforge.net