Examples of EventDescriptor


Examples of org.rioproject.event.EventDescriptor

     * Helper method to return the EventDescriptor for this event
     *
     * @return The EventDescriptor for this event
     */
    public static EventDescriptor getEventDescriptor(){
        return(new EventDescriptor(SLAThresholdEvent.class, ID));
    }
View Full Code Here

Examples of org.rioproject.event.EventDescriptor

                            logger.debug(String.format("EventProducer discovered %s for EventDescriptor %s",
                                                      name, eventDescriptor.toString()));
                        }
                    }
                    if(eventConsumer==null) {
                        final EventDescriptor eventDescriptorToUse;
                        if(eventDescriptor.eventID==null) {
                            eventDescriptorToUse = getEventDescriptor(item.attributeSets, eventDescriptor);
                        } else {
                            eventDescriptorToUse = eventDescriptor;
                        }
View Full Code Here

Examples of org.rioproject.event.EventDescriptor

            if(eventConsumer!=null)
                eventConsumer.terminate();
        }

        EventDescriptor getEventDescriptor(Entry[] attributes, EventDescriptor toMatch) {
            EventDescriptor matchedDescriptor = null;
            for(Entry entry : attributes) {
                if(entry instanceof EventDescriptor) {
                    if(((EventDescriptor)entry).matches(toMatch)) {
                        matchedDescriptor = (EventDescriptor)entry;
                        break;
View Full Code Here

Examples of org.rioproject.event.EventDescriptor

     * Helper method to return the EventDescriptor for this event
     *
     * @return The EventDescriptor for this event
     */
    public static EventDescriptor getEventDescriptor(){
        return(new EventDescriptor(ProvisionMonitorEvent.class, ID));
    }
View Full Code Here

Examples of org.rioproject.event.EventDescriptor

    public Throwable getThrowable() {
        return (exception);
    }

    public static EventDescriptor getEventDescriptor() {
        return new EventDescriptor(ProvisionFailureEvent.class, ID);
    }
View Full Code Here

Examples of org.rioproject.event.EventDescriptor

            } else {
                loader = new URLClassLoader(urls, Thread.currentThread().getContextClassLoader());
            }
            for (String className : classNames) {
                Class<?> cl = loader.loadClass(className);
                eventDescriptors.add(new EventDescriptor(cl, getID(cl)));
            }
        } else {
            for (String className : classNames) {
                Class<?> cl = Thread.currentThread().getContextClassLoader().loadClass(className);
                eventDescriptors.add(new EventDescriptor(cl, getID(cl)));
            }
        }
        return eventDescriptors;
    }
View Full Code Here

Examples of org.rioproject.event.EventDescriptor

     * Helper method to return the EventDescriptor for this event
     *
     * @return The EventDescriptor for this event
     */
    public static EventDescriptor getEventDescriptor() {
        return (new EventDescriptor(HelloEvent.class, ID));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.