|
WebObjects 5.2.3 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.webobjects.eocontrol.EOEvent com.webobjects.appserver.WOEvent
WOEvent is a subclass of EOEvent (defined in the EOControl framework) that serves as the parent class for objects that gather information –such as duration –about various operations in WebObjects. You can see the results of this information gathering in your web browser by accessing a special "event display" page, and you can configure how the results are displayed by accessing a special "event setup" page. Both of these are accessed through special direct actions (WOEventDisplay and WOEventSetup, respectively). For example, if you've been running the CreatePlot example, the following URL will access the event display page
http://localhost/cgi-bin/WebObjects/CreatePlot.woa/wa/WOEventDisplay
This goes through a password protected login, and the password must be specified using the
EOEventLoggingPassword
property.
WOEvent adds knowledge of pages and components to the EOEvent class. Events
that are subclasses of WOEvent can be grouped or aggregated by page or by
component. Although you can subclass WOEvent, in most cases the following
private subclasses will be adequate for analyzing WebObjects applications:
Event Group | Logged Events |
WOApplication Event | pageWithName |
WOAssociation Event | valueForKeyPath , takeValueForKeyPath |
WOComponent Event | takeValuesFromRequest , invokeAction ,
appendToResponse , awake , sleep |
WOComponentReference Event | pushComponent |
Field Summary | |
static int |
AssociationSignature
Integer representing an association signature. |
static int |
ComponentSignature
Integer representing a WOComponent name signature. |
static int |
PageSignature
Integer representing a page name signature. |
Fields inherited from class com.webobjects.eocontrol.EOEvent |
BasicEventSignature, EventGroupName |
Constructor Summary | |
WOEvent()
|
Method Summary | |
String |
comment()
Special information on the event. |
void |
setComponentName(String aComponentName)
Sets the event's component name to aComponentName . |
void |
setPageName(String aPageName)
Sets the event's page name to aPageName . |
String |
signatureOfType(int aType)
The returned signatures are used to group or aggregate data on the WOEventDisplay page. |
String |
title()
Required for proper functioning of the event logging display. |
String |
toString()
Returns a String that includes the receiver's title, comment, and duration or start date (whichever is appropriate). |
Methods inherited from class com.webobjects.eocontrol.EOEvent |
aggregateEvents, classDescription, compare, description, displayComponentName, duration, durationWithoutSubevents, eventTypeDescriptions, groupEvents, info, markAtomicWithInfo, markEnd, markStartWithInfo, parentEvent, setInfo, setType, startDate, subevents, type |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int AssociationSignature
signatureOfType(int)
,
Constant Field Valuespublic static final int ComponentSignature
signatureOfType(int)
,
Constant Field Valuespublic static final int PageSignature
signatureOfType(int)
,
Constant Field ValuesConstructor Detail |
public WOEvent()
Method Detail |
public String comment()
comment
in class EOEvent
EOEvent.info()
public void setComponentName(String aComponentName)
aComponentName
. Event
data can be grouped or aggregated according to the component name.
aComponentName
- the specified name of the WOComponentpublic void setPageName(String aPageName)
aPageName
. Event data can be
grouped or aggregated according to the page name.
aPageName
- name of the the event's pagepublic String signatureOfType(int aType)
Type | Signature |
EOBasicEventSignature | A combination of the event's type and the component name |
WOComponentSignature | The component name |
WOPageSignature | The page name |
WOAssociationSignature | varies based upon the context |
Override this method if you are creating a custom subclass of WOEvent and need to provide signatures for additional event types.
signatureOfType
in class EOEvent
aType
- typecode of the receiver for the signature to be returned
EOEvent.BasicEventSignature
,
EOEvent.aggregateEvents(NSArray, int)
,
EOEvent.groupEvents(NSArray, int)
public String title()
title
in class EOEvent
EOEvent.type()
,
EOEvent.eventTypeDescriptions(Class)
public String toString()
EOEvent
toString
in class EOEvent
|
Last updated Thu Oct 21 15:04:16 PDT 2004. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |