Search in sources :

Example 1 with EOEvent

use of com.webobjects.eocontrol.EOEvent in project wonder-slim by undur.

the class WOEventDisplayPage method webEventDuration.

public int webEventDuration() {
    int i, n, time;
    _cacheWebEofEvents();
    n = (webEvents != null) ? webEvents.count() : 0;
    for (i = 0, time = 0; i < n; i++) {
        EOEvent e = (EOEvent) webEvents.objectAtIndex(i);
        if (e instanceof WOEvent)
            time = time + (int) e.durationWithoutSubevents();
    }
    return time;
}
Also used : EOEvent(com.webobjects.eocontrol.EOEvent) WOEvent(com.webobjects.appserver.WOEvent)

Example 2 with EOEvent

use of com.webobjects.eocontrol.EOEvent in project wonder-slim by undur.

the class WOEventDisplayPage method _cacheWebEofEvents.

public void _cacheWebEofEvents() {
    if (webEvents != null)
        return;
    NSArray allCenters = EOEventCenter.allEventsForAllCenters();
    int halfCount = allCenters.count() / 2;
    webEvents = new NSMutableArray(halfCount);
    eofEvents = new NSMutableArray(halfCount);
    Enumeration anEnumerator = allCenters.objectEnumerator();
    while (anEnumerator.hasMoreElements()) {
        EOEvent e = (EOEvent) anEnumerator.nextElement();
        if (e instanceof WOEvent)
            webEvents.addObject(e);
        else
            eofEvents.addObject(e);
    }
}
Also used : EOEvent(com.webobjects.eocontrol.EOEvent) WOEvent(com.webobjects.appserver.WOEvent) Enumeration(java.util.Enumeration) NSArray(com.webobjects.foundation.NSArray) NSMutableArray(com.webobjects.foundation.NSMutableArray)

Example 3 with EOEvent

use of com.webobjects.eocontrol.EOEvent in project wonder-slim by undur.

the class WOAggregateEventRow method displayComponentName.

public String displayComponentName() {
    WOEventDisplayPage ctr;
    int level, group;
    EOEvent obj;
    obj = object();
    ctr = controller();
    level = ctr.displayLevelForEvent(obj);
    group = ctr.groupTagForDisplayLevel(level);
    if (group != -1)
        return "WOEventRow";
    else
        return event().displayComponentName();
}
Also used : EOEvent(com.webobjects.eocontrol.EOEvent)

Example 4 with EOEvent

use of com.webobjects.eocontrol.EOEvent in project wonder-slim by undur.

the class WOEventDisplayPage method topmostDurationValue.

public long topmostDurationValue() {
    NSArray roots;
    roots = rootEventList();
    if (roots == null || (roots.count() == 0))
        return 0;
    else
        return durationOfEvent((EOEvent) roots.objectAtIndex(0));
}
Also used : EOEvent(com.webobjects.eocontrol.EOEvent) NSArray(com.webobjects.foundation.NSArray)

Example 5 with EOEvent

use of com.webobjects.eocontrol.EOEvent in project wonder-slim by undur.

the class WOEventDisplayPage method eofEventDuration.

public int eofEventDuration() {
    int i, n, time;
    _cacheWebEofEvents();
    n = (eofEvents != null) ? eofEvents.count() : 0;
    for (i = 0, time = 0; i < n; i++) {
        EOEvent e = (EOEvent) eofEvents.objectAtIndex(i);
        if (!(e instanceof WOEvent))
            time = time + (int) e.durationWithoutSubevents();
    }
    return time;
}
Also used : EOEvent(com.webobjects.eocontrol.EOEvent) WOEvent(com.webobjects.appserver.WOEvent)

Aggregations

EOEvent (com.webobjects.eocontrol.EOEvent)5 WOEvent (com.webobjects.appserver.WOEvent)3 NSArray (com.webobjects.foundation.NSArray)2 NSMutableArray (com.webobjects.foundation.NSMutableArray)1 Enumeration (java.util.Enumeration)1