Package org.rhq.core.domain.event

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


            }
        });
    }

    private EventDefinition createEventDefinition(Resource resource) {
        return new EventDefinition(resource.getResourceType(), "fake event definition");
    }
View Full Code Here

TOP

Related Classes of org.rhq.core.domain.event.EventDefinition

Copyright © 2018 www.massapicom. 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.