Package org.rhq.core.domain.event.composite

Examples of org.rhq.core.domain.event.composite.EventComposite


        criteria.addFilterId(eventId);
        GWTServiceLookup.getEventService().findEventCompositesByCriteria(criteria,
            new AsyncCallback<PageList<EventComposite>>() {
                @Override
                public void onSuccess(PageList<EventComposite> result) {
                    EventComposite composite = result.get(0);
                    show(composite);
                }

                @Override
                public void onFailure(Throwable caught) {
View Full Code Here


        EventManagerLocal eventManager = LookupUtil.getEventManager();
        Subject subject = WebUtility.getSubject(request);

        EventsForm eForm = (EventsForm) form;

        EventComposite comp = eventManager.getEventDetailForEventId(subject, eventId);

        StringBuffer buf = new StringBuffer();
        buf.append("<div title=\"Details for Event " + eventId + "\">");
        buf.append("<b>Source: </b>");
        buf.append(htmlFormat(comp.getSourceLocation(), eForm.getSourceFilter()));
        buf.append("<p/>\n");
        buf.append("<b>Full detail: </b><br/>\n");
        buf.append(htmlFormat(comp.getEventDetail(), eForm.getSearchString()));
        buf.append("</div>");

        Writer w = response.getWriter();
        w.append(buf.toString());
        w.flush();
View Full Code Here

                    html.append("</li>");
                }
                html.append("</ul>");

                if (events.getTotalSize() > MAX_EVENTS_PER_DOT) {
                    EventComposite event = events.get(events.size() - 1); // take the last one to initialize the list
                    html.append("<p/>");
                    createLinkForResource(mode, resourceId, groupId, parent, type, html, event, res
                        .getMessage("resource.common.monitor.text.events.MoreEvents"));
                    html.append("<p/>");
                }
View Full Code Here

                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(),
                    event.getId());
                assertNotNull(eventDetail);
                assertEquals(resource.getName(), eventDetail.getResourceName());
                assertEquals(event.getSourceLocation(), eventDetail.getSourceLocation());
                assertEquals(event.getSeverity(), eventDetail.getSeverity());
            }
        });
    }
View Full Code Here

TOP

Related Classes of org.rhq.core.domain.event.composite.EventComposite

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.