|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.events.samples.source.SampleEventSource
public class SampleEventSource
This class provides sample code for an event source.
Constructor Summary | |
---|---|
SampleEventSource()
Constructs the sample event source |
Method Summary | |
---|---|
void |
displayUsage()
Displays the command-line usage for this sample. |
static void |
main(java.lang.String[] args)
Main method that will take command line arguments and run the event source |
void |
run()
Runs the sample event source. |
void |
setBatchSize(int batchSize)
Sets the number of events to send in a batch |
void |
setDelay(long delay)
Sets the delay between events being submitted |
void |
setEmitterProfile(java.lang.String emitterProfile)
Set the emitter profile. |
void |
setEventFactoryJndiName(java.lang.String eventFactoryJndiName)
Set the event factory JNDI name. |
void |
setJMSPassword(java.lang.String password)
Set the JNDI URL provider. |
void |
setJMSUsername(java.lang.String username)
|
void |
setMessage(java.lang.String message)
Sets the message of the event |
void |
setNumber(int number)
Sets the number of events to submit |
void |
setNumberThreads(int numberThreads)
DOCUMENT ME! |
void |
setProviderUrl(java.lang.String providerUrl)
Sets the JNDI URL provider. |
void |
setSeverity(short severity)
Sets the severity of the event |
void |
setXmlEvent(java.lang.String xmlEvent)
Sets the event that was read from the XML file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SampleEventSource()
Method Detail |
---|
public void setBatchSize(int batchSize)
batchSize
- The size of the batchpublic void setDelay(long delay)
delay
- The delay in millisecondspublic void setEmitterProfile(java.lang.String emitterProfile)
emitterProfile
- The name of the emitter profilepublic void setEventFactoryJndiName(java.lang.String eventFactoryJndiName)
eventFactoryJndiName
- The JNDI name for the event factorypublic void setJMSPassword(java.lang.String password)
password
- The JNDI URL providerpublic void setJMSUsername(java.lang.String username)
public void setMessage(java.lang.String message)
message
- The message to use in the eventpublic void setNumber(int number)
number
- The number of events to submitpublic void setNumberThreads(int numberThreads)
numberThreads
- DOCUMENT ME!public void setProviderUrl(java.lang.String providerUrl)
providerUrl
- The JNDI URL providerpublic void setSeverity(short severity)
severity
- The severity of the eventpublic void displayUsage()
public static void main(java.lang.String[] args) throws java.lang.Exception
args
- Array arguements passed form the command line
java.lang.Exception
- DOCUMENT ME!public void setXmlEvent(java.lang.String xmlEvent)
xmlEvent
- The xml file where the event exisits.public void run()
run
in interface java.lang.Runnable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |