|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ibm.events.samples.subscriber.SampleEventSubscriber
public class SampleEventSubscriber
This class provides sample code for an event subscriber.
| Constructor Summary | |
|---|---|
SampleEventSubscriber()
Construct the sample event subscriber |
|
| Method Summary | |
|---|---|
void |
displayUsage()
Display 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 subscriber |
void |
run()
Run the sample event subscriber |
void |
setEventGroup(java.lang.String eventGroup)
Sets the event group used for event subscription |
void |
setEventSelector(java.lang.String eventSelector)
Sets the event selector used for event subscription |
void |
setIndex(int index)
Set the distribution queue index |
void |
setNumber(int number)
Set the number of events to receive from subscription |
void |
setPrintEvents(boolean printEvents)
Set whether events should be printed or not |
void |
setProviderUrl(java.lang.String providerUrl)
Set the JNDI URL provider. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SampleEventSubscriber()
| Method Detail |
|---|
public void setEventGroup(java.lang.String eventGroup)
eventGroup - The event group to use for event subscriptionpublic void setEventSelector(java.lang.String eventSelector)
eventSelector - The event selector to use for event subscriptionpublic void setIndex(int index)
index - The index of the distribution queue to listen onpublic void setNumber(int number)
number - The number of events to receive from subscriptionpublic void setPrintEvents(boolean printEvents)
printEvents - Whether to print out events or notpublic void setProviderUrl(java.lang.String providerUrl)
providerUrl - The JNDI URL providerpublic void displayUsage()
public static void main(java.lang.String[] args)
throws java.lang.Exception
args - Array arguments passed form the command line
java.lang.Exception - If there is an error processing commandspublic void run()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||