Examples of EventDefinition


Examples of org.rhq.core.domain.event.EventDefinition

    public void testFindEventsByCriteria() {
        executeInTransaction(new TransactionCallback() {
            @Override
            public void execute() throws Exception {
                Resource resource = SessionTestHelper.createNewResource(em, "fake resource");
                EventDefinition eventDefinition = createEventDefinition(resource);
                em.persist(eventDefinition);
                EventSource eventSource = createEventSource(eventDefinition, resource);
                em.persist(eventSource);
                Set<Event> events = newEventSet();
                for (int i = 0; i < 4; i++) {
View Full Code Here

Examples of org.rhq.core.domain.event.EventDefinition

            }
        });
    }

    private EventDefinition createEventDefinition(Resource resource) {
        return new EventDefinition(resource.getResourceType(), "fake event definition");
    }
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.