Class IdACommandExecutor
java.lang.Object
com.io7m.idstore.server.internal.admin.IdACommandExecutor
- All Implemented Interfaces:
IdCommandExecutorType<IdAdminSession,IdACommandContext, IdACommandType<? extends IdAResponseType>, IdAResponseType>
public final class IdACommandExecutor
extends Object
implements IdCommandExecutorType<IdAdminSession,IdACommandContext,IdACommandType<? extends IdAResponseType>,IdAResponseType>
A command executor for public commands.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecute(IdACommandContext context, IdACommandType<? extends IdAResponseType> command) Execute a command.
-
Constructor Details
-
IdACommandExecutor
public IdACommandExecutor()A command executor for public commands.
-
-
Method Details
-
execute
public IdAResponseType execute(IdACommandContext context, IdACommandType<? extends IdAResponseType> command) throws IdCommandExecutionFailure, IOException, InterruptedException Description copied from interface:IdCommandExecutorTypeExecute a command.- Specified by:
executein interfaceIdCommandExecutorType<IdAdminSession,IdACommandContext, IdACommandType<? extends IdAResponseType>, IdAResponseType> - Parameters:
context- The execution contextcommand- The command- Returns:
- The result of execution
- Throws:
IdCommandExecutionFailure- On errorsIOExceptionInterruptedException
-