com.martiansoftware.nailgun

Class NGConstants


public class NGConstants
extends Object

Just a simple holder for various NailGun-related contants.
Author:
Marty Lamb

Field Summary

static byte
CHUNKTYPE_ARGUMENT
Chunk type marker for command line arguments
static byte
CHUNKTYPE_COMMAND
Chunk type marker for the command (alias or class)
static byte
CHUNKTYPE_ENVIRONMENT
Chunk type marker for client environment variables
static byte
CHUNKTYPE_EXIT
Chunk type marker for client exit chunks
static byte
CHUNKTYPE_STARTINPUT
Chunk type marker for a "startinput" chunk.
static byte
CHUNKTYPE_STDERR
Chunk type marker for stderr
static byte
CHUNKTYPE_STDIN
Chunk type marker for stdin
static byte
CHUNKTYPE_STDIN_EOF
Chunk type marker for the end of stdin
static byte
CHUNKTYPE_STDOUT
Chunk type marker for stdout
static byte
CHUNKTYPE_WORKINGDIRECTORY
Chunk type marker for client working directory
static int
DEFAULT_PORT
The default NailGun port (2113)
static int
EXIT_EXCEPTION
The exit code sent to clients if an exception occurred on the server
static int
EXIT_NOSUCHCOMMAND
The exit code sent to clients if an invalid command is sent
static String
VERSION
Server version number

Field Details

CHUNKTYPE_ARGUMENT

public static final byte CHUNKTYPE_ARGUMENT
Chunk type marker for command line arguments
Field Value:
65

CHUNKTYPE_COMMAND

public static final byte CHUNKTYPE_COMMAND
Chunk type marker for the command (alias or class)
Field Value:
67

CHUNKTYPE_ENVIRONMENT

public static final byte CHUNKTYPE_ENVIRONMENT
Chunk type marker for client environment variables
Field Value:
69

CHUNKTYPE_EXIT

public static final byte CHUNKTYPE_EXIT
Chunk type marker for client exit chunks
Field Value:
88

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.
Field Value:
83

CHUNKTYPE_STDERR

public static final byte CHUNKTYPE_STDERR
Chunk type marker for stderr
Field Value:
50

CHUNKTYPE_STDIN

public static final byte CHUNKTYPE_STDIN
Chunk type marker for stdin
Field Value:
48

CHUNKTYPE_STDIN_EOF

public static final byte CHUNKTYPE_STDIN_EOF
Chunk type marker for the end of stdin
Field Value:
46

CHUNKTYPE_STDOUT

public static final byte CHUNKTYPE_STDOUT
Chunk type marker for stdout
Field Value:
49

CHUNKTYPE_WORKINGDIRECTORY

public static final byte CHUNKTYPE_WORKINGDIRECTORY
Chunk type marker for client working directory
Field Value:
68

DEFAULT_PORT

public static final int DEFAULT_PORT
The default NailGun port (2113)
Field Value:
2113

EXIT_EXCEPTION

public static final int EXIT_EXCEPTION
The exit code sent to clients if an exception occurred on the server
Field Value:
899

EXIT_NOSUCHCOMMAND

public static final int EXIT_NOSUCHCOMMAND
The exit code sent to clients if an invalid command is sent
Field Value:
898

VERSION

public static final String VERSION
Server version number

© 2004, Martian Software, Inc.