Package org.rhq.core.domain.event

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


            @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);
                Event event = createEvent(eventSource, EventSeverity.FATAL);
                em.persist(event);
                em.flush();
                EventComposite eventDetail = eventManager.getEventDetailForEventId(subjectManager.getOverlord(),
View Full Code Here


            @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);
                int eventCount = 7;
                for (int i = 0; i < eventCount; i++) {
                    Event event = createEvent(eventSource, EventSeverity.FATAL);
                    em.persist(event);
View Full Code Here

                Role role = SessionTestHelper.createNewRoleForSubject(em, subject, "fake role");
                ResourceGroup resourceGroup = SessionTestHelper.createNewCompatibleGroupForRole(em, role, "fake group");
                Resource resource = SessionTestHelper.createNewResourceForGroup(em, resourceGroup, "fake resource");
                EventDefinition eventDefinition = createEventDefinition(resource);
                em.persist(eventDefinition);
                EventSource eventSource = createEventSource(eventDefinition, resource);
                em.persist(eventSource);
                int eventCount = 7;
                for (int i = 0; i < eventCount; i++) {
                    Event event = createEvent(eventSource, EventSeverity.FATAL);
                    em.persist(event);
View Full Code Here

            @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);
                int fatalEventCount = 7;
                for (int i = 0; i < fatalEventCount; i++) {
                    Event event = createEvent(eventSource, EventSeverity.FATAL);
                    em.persist(event);
View Full Code Here

                Role role = SessionTestHelper.createNewRoleForSubject(em, subject, "fake role");
                ResourceGroup resourceGroup = SessionTestHelper.createNewCompatibleGroupForRole(em, role, "fake group");
                Resource resource = SessionTestHelper.createNewResourceForGroup(em, resourceGroup, "fake resource");
                EventDefinition eventDefinition = createEventDefinition(resource);
                em.persist(eventDefinition);
                EventSource eventSource = createEventSource(eventDefinition, resource);
                em.persist(eventSource);
                int fatalEventCount = 7;
                for (int i = 0; i < fatalEventCount; i++) {
                    Event event = createEvent(eventSource, EventSeverity.FATAL);
                    em.persist(event);
View Full Code Here

            @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++) {
                    Event event = createEvent(eventSource, EventSeverity.FATAL);
                    events.add(event);
View Full Code Here

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

    private EventSource createEventSource(EventDefinition eventDefinition, Resource resource) {
        return new EventSource("fake source location", eventDefinition, resource);
    }
View Full Code Here

TOP

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

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.