org.mockftpserver.core.command
Interface InvocationHistory
- All Known Implementing Classes:
- AborCommandHandler, AbstractStaticReplyCommandHandler, AbstractStorCommandHandler, AbstractStubCommandHandler, AbstractStubDataCommandHandler, AbstractTrackingCommandHandler, AcctCommandHandler, AlloCommandHandler, AppeCommandHandler, CdupCommandHandler, ConnectCommandHandler, CwdCommandHandler, DeleCommandHandler, EprtCommandHandler, EpsvCommandHandler, FileRetrCommandHandler, HelpCommandHandler, ListCommandHandler, MkdCommandHandler, ModeCommandHandler, NlstCommandHandler, NoopCommandHandler, PassCommandHandler, PasvCommandHandler, PortCommandHandler, PwdCommandHandler, QuitCommandHandler, ReinCommandHandler, RestCommandHandler, RetrCommandHandler, RmdCommandHandler, RnfrCommandHandler, RntoCommandHandler, SiteCommandHandler, SmntCommandHandler, StatCommandHandler, StaticReplyCommandHandler, StorCommandHandler, StouCommandHandler, StruCommandHandler, SystCommandHandler, TypeCommandHandler, UnsupportedCommandHandler, UserCommandHandler
public interface InvocationHistory
Interface for an object that can retrieve and clear the history of InvocationRecords
for a command handler.
- Version:
- $Revision: 8 $ - $Date: 2007-12-18 22:42:32 -0500 (Tue, 18 Dec 2007) $
- Author:
- Chris Mair
numberOfInvocations
int numberOfInvocations()
- Returns:
- the number of invocation records stored for this command handler instance
getInvocation
InvocationRecord getInvocation(int index)
- Return the InvocationRecord representing the command invoction data for the nth invocation
for this command handler instance. One InvocationRecord should be stored for each invocation
of the CommandHandler.
- Parameters:
index - - the index of the invocation record to return. The first record is at index zero.
- Returns:
- the InvocationRecord for the specified index
- Throws:
AssertFailedException - - if there is no invocation record corresponding to the specified index
clearInvocations
void clearInvocations()
- Clear out the invocation history for this CommandHandler. After invoking this method, the
numberOfInvocations() method will return zero.
Copyright © 2014. All rights reserved.