Class NGConstants

java.lang.Object
com.martiansoftware.nailgun.NGConstants

public class NGConstants extends Object
Just a simple holder for various NailGun-related contants.
  • Field Details

    • DEFAULT_PORT

      public static final int DEFAULT_PORT
      The default NailGun port (2113)
      See Also:
    • EXIT_EXCEPTION

      public static final int EXIT_EXCEPTION
      The exit code sent to clients if an exception occurred on the server
      See Also:
    • EXIT_NOSUCHCOMMAND

      public static final int EXIT_NOSUCHCOMMAND
      The exit code sent to clients if an invalid command is sent
      See Also:
    • CHUNKTYPE_ARGUMENT

      public static final byte CHUNKTYPE_ARGUMENT
      Chunk type marker for command line arguments
      See Also:
    • CHUNKTYPE_ENVIRONMENT

      public static final byte CHUNKTYPE_ENVIRONMENT
      Chunk type marker for client environment variables
      See Also:
    • CHUNKTYPE_COMMAND

      public static final byte CHUNKTYPE_COMMAND
      Chunk type marker for the command (alias or class)
      See Also:
    • CHUNKTYPE_WORKINGDIRECTORY

      public static final byte CHUNKTYPE_WORKINGDIRECTORY
      Chunk type marker for client working directory
      See Also:
    • CHUNKTYPE_STDIN

      public static final byte CHUNKTYPE_STDIN
      Chunk type marker for stdin
      See Also:
    • CHUNKTYPE_STDIN_EOF

      public static final byte CHUNKTYPE_STDIN_EOF
      Chunk type marker for the end of stdin
      See Also:
    • CHUNKTYPE_STDOUT

      public static final byte CHUNKTYPE_STDOUT
      Chunk type marker for stdout
      See Also:
    • CHUNKTYPE_STDERR

      public static final byte CHUNKTYPE_STDERR
      Chunk type marker for stderr
      See Also:
    • CHUNKTYPE_EXIT

      public static final byte CHUNKTYPE_EXIT
      Chunk type marker for client exit chunks
      See Also:
    • CHUNKTYPE_STARTINPUT

      public static final byte CHUNKTYPE_STARTINPUT
      Chunk type marker for a "startinput" chunk. This chunk type is sent from the server to the client and indicates that the client should begin sending stdin to the server. It is automatically sent the first time the client's inputstream is read.
      See Also:
    • VERSION

      public static final String VERSION
      Server version number
  • Constructor Details

    • NGConstants

      public NGConstants()
  • Method Details

    • getVersion

      public static String getVersion()
      Returns the Nailgun version number
      Returns:
      the Nailgun version number