103
101
class ICommand(Interface):
104
102
"""A serializable command which interacts with a journaled service."""
107
105
"""Run the command and return result."""
110
108
class ICommandLog(Interface):
111
109
"""Interface for command log."""
114
112
"""Add a command and its run time to the log.
116
114
@return: Deferred of command index.
120
118
"""Return index of last command that was logged."""
123
121
"""Return commands who's index >= the given one.
125
123
@return: list of (time, command) tuples, sorted with ascending times.