Class AbstractCommand

java.lang.Object
com.sshteam.commands.AbstractCommand
All Implemented Interfaces:
Callable<Integer>
Direct Known Subclasses:
AuthorizedKeys, RegisterRemoteAssign, UnregisterRemoteAssign

public abstract class AbstractCommand extends Object implements Callable<Integer>
  • Method Details

    • call

      public Integer call() throws Exception
      Specified by:
      call in interface Callable<Integer>
      Throws:
      Exception
    • getCommandPath

      protected Path getCommandPath()
    • calcCommandPath

      protected Path calcCommandPath()
    • getCommandName

      protected String getCommandName()
    • getCommandDirectory

      protected Path getCommandDirectory()
    • runCommand

      protected abstract Integer runCommand(String domain, String authenticationKey, String machineId, com.sshtools.common.sshd.config.SshdConfigFile configFile, Path configFilePath)