Class LogModelSkeleton
java.lang.Object
de.mid.innovator.m2msdk.model.log.LogModelSkeleton
- All Implemented Interfaces:
LogModelInterface,Serializable,Remote
Interface to access log model.
- Version:
- 10.1.1
- Author:
- jmback
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAppend a new log event to the log model.Archive all prepared events.voidcleanEvent(LogLevel level) Clean all archived log events with a specific level.voidEnd the current log model and finalize all included objects.org.jdom2.DocumentGet all archived change messages as a XML file content.org.jdom2.DocumentGet all archived warnings, errors and fatal error messages as a XML file content.getLastLogEvent(LogLevel level) Get all archived log events of a specific level since last call of this method.getLogEvent(LogLevel level) Get all archived log events of a specific level.booleanHas there been an abort exception thrown?booleanisLevelLogged(LogLevel iLevel) Check if messages of the given log level are logged.voidPrepare all new events.
-
Constructor Details
-
LogModelSkeleton
Constructor- Parameters:
iSession-
-
-
Method Details
-
append
Description copied from interface:LogModelInterfaceAppend a new log event to the log model.- Specified by:
appendin interfaceLogModelInterface- Parameters:
level- Log levelobj- Message object- Throws:
RemoteException
-
isLevelLogged
Description copied from interface:LogModelInterfaceCheck if messages of the given log level are logged.- Specified by:
isLevelLoggedin interfaceLogModelInterface- Parameters:
iLevel- log level to check- Returns:
- true, if the log level is equal or greater than the log level set by option "LogLevel".
- Throws:
RemoteException
-
getLogEvent
Description copied from interface:LogModelInterfaceGet all archived log events of a specific level.- Specified by:
getLogEventin interfaceLogModelInterface- Parameters:
level- Log level- Returns:
- List of log events
- Throws:
RemoteException
-
hasAborted
Description copied from interface:LogModelInterfaceHas there been an abort exception thrown?- Specified by:
hasAbortedin interfaceLogModelInterface- Returns:
- True, if there has been an abort exception thrown.
- Throws:
RemoteException
-
cleanEvent
Description copied from interface:LogModelInterfaceClean all archived log events with a specific level.- Specified by:
cleanEventin interfaceLogModelInterface- Parameters:
level- Log level- Throws:
RemoteException
-
getChangeAsXML
Description copied from interface:LogModelInterfaceGet all archived change messages as a XML file content.- Specified by:
getChangeAsXMLin interfaceLogModelInterface- Returns:
- all changes as a XML string
- Throws:
RemoteException
-
getErrorAsXML
Description copied from interface:LogModelInterfaceGet all archived warnings, errors and fatal error messages as a XML file content.- Specified by:
getErrorAsXMLin interfaceLogModelInterface- Returns:
- all changes as a XML string
- Throws:
RemoteException
-
archiveEvents
Description copied from interface:LogModelInterfaceArchive all prepared events. An archived event is also available to be visualized to the user.- Specified by:
archiveEventsin interfaceLogModelInterface- Returns:
- List of prepared log events
- Throws:
RemoteException
-
prepareEvents
Description copied from interface:LogModelInterfacePrepare all new events. Since the preparation accesses the model element model, this call has to be synchronized with the model element model access. Preparation means that a prepared message is no longer related to the model element model, e.g. contains only strings. It it now ready to be serialized and archived.- Specified by:
prepareEventsin interfaceLogModelInterface- Throws:
RemoteException
-
finalizeSession
Description copied from interface:LogModelInterfaceEnd the current log model and finalize all included objects. Close files, streams, etc.- Specified by:
finalizeSessionin interfaceLogModelInterface- Throws:
RemoteException
-
getLastLogEvent
public ArrayList<LogEventInterface> getLastLogEvent(LogLevel level) throws RemoteException, M2MException Description copied from interface:LogModelInterfaceGet all archived log events of a specific level since last call of this method.- Specified by:
getLastLogEventin interfaceLogModelInterface- Parameters:
level- Log level- Returns:
- List of log events
- Throws:
RemoteExceptionM2MException
-