- CancelIoEx(WinNT.HANDLE, Pointer) - Method in interface com.martiansoftware.nailgun.NGWin32NamedPipeLibrary
-
- checkError() - Method in class com.martiansoftware.nailgun.ThreadLocalPrintStream
-
- checkExit(int) - Method in class com.martiansoftware.nailgun.NGSecurityManager
-
- checkPermission(Permission) - Method in class com.martiansoftware.nailgun.NGSecurityManager
-
- checkPermission(Permission, Object) - Method in class com.martiansoftware.nailgun.NGSecurityManager
-
- checkRead(String) - Method in class com.martiansoftware.nailgun.NGSecurityManager
-
Avoid constructing a FilePermission object in checkRead if base manager is null.
- CHUNKTYPE_ARGUMENT - Static variable in class com.martiansoftware.nailgun.NGConstants
-
Chunk type marker for command line arguments
- CHUNKTYPE_COMMAND - Static variable in class com.martiansoftware.nailgun.NGConstants
-
Chunk type marker for the command (alias or class)
- CHUNKTYPE_ENVIRONMENT - Static variable in class com.martiansoftware.nailgun.NGConstants
-
Chunk type marker for client environment variables
- CHUNKTYPE_EXIT - Static variable in class com.martiansoftware.nailgun.NGConstants
-
Chunk type marker for client exit chunks
- CHUNKTYPE_HEARTBEAT - Static variable in class com.martiansoftware.nailgun.NGConstants
-
Chunk type marker for heartbeats sent to let the server know the client is still alive.
- CHUNKTYPE_SENDINPUT - Static variable in class com.martiansoftware.nailgun.NGConstants
-
Chunk type marker for a "startinput" chunk.
- CHUNKTYPE_STDERR - Static variable in class com.martiansoftware.nailgun.NGConstants
-
Chunk type marker for stderr
- CHUNKTYPE_STDIN - Static variable in class com.martiansoftware.nailgun.NGConstants
-
Chunk type marker for stdin
- CHUNKTYPE_STDIN_EOF - Static variable in class com.martiansoftware.nailgun.NGConstants
-
Chunk type marker for the end of stdin
- CHUNKTYPE_STDOUT - Static variable in class com.martiansoftware.nailgun.NGConstants
-
Chunk type marker for stdout
- CHUNKTYPE_WORKINGDIRECTORY - Static variable in class com.martiansoftware.nailgun.NGConstants
-
Chunk type marker for client working directory
- classLoader - Static variable in class com.martiansoftware.nailgun.NGSession
-
A ClassLoader that may be set by a client.
- clientDisconnected() - Method in interface com.martiansoftware.nailgun.NGClientListener
-
Called by an internal nailgun thread when the server detects that the nailgun client has disconnected.
- clone() - Method in class com.martiansoftware.nailgun.NailStats
-
Creates a copy of this NailStats
object.
- close() - Method in class com.martiansoftware.nailgun.NGInputStream
-
Cancels the thread reading from the NailGun client.
- close() - Method in class com.martiansoftware.nailgun.NGUnixDomainServerSocket
-
- close() - Method in class com.martiansoftware.nailgun.NGUnixDomainSocket
-
- close(int) - Static method in class com.martiansoftware.nailgun.NGUnixDomainSocketLibrary
-
- close() - Method in class com.martiansoftware.nailgun.NGWin32NamedPipeServerSocket
-
- close() - Method in class com.martiansoftware.nailgun.NGWin32NamedPipeSocket
-
- close() - Method in class com.martiansoftware.nailgun.ReferenceCountedFileDescriptor
-
- close() - Method in class com.martiansoftware.nailgun.ThreadLocalPrintStream
-
- CloseHandle(WinNT.HANDLE) - Method in interface com.martiansoftware.nailgun.NGWin32NamedPipeLibrary
-
- com.martiansoftware.nailgun - package com.martiansoftware.nailgun
-
- com.martiansoftware.nailgun.builtins - package com.martiansoftware.nailgun.builtins
-
- compareTo(Object) - Method in class com.martiansoftware.nailgun.Alias
-
Compares Alias names - no other fields are compared.
- ConnectNamedPipe(WinNT.HANDLE, Pointer) - Method in interface com.martiansoftware.nailgun.NGWin32NamedPipeLibrary
-
- CreateEvent(WinBase.SECURITY_ATTRIBUTES, boolean, boolean, String) - Method in interface com.martiansoftware.nailgun.NGWin32NamedPipeLibrary
-
- CreateNamedPipe(String, int, int, int, int, int, int, WinBase.SECURITY_ATTRIBUTES) - Method in interface com.martiansoftware.nailgun.NGWin32NamedPipeLibrary
-
- getAlias(String) - Method in class com.martiansoftware.nailgun.AliasManager
-
Returns the Alias with the specified name
- getAliasedClass() - Method in class com.martiansoftware.nailgun.Alias
-
Returns the Class
object providing a static main()
or nailMain()
method
for this command.
- getAliases() - Method in class com.martiansoftware.nailgun.AliasManager
-
Returns a Set that is a snapshot of the Alias list.
- getAliasManager() - Method in class com.martiansoftware.nailgun.NGServer
-
Returns the AliasManager in use by this NGServer.
- getArgs() - Method in class com.martiansoftware.nailgun.NGContext
-
Returns the command line arguments for the command
implementation (nail) on the server.
- getCommand() - Method in class com.martiansoftware.nailgun.NGContext
-
Returns the command that was issued by the client (either an alias or the name of a class).
- getDefaultNailClass() - Method in class com.martiansoftware.nailgun.NGServer
-
Returns the default class that will be used if no Nails can be found via
alias or classname.
- getDescription() - Method in class com.martiansoftware.nailgun.Alias
-
Returns a description for the aliased command
- getEnv() - Method in class com.martiansoftware.nailgun.NGContext
-
Returns a java.util.Properties
object containing a copy
of the client's environment variables
- getFieldOrder() - Method in class com.martiansoftware.nailgun.NGUnixDomainSocketLibrary.SockaddrUn
-
- getFieldOrder() - Method in class com.martiansoftware.nailgun.NGUnixDomainSocketLibrary.SockaddrUn.SunLenAndFamily
-
- getFileSeparator() - Method in class com.martiansoftware.nailgun.NGContext
-
Returns the file separator ('/' or '\\') used by the client's os.
- getHeartbeatTimeout() - Method in class com.martiansoftware.nailgun.NGServer
-
- getInetAddress() - Method in class com.martiansoftware.nailgun.NGContext
-
Returns the address of the client at the other side of this connection.
- getInetAddress() - Method in class com.martiansoftware.nailgun.NGListeningAddress
-
- getInetPort() - Method in class com.martiansoftware.nailgun.NGListeningAddress
-
- getInputStream() - Method in class com.martiansoftware.nailgun.NGUnixDomainSocket
-
- getInputStream() - Method in class com.martiansoftware.nailgun.NGWin32NamedPipeSocket
-
- GetLastError() - Method in interface com.martiansoftware.nailgun.NGWin32NamedPipeLibrary
-
- getLocalAddress() - Method in class com.martiansoftware.nailgun.NGListeningAddress
-
- getNailClass() - Method in class com.martiansoftware.nailgun.NailStats
-
Returns the class for which we're tracking statistics
- getNailStats() - Method in class com.martiansoftware.nailgun.NGServer
-
Returns a snapshot of this NGServer's nail statistics.
- getName() - Method in class com.martiansoftware.nailgun.Alias
-
Returns the name of the aliased command
- getNGServer() - Method in class com.martiansoftware.nailgun.NGContext
-
Returns the NGServer that accepted this connection
- getOutputStream() - Method in class com.martiansoftware.nailgun.NGUnixDomainSocket
-
- getOutputStream() - Method in class com.martiansoftware.nailgun.NGWin32NamedPipeSocket
-
- GetOverlappedResult(WinNT.HANDLE, Pointer, IntByReference, boolean) - Method in interface com.martiansoftware.nailgun.NGWin32NamedPipeLibrary
-
- getPath() - Method in class com.martiansoftware.nailgun.NGUnixDomainServerSocket.NGUnixDomainServerSocketAddress
-
- getPathSeparator() - Method in class com.martiansoftware.nailgun.NGContext
-
Returns the path separator (':' or ';') used by the client's os.
- getPort() - Method in class com.martiansoftware.nailgun.NGContext
-
Returns the port on the client connected to the NailGun
server.
- getPort() - Method in class com.martiansoftware.nailgun.NGServer
-
Returns the port on which this server is (or will be) listening.
- getRefCount() - Method in class com.martiansoftware.nailgun.NailStats
-
Returns the number of sessions currently running this nail.
- getRunCount() - Method in class com.martiansoftware.nailgun.NailStats
-
Returns the number of times this nail has been run.
- getStatus() - Method in exception com.martiansoftware.nailgun.NGExitException
-
The status code returned by System.exit()
- getVersion() - Static method in class com.martiansoftware.nailgun.NGConstants
-
Returns the Nailgun version number
- getWorkingDirectory() - Method in class com.martiansoftware.nailgun.NGContext
-
Returns the current working directory of the client, as reported by the client.
- nailMain(NGContext) - Static method in class com.martiansoftware.nailgun.builtins.DefaultNail
-
- nailMain(NGContext) - Static method in class com.martiansoftware.nailgun.builtins.NGAlias
-
- nailMain(NGContext) - Static method in class com.martiansoftware.nailgun.builtins.NGClasspath
-
- nailMain(NGContext) - Static method in class com.martiansoftware.nailgun.builtins.NGServerStats
-
- nailMain(NGContext) - Static method in class com.martiansoftware.nailgun.builtins.NGStop
-
- nailMain(NGContext) - Static method in class com.martiansoftware.nailgun.builtins.NGVersion
-
- nailMain(String[]) - Method in interface com.martiansoftware.nailgun.NonStaticNail
-
- nailShutdown(NGServer) - Static method in class com.martiansoftware.nailgun.builtins.NGServerStats
-
- NailStats - Class in com.martiansoftware.nailgun
-
Collects and provides statistics on a nail.
- NGAlias - Class in com.martiansoftware.nailgun.builtins
-
Provides a means to view and add aliases.
- NGAlias() - Constructor for class com.martiansoftware.nailgun.builtins.NGAlias
-
- NGClasspath - Class in com.martiansoftware.nailgun.builtins
-
Provides a means to display and add to the system classpath at runtime.
- NGClasspath() - Constructor for class com.martiansoftware.nailgun.builtins.NGClasspath
-
- NGClientListener - Interface in com.martiansoftware.nailgun
-
- NGConstants - Class in com.martiansoftware.nailgun
-
Just a simple holder for various NailGun-related contants.
- NGConstants() - Constructor for class com.martiansoftware.nailgun.NGConstants
-
- NGContext - Class in com.martiansoftware.nailgun
-
Provides quite a bit of potentially useful information to classes
specifically written for NailGun.
- NGContext() - Constructor for class com.martiansoftware.nailgun.NGContext
-
Creates a new, empty NGContext
- NGExitException - Exception in com.martiansoftware.nailgun
-
Security exception which wraps an exit status code.
- NGExitException(int) - Constructor for exception com.martiansoftware.nailgun.NGExitException
-
Constructs an exit exception.
- NGHeartbeatListener - Interface in com.martiansoftware.nailgun
-
- NGInputStream - Class in com.martiansoftware.nailgun
-
A FilterInputStream that is able to read the chunked stdin stream
from a NailGun client.
- NGInputStream(InputStream, DataOutputStream, PrintStream, int) - Constructor for class com.martiansoftware.nailgun.NGInputStream
-
Creates a new NGInputStream wrapping the specified InputStream.
- NGListeningAddress - Class in com.martiansoftware.nailgun
-
Represents the address on which the Nailgun server listens.
- NGListeningAddress(InetAddress, int) - Constructor for class com.martiansoftware.nailgun.NGListeningAddress
-
Constructs a listening address for an internet address and port.
- NGListeningAddress(String) - Constructor for class com.martiansoftware.nailgun.NGListeningAddress
-
Constructs a listening address for a local (Unix domain) address.
- NGSecurityManager - Class in com.martiansoftware.nailgun
-
Security manager which does nothing other than trap
checkExit, or delegate all non-deprecated methods to
a base manager.
- NGSecurityManager(SecurityManager) - Constructor for class com.martiansoftware.nailgun.NGSecurityManager
-
Construct an NGSecurityManager with the given base.
- NGServer - Class in com.martiansoftware.nailgun
-
Listens for new connections from NailGun clients and launches NGSession
threads to process them.
- NGServer(InetAddress, int, int, int) - Constructor for class com.martiansoftware.nailgun.NGServer
-
Creates a new NGServer that will listen at the specified address and on
the specified port with the specified session pool size.
- NGServer(InetAddress, int) - Constructor for class com.martiansoftware.nailgun.NGServer
-
Creates a new NGServer that will listen at the specified address and on
the specified port with the default session pool size.
- NGServer() - Constructor for class com.martiansoftware.nailgun.NGServer
-
Creates a new NGServer that will listen on the default port (defined in
NGConstants.DEFAULT_PORT
).
- NGServer(NGListeningAddress, int, int) - Constructor for class com.martiansoftware.nailgun.NGServer
-
Creates a new NGServer that will listen at the specified address and on
the specified port with the specified session pool size.
- NGServerStats - Class in com.martiansoftware.nailgun.builtins
-
Displays all
NailStats tracked by the server.
- NGServerStats() - Constructor for class com.martiansoftware.nailgun.builtins.NGServerStats
-
- NGSession - Class in com.martiansoftware.nailgun
-
Reads the NailGun stream from the client through the command, then hands off
processing to the appropriate class.
- NGStop - Class in com.martiansoftware.nailgun.builtins
-
Shuts down the currently running server.
- NGStop() - Constructor for class com.martiansoftware.nailgun.builtins.NGStop
-
- NGUnixDomainServerSocket - Class in com.martiansoftware.nailgun
-
- NGUnixDomainServerSocket() - Constructor for class com.martiansoftware.nailgun.NGUnixDomainServerSocket
-
Constructs an unbound Unix domain server socket.
- NGUnixDomainServerSocket(int) - Constructor for class com.martiansoftware.nailgun.NGUnixDomainServerSocket
-
Constructs an unbound Unix domain server socket with the specified listen backlog.
- NGUnixDomainServerSocket(String) - Constructor for class com.martiansoftware.nailgun.NGUnixDomainServerSocket
-
Constructs and binds a Unix domain server socket to the specified path.
- NGUnixDomainServerSocket(int, String) - Constructor for class com.martiansoftware.nailgun.NGUnixDomainServerSocket
-
Constructs and binds a Unix domain server socket to the specified path
with the specified listen backlog.
- NGUnixDomainServerSocket.NGUnixDomainServerSocketAddress - Class in com.martiansoftware.nailgun
-
- NGUnixDomainServerSocketAddress(String) - Constructor for class com.martiansoftware.nailgun.NGUnixDomainServerSocket.NGUnixDomainServerSocketAddress
-
- NGUnixDomainSocket - Class in com.martiansoftware.nailgun
-
Implements a Socket
backed by a native Unix domain socket.
- NGUnixDomainSocket(int) - Constructor for class com.martiansoftware.nailgun.NGUnixDomainSocket
-
Creates a Unix domain socket backed by a native file descriptor.
- NGUnixDomainSocketLibrary - Class in com.martiansoftware.nailgun
-
Utility class to bridge native Unix domain socket calls to Java using JNA.
- NGUnixDomainSocketLibrary.SockaddrUn - Class in com.martiansoftware.nailgun
-
Bridges struct sockaddr_un
to and from native code.
- NGUnixDomainSocketLibrary.SockaddrUn.SunFamily - Class in com.martiansoftware.nailgun
-
On BSD platforms, sunLenAndFamily
will be present.
- NGUnixDomainSocketLibrary.SockaddrUn.SunLenAndFamily - Class in com.martiansoftware.nailgun
-
On BSD platforms, the sun_len
and sun_family
values in
struct sockaddr_un
.
- NGVersion - Class in com.martiansoftware.nailgun.builtins
-
Displays the version of the NailGun server and exits.
- NGVersion() - Constructor for class com.martiansoftware.nailgun.builtins.NGVersion
-
- NGWin32NamedPipeLibrary - Interface in com.martiansoftware.nailgun
-
- NGWin32NamedPipeServerSocket - Class in com.martiansoftware.nailgun
-
- NGWin32NamedPipeServerSocket(String) - Constructor for class com.martiansoftware.nailgun.NGWin32NamedPipeServerSocket
-
- NGWin32NamedPipeServerSocket(String, boolean) - Constructor for class com.martiansoftware.nailgun.NGWin32NamedPipeServerSocket
-
The doc for InputStream#read(byte[] b, int off, int len) states that
"An attempt is made to read as many as len bytes, but a smaller number may be read."
However, using requireStrictLength, NGWin32NamedPipeSocketInputStream can require that
len matches up exactly the number of bytes to read.
- NGWin32NamedPipeServerSocket(int, String) - Constructor for class com.martiansoftware.nailgun.NGWin32NamedPipeServerSocket
-
- NGWin32NamedPipeServerSocket(int, String, boolean) - Constructor for class com.martiansoftware.nailgun.NGWin32NamedPipeServerSocket
-
The doc for InputStream#read(byte[] b, int off, int len) states that
"An attempt is made to read as many as len bytes, but a smaller number may be read."
However, using requireStrictLength, NGWin32NamedPipeSocketInputStream can require that
len matches up exactly the number of bytes to read.
- NGWin32NamedPipeSocket - Class in com.martiansoftware.nailgun
-
- NGWin32NamedPipeSocket(WinNT.HANDLE, NGWin32NamedPipeSocket.CloseCallback, boolean) - Constructor for class com.martiansoftware.nailgun.NGWin32NamedPipeSocket
-
The doc for InputStream#read(byte[] b, int off, int len) states that
"An attempt is made to read as many as len bytes, but a smaller number may be read."
However, using requireStrictLength, NGWin32NamedPipeSocketInputStream can require that
len matches up exactly the number of bytes to read.
- NGWin32NamedPipeSocket(WinNT.HANDLE, NGWin32NamedPipeSocket.CloseCallback) - Constructor for class com.martiansoftware.nailgun.NGWin32NamedPipeSocket
-
- NonStaticNail - Interface in com.martiansoftware.nailgun
-
Allows providing a instance (non-static) main method.