|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ow2.jasmine.monitoring.eventswitch.connectors.EJB3Connector<org.ow2.jasmine.monitoring.eventswitch.beans.JasmineEventSLBRemote>
org.ow2.jasmine.monitoring.eventswitch.extractor.JasmineEventDataExtractor
public class JasmineEventDataExtractor
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 mbeancmd's.
| Constructor Summary | |
|---|---|
JasmineEventDataExtractor()
|
|
| Method Summary | |
|---|---|
protected org.ow2.jasmine.monitoring.eventswitch.beans.JasmineEventEB[] |
getEvents(java.lang.String[] args)
Extracts events, @see JasmineEventDataExtractor#main(String[]) |
protected java.util.Date |
getTime(java.lang.String s)
Parses a given time using the formatter, defaults to format "long". |
static void |
main(java.lang.String[] args)
Connects to the given JASMINe Event stateless bean, requests data that satisfies the given constraints an prints it back on stdio. |
protected void |
printEvents(org.ow2.jasmine.monitoring.eventswitch.beans.JasmineEventEB[] events)
Puts on stdio an array of events. |
| Methods inherited from class org.ow2.jasmine.monitoring.eventswitch.connectors.EJB3Connector |
|---|
connect, disconnect, getBean, setConfiguration |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JasmineEventDataExtractor()
| Method Detail |
|---|
public static void main(java.lang.String[] args)
throws javax.naming.NamingException,
java.text.ParseException,
java.io.IOException
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, MBeanCmd)
- 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.
javax.naming.NamingException - If there's a problem resolving the bean.
java.text.ParseException - If there's a problem parsing times.
java.io.IOException - On configuration file failure.
protected org.ow2.jasmine.monitoring.eventswitch.beans.JasmineEventEB[] getEvents(java.lang.String[] args)
throws javax.naming.NamingException,
java.text.ParseException,
java.io.IOException
javax.naming.NamingException
java.text.ParseException
java.io.IOExceptionprotected void printEvents(org.ow2.jasmine.monitoring.eventswitch.beans.JasmineEventEB[] events)
events - Events to put on stdio.
protected java.util.Date getTime(java.lang.String s)
throws java.text.ParseException
s - Time to parse, can be null (in that case return is null).
java.text.ParseException - If parsing fails.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||