org.ow2.jasmine.monitoring.eventswitch.extractor
Class JasmineEventDataExtractor
java.lang.Object
org.ow2.jasmine.monitoring.eventswitch.connectors.EJB3Connector<JasmineEventSLBRemote>
org.ow2.jasmine.monitoring.common.util.extractor.AbstractJasmineEventDataExtractor
org.ow2.jasmine.monitoring.eventswitch.extractor.JasmineEventDataExtractor
- All Implemented Interfaces:
- IJasmineEventDataExtractor
public class JasmineEventDataExtractor
- extends AbstractJasmineEventDataExtractor
The JASMINe Event Data Extractor is an executable utility class. It will
connect to a given JASMINe Event stateless bean, fetch information and print
it back on stdio using the CSV similar to jasmineProbe's.
|
Method Summary |
static void |
main(String[] args)
Connects to the given JASMINe Event stateless bean, requests
data that satisfies the given constraints an prints it back on stdio. |
void |
printEvents(org.ow2.jasmine.event.beans.JasmineEventEB[] events)
Puts on stdio an array of events. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JasmineEventDataExtractor
public JasmineEventDataExtractor()
main
public static void main(String[] args)
throws NamingException,
ParseException,
IOException
- Connects to the given JASMINe Event stateless bean, requests
data that satisfies the given constraints an prints it back on stdio.
- Parameters:
args - Accepts three types of variables:
- Any number of string constants defined in Context.
Example: to set the Context.INITIAL_CONTEXT_FACTORY
to factory, use the option:
-Context.INITIAL_CONTEXT_FACTORY factory
- The "Wrapper.LOOKUP_BEAN" option, the value of which
is looked up on the server and set as remote bean.
- The "timeformat" option, which defines the time
format when defining start and end times. If none
specified, it uses the "long" format
(seconds since 01/01/1970).
- Filtering options. These are:
- domain: server domain
- server: server name
- source: source (for example, JProbe)
- probe: probe name
- value: probe value
- startTimestamp: time to start at
- endTimestamp: time to end at
If you don't need a certain filtering, don't set it.
- Throws:
NamingException - If there's a problem resolving the bean.
ParseException - If there's a problem parsing times.
IOException - On configuration file failure.
printEvents
public void printEvents(org.ow2.jasmine.event.beans.JasmineEventEB[] events)
- Puts on stdio an array of events.
- Parameters:
events - Events to put on stdio.
Copyright © 2012 OW2 Consortium. All Rights Reserved.