Class DefaultChangeLogListener
- java.lang.Object
-
- io.ebeaninternal.server.changelog.DefaultChangeLogListener
-
- All Implemented Interfaces:
ChangeLogListener
,Plugin
public class DefaultChangeLogListener extends Object implements ChangeLogListener, Plugin
Simply logs the change sets in JSON form to logger namedio.ebean.ChangeLog
.
-
-
Constructor Summary
Constructors Constructor Description DefaultChangeLogListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
configure(SpiServer server)
Configure the underlying JSON handler.void
log(ChangeSet changeSet)
Log the batch of changes.void
online(boolean online)
Called just before the server starts indicating if it is coming up in online mode.void
shutdown()
Called when the server is shutting down.
-
-
-
Constructor Detail
-
DefaultChangeLogListener
public DefaultChangeLogListener()
-
-
Method Detail
-
online
public void online(boolean online)
Description copied from interface:Plugin
Called just before the server starts indicating if it is coming up in online mode.
-
shutdown
public void shutdown()
Description copied from interface:Plugin
Called when the server is shutting down.Plugins should shutdown any resources they are using cleanly.
-
log
public void log(ChangeSet changeSet)
Description copied from interface:ChangeLogListener
Log the batch of changes.For small transactions this will be all the changes in the transaction. For larger/longer transactions this can be a 'batch' of changes made and the actual transaction has not yet committed or rolled back and a later change set will contain the final changeSet for the transaction with it's final status of
COMMITTED
orROLLBACK
.- Specified by:
log
in interfaceChangeLogListener
-
-