public class EventLog extends Object implements IDOMStorable
The log contains zero or more ICE events which can be of type
ICEEventMsg or ICEEventInfo. The event log can be
stored into or read from a DOM. Thus, it is possible to store the log
persistenly to a file or read it from that file.
Copyright (c) SAP AG
ICEEvents| Constructor and Description |
|---|
EventLog()
Creates a new (empty) event log.
|
EventLog(Document document)
Creates a new event log and initializes it with the ICE events stored in the
specified DOM document.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addEvent(ICEEventInfo event)
Adds an event to the event log.
|
void |
addEvent(ICEEventMsg event)
Adds an event to the event log.
|
void |
addEvents(Document document)
Adds ICE events specified in a DOM document to this event log.
|
Collection |
getEvents()
Gets all ICE events in the event log.
|
ICEEventLog |
getICEEventLog()
Gets an
ICEEventLog representation of this event log for
sending to another ICE server. |
Node |
store(Document document)
Stores this event log into the specified DOM document.
|
public EventLog()
public EventLog(Document document)
null as an argument for document
will cause an exception.document - the DOM document containing the events to read inpublic Collection getEvents()
Collection containing all events (objects of type
ICEEventMsg, ICEEventInfo or mixed)public ICEEventLog getICEEventLog()
ICEEventLog representation of this event log for
sending to another ICE server.ICEEventLog representing this event logpublic void addEvents(Document document)
null as an argument for document
will cause an exception.document - the DOM document containing the events (objects of type
ICEEventMsg, ICEEventInfo or mixed)public void addEvent(ICEEventMsg event)
null as an argument for event
will cause an exception.event - an ICEEventMsg event that should be added to the event logpublic void addEvent(ICEEventInfo event)
null as an argument for event
will cause an exception.event - an ICEEventInfo event that should be added to the event logpublic Node store(Document document)
This method will create an event-log node on the root level and add all
events as child nodes. The document need not be empty when calling this
method.
Passing null as an argument for document
will cause an exception.
store in interface IDOMStorabledocument - the DOM document to store this event log to| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] KMC-CM
|
[sap.com] tc/km/frwk
|
api
|
EP-KM-CM
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
Copyright 2021 SAP SE Complete Copyright Notice