Class GetCommand

java.lang.Object
com.github.fungal.impl.remote.commands.GetCommand
All Implemented Interfaces:
Command

public class GetCommand extends Object implements Command
Represents the getcommand command
Author:
Jesper Pedersen
  • Constructor Details

    • GetCommand

      public GetCommand(CommunicationServer cs)
      GetCommand
      Parameters:
      cs - The communication server
  • Method Details

    • getName

      public String getName()
      Get the name of the command
      Specified by:
      getName in interface Command
      Returns:
      The name
    • getParameterTypes

      public Class[] getParameterTypes()
      Get the parameter types of the command; null if none
      Specified by:
      getParameterTypes in interface Command
      Returns:
      The types
    • invoke

      public Serializable invoke(Serializable[] args)
      Invoke
      Specified by:
      invoke in interface Command
      Parameters:
      args - The arguments
      Returns:
      The return value
    • isPublic

      public boolean isPublic()
      Is it a public command
      Specified by:
      isPublic in interface Command
      Returns:
      True if system-wide; false if internal