A B C D E F G H I L M N O P R S T U V W 
All Classes All Packages

A

accept() - Method in class com.martiansoftware.nailgun.NGUnixDomainServerSocket
 
accept() - Method in class com.martiansoftware.nailgun.NGWin32NamedPipeServerSocket
 
accept(int, NGUnixDomainSocketLibrary.SockaddrUn, IntByReference) - Static method in class com.martiansoftware.nailgun.NGUnixDomainSocketLibrary
 
acquire() - Method in class com.martiansoftware.nailgun.ReferenceCountedFileDescriptor
 
addAlias(Alias) - Method in class com.martiansoftware.nailgun.AliasManager
Adds an Alias, replacing any previous entries with the same name.
addClientListener(NGClientListener) - Method in class com.martiansoftware.nailgun.NGContext
 
addClientListener(NGClientListener) - Method in class com.martiansoftware.nailgun.NGInputStream
Registers a new NGClientListener to be called on client disconnection or calls the listeners clientDisconnected method if the client has already disconnected to avoid races.
addHeartbeatListener(NGHeartbeatListener) - Method in class com.martiansoftware.nailgun.NGContext
 
addHeartbeatListener(NGHeartbeatListener) - Method in class com.martiansoftware.nailgun.NGInputStream
 
addToSystemClassLoader(URL) - Static method in class com.martiansoftware.nailgun.builtins.NGClasspath
Adds the specified URL (for a jar or a directory) to the System ClassLoader.
AF_LOCAL - Static variable in class com.martiansoftware.nailgun.NGUnixDomainSocketLibrary
 
Alias - Class in com.martiansoftware.nailgun
Provides a means to map memorable, short names to classes in order to make the issuing of commands more convenient.
Alias(String, String, Class) - Constructor for class com.martiansoftware.nailgun.Alias
Creates a new Alias with the specified properties.
aliases - Variable in class com.martiansoftware.nailgun.AliasManager
actual alias storage
aliasManager - Variable in class com.martiansoftware.nailgun.NGServer
This NGServer's AliasManager, which maps aliases to classes
AliasManager - Class in com.martiansoftware.nailgun
An AliasManager is used to store and lookup command Aliases by name.
AliasManager() - Constructor for class com.martiansoftware.nailgun.AliasManager
Creates a new AliasManager, populating it with default Aliases.
allNailStats - Variable in class com.martiansoftware.nailgun.NGServer
a collection of all classes executed by this server so far
allowNailsByClassName - Variable in class com.martiansoftware.nailgun.NGServer
If true, fully-qualified classnames are valid commands
allowsNailsByClassName() - Method in class com.martiansoftware.nailgun.NGServer
Returns a flag that indicates whether Nail lookups by classname are allowed.
API - Static variable in class com.martiansoftware.nailgun.NGWin32NamedPipeServerSocket
 
API - Static variable in class com.martiansoftware.nailgun.NGWin32NamedPipeSocket
 
args - Variable in class com.martiansoftware.nailgun.NGContext
Command line arguments for the nail
assertLocalClient() - Method in class com.martiansoftware.nailgun.NGContext
Throws a java.lang.SecurityException if the client is not connected from the local machine.
assertLoopbackClient() - Method in class com.martiansoftware.nailgun.NGContext
Throws a java.lang.SecurityException if the client is not connected via the loopback address.
available() - Method in class com.martiansoftware.nailgun.NGInputStream
 
available() - Method in class com.martiansoftware.nailgun.ThreadLocalInputStream
 

B

backlog - Variable in class com.martiansoftware.nailgun.NGUnixDomainServerSocket
 
base - Variable in class com.martiansoftware.nailgun.NGSecurityManager
 
bind(int, NGUnixDomainSocketLibrary.SockaddrUn, int) - Static method in class com.martiansoftware.nailgun.NGUnixDomainSocketLibrary
 
bind(SocketAddress) - Method in class com.martiansoftware.nailgun.NGUnixDomainServerSocket
 
bind(SocketAddress) - Method in class com.martiansoftware.nailgun.NGWin32NamedPipeServerSocket
 
BUFFER_SIZE - Static variable in class com.martiansoftware.nailgun.NGWin32NamedPipeServerSocket
 

C

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.
clazz - Variable in class com.martiansoftware.nailgun.Alias
The class providing a main() or nailMain() method
clientConnected - Variable in class com.martiansoftware.nailgun.NGInputStream
 
clientDisconnected() - Method in interface com.martiansoftware.nailgun.NGClientListener
Called by an internal nailgun thread when the server detects that the nailgun client has disconnected.
clientListeners - Variable in class com.martiansoftware.nailgun.NGInputStream
 
clone() - Method in class com.martiansoftware.nailgun.NailStats
Creates a copy of this NailStats object.
close() - Method in class com.martiansoftware.nailgun.NGInputStream
Cancel the thread reading from the NailGun client and close underlying input stream
close() - Method in class com.martiansoftware.nailgun.NGOutputStream
 
close() - Method in class com.martiansoftware.nailgun.NGUnixDomainServerSocket
 
close() - Method in class com.martiansoftware.nailgun.NGUnixDomainSocket
 
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.ThreadLocalInputStream
 
close() - Method in class com.martiansoftware.nailgun.ThreadLocalPrintStream
 
close(int) - Static method in class com.martiansoftware.nailgun.NGUnixDomainSocketLibrary
 
closeCallback - Variable in class com.martiansoftware.nailgun.NGWin32NamedPipeServerSocket
 
closeCallback - Variable in class com.martiansoftware.nailgun.NGWin32NamedPipeSocket
 
closeConnectedPipe(WinNT.HANDLE, boolean) - Method in class com.martiansoftware.nailgun.NGWin32NamedPipeServerSocket
 
closed - Variable in class com.martiansoftware.nailgun.NGOutputStream
 
CloseHandle(WinNT.HANDLE) - Method in interface com.martiansoftware.nailgun.NGWin32NamedPipeLibrary
 
closeOpenPipe(WinNT.HANDLE) - Method in class com.martiansoftware.nailgun.NGWin32NamedPipeServerSocket
 
closePending - Variable in class com.martiansoftware.nailgun.ReferenceCountedFileDescriptor
 
com.martiansoftware.nailgun - package com.martiansoftware.nailgun
 
com.martiansoftware.nailgun.builtins - package com.martiansoftware.nailgun.builtins
 
com.martiansoftware.nailgun.examples - package com.martiansoftware.nailgun.examples
 
command - Variable in class com.martiansoftware.nailgun.NGContext
The command that was issued for this connection
compareTo(Object) - Method in class com.martiansoftware.nailgun.Alias
Compares Alias names - no other fields are compared.
connectedHandles - Variable in class com.martiansoftware.nailgun.NGWin32NamedPipeServerSocket
 
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
 

D

DEFAULT_BACKLOG - Static variable in class com.martiansoftware.nailgun.NGUnixDomainServerSocket
 
DEFAULT_PORT - Static variable in class com.martiansoftware.nailgun.NGConstants
The default NailGun port (2113)
DEFAULT_REQUIRE_STRICT_LENGTH - Static variable in class com.martiansoftware.nailgun.NGWin32NamedPipeSocket
 
DEFAULT_SESSIONPOOLSIZE - Static variable in class com.martiansoftware.nailgun.NGServer
Default size for thread pool
defaultInputStream - Variable in class com.martiansoftware.nailgun.ThreadLocalInputStream
 
DefaultNail - Class in com.martiansoftware.nailgun.builtins
The default nail class used by the server when an invalid command (nonexisting classname or alias) is issued.
DefaultNail() - Constructor for class com.martiansoftware.nailgun.builtins.DefaultNail
 
defaultNailClass - Variable in class com.martiansoftware.nailgun.NGServer
The default class to use if an invalid alias or classname is specified by the client.
defaultPrintStream - Variable in class com.martiansoftware.nailgun.ThreadLocalPrintStream
 
description - Variable in class com.martiansoftware.nailgun.Alias
The alias description (may be used to provide help to users)
din - Variable in class com.martiansoftware.nailgun.NGInputStream
 
DisconnectNamedPipe(WinNT.HANDLE) - Method in interface com.martiansoftware.nailgun.NGWin32NamedPipeLibrary
 
doClose() - Method in class com.martiansoftware.nailgun.ReferenceCountedFileDescriptor
 
done - Static variable in class com.martiansoftware.nailgun.examples.Stack
 
done - Variable in class com.martiansoftware.nailgun.NGSession
True if the server has been shutdown and this NGSession should terminate completely
done - Variable in class com.martiansoftware.nailgun.NGSessionPool
have we been shut down?
doRead(ByteBuffer) - Method in class com.martiansoftware.nailgun.NGUnixDomainSocket.NGUnixDomainSocketInputStream
 
doShutdown(int) - Method in class com.martiansoftware.nailgun.NGUnixDomainSocket
 
doWrite(ByteBuffer) - Method in class com.martiansoftware.nailgun.NGUnixDomainSocket.NGUnixDomainSocketOutputStream
 
DumpAll - Class in com.martiansoftware.nailgun.examples
Simply displays command line arguments to System.out.
DumpAll() - Constructor for class com.martiansoftware.nailgun.examples.DumpAll
 
dumpStats(NGServer, PrintStream) - Static method in class com.martiansoftware.nailgun.builtins.NGServerStats
 

E

Echo - Class in com.martiansoftware.nailgun.examples
Echos everything it reads from System.in to System.out.
Echo() - Constructor for class com.martiansoftware.nailgun.examples.Echo
 
eof - Variable in class com.martiansoftware.nailgun.NGInputStream
 
equals(Object) - Method in class com.martiansoftware.nailgun.Alias
Checks whether two Aliases have the same name.
equals(Object) - Method in class com.martiansoftware.nailgun.NailStats
Returns true iff the specified NailStats object is tracking the same class.
err - Variable in class com.martiansoftware.nailgun.NGContext
The client's stderr
err - Variable in class com.martiansoftware.nailgun.NGServer
System.err at the time of the NGServer's creation
exit(int) - Method in class com.martiansoftware.nailgun.NGContext
Sends an exit command with the specified exit code to the client.
Exit - Class in com.martiansoftware.nailgun.examples
 
Exit() - Constructor for class com.martiansoftware.nailgun.examples.Exit
 
EXIT - Static variable in class com.martiansoftware.nailgun.NGSecurityManager
 
EXIT_EXCEPTION - Static variable in class com.martiansoftware.nailgun.NGConstants
The exit code sent to clients if an exception occurred on the server
EXIT_NOSUCHCOMMAND - Static variable in class com.martiansoftware.nailgun.NGConstants
The exit code sent to clients if an invalid command is sent
exitStream - Variable in class com.martiansoftware.nailgun.NGContext
A stream to which a client exit code can be printed

F

fd - Variable in class com.martiansoftware.nailgun.NGUnixDomainServerSocket
 
fd - Variable in class com.martiansoftware.nailgun.NGUnixDomainSocket
 
fd - Variable in class com.martiansoftware.nailgun.ReferenceCountedFileDescriptor
 
fdRefCount - Variable in class com.martiansoftware.nailgun.ReferenceCountedFileDescriptor
 
FILE_FLAG_FIRST_PIPE_INSTANCE - Static variable in interface com.martiansoftware.nailgun.NGWin32NamedPipeLibrary
 
finalize() - Method in class com.martiansoftware.nailgun.ReferenceCountedFileDescriptor
 
flush() - Method in class com.martiansoftware.nailgun.NGOutputStream
 
flush() - Method in class com.martiansoftware.nailgun.ThreadLocalPrintStream
 

G

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).
getCryptoImpls(String) - Static method in class com.martiansoftware.nailgun.examples.Hash
Provides a list of algorithms for the specified service (which, for our purposes, is "MessageDigest".
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
Returns the listening internet address if NGListeningAddress.isInetAddress() returns true.
getInetPort() - Method in class com.martiansoftware.nailgun.NGListeningAddress
Returns the listening internet port if NGListeningAddress.isInetAddress() returns true.
getInputStream() - Method in class com.martiansoftware.nailgun.NGContext
 
getInputStream() - Method in class com.martiansoftware.nailgun.NGUnixDomainSocket
 
getInputStream() - Method in class com.martiansoftware.nailgun.NGWin32NamedPipeSocket
 
getInputStream() - Method in class com.martiansoftware.nailgun.ThreadLocalInputStream
Returns this thread's InputStream
GetLastError() - Method in interface com.martiansoftware.nailgun.NGWin32NamedPipeLibrary
 
getLocalAddress() - Method in class com.martiansoftware.nailgun.NGListeningAddress
Returns the listening local address if NGListeningAddress.isLocalAddress() returns true.
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
getOrCreateStatsFor(Class) - Method in class com.martiansoftware.nailgun.NGServer
Returns the current NailStats object for the specified class, creating a new one if necessary
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.
getPrintStream() - Method in class com.martiansoftware.nailgun.ThreadLocalPrintStream
Returns this thread's PrintStream
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.
give(NGSession) - Method in class com.martiansoftware.nailgun.NGSessionPool
Returns an NGSession to the pool.

H

handle - Variable in class com.martiansoftware.nailgun.NGWin32NamedPipeSocket
 
handle - Variable in class com.martiansoftware.nailgun.NGWin32NamedPipeSocket.NGWin32NamedPipeSocketInputStream
 
handle - Variable in class com.martiansoftware.nailgun.NGWin32NamedPipeSocket.NGWin32NamedPipeSocketOutputStream
 
HAS_SUN_LEN - Static variable in class com.martiansoftware.nailgun.NGUnixDomainSocketLibrary
 
Hash - Class in com.martiansoftware.nailgun.examples
Hashes the client's stdin to the client's stdout in the form of a hexadecimal string.
Hash() - Constructor for class com.martiansoftware.nailgun.examples.Hash
 
hashCode() - Method in class com.martiansoftware.nailgun.Alias
 
hashCode() - Method in class com.martiansoftware.nailgun.NailStats
 
Heartbeat - Class in com.martiansoftware.nailgun.examples
Print one hash per second to standard out while the client is running.
Heartbeat() - Constructor for class com.martiansoftware.nailgun.examples.Heartbeat
 
HEARTBEAT_INTERVAL_MILLIS - Static variable in class com.martiansoftware.nailgun.NGConstants
Expected interval between heartbeats in milliseconds.
HEARTBEAT_TIMEOUT_MILLIS - Static variable in class com.martiansoftware.nailgun.NGConstants
Maximum interval to wait between heartbeats before considering client to have disconnected.
heartbeatListeners - Variable in class com.martiansoftware.nailgun.NGInputStream
 
heartbeatReceived() - Method in interface com.martiansoftware.nailgun.NGHeartbeatListener
Called by an internal nailgun thread when the server receives a heartbeat from the client.
heartbeatTimeoutMillis - Variable in class com.martiansoftware.nailgun.NGServer
 
heartbeatTimeoutMillis - Variable in class com.martiansoftware.nailgun.NGSession
The interval to wait between heartbeats before considering the client to have disconnected.
HelloWorld - Class in com.martiansoftware.nailgun.examples
A truly amazing program that must be seen to be believed.
HelloWorld() - Constructor for class com.martiansoftware.nailgun.examples.HelloWorld
 
HEXCHARS - Static variable in class com.martiansoftware.nailgun.examples.Hash
 

I

in - Variable in class com.martiansoftware.nailgun.NGContext
The client's stdin
in - Variable in class com.martiansoftware.nailgun.NGServer
System.in at the time of the NGServer's creation
inetAddress - Variable in class com.martiansoftware.nailgun.NGListeningAddress
 
inetPort - Variable in class com.martiansoftware.nailgun.NGListeningAddress
 
init(InputStream) - Method in class com.martiansoftware.nailgun.ThreadLocalInputStream
Sets the InputStream for the current thread
init(PrintStream) - Method in class com.martiansoftware.nailgun.ThreadLocalPrintStream
Sets the PrintStream for the current thread
INSTANCE - Static variable in interface com.martiansoftware.nailgun.NGWin32NamedPipeLibrary
 
instanceCounter - Static variable in class com.martiansoftware.nailgun.NGSession
The instance counter shared among all NGSessions
instanceNumber - Variable in class com.martiansoftware.nailgun.NGSession
The instance number of this NGSession.
is - Variable in class com.martiansoftware.nailgun.NGUnixDomainSocket
 
is - Variable in class com.martiansoftware.nailgun.NGWin32NamedPipeSocket
 
isBound - Variable in class com.martiansoftware.nailgun.NGUnixDomainServerSocket
 
isClientConnected() - Method in class com.martiansoftware.nailgun.NGContext
 
isClientConnected() - Method in class com.martiansoftware.nailgun.NGInputStream
 
isClosed - Variable in class com.martiansoftware.nailgun.NGUnixDomainServerSocket
 
isInet - Variable in class com.martiansoftware.nailgun.NGListeningAddress
 
isInetAddress() - Method in class com.martiansoftware.nailgun.NGListeningAddress
Returns true if this listening address has an internet address and port.
isLocal - Variable in class com.martiansoftware.nailgun.NGListeningAddress
 
isLocalAddress() - Method in class com.martiansoftware.nailgun.NGListeningAddress
Returns true if this listening address has a local (Unix domain) address.
isRunning() - Method in class com.martiansoftware.nailgun.NGServer
Returns true iff the server is currently running.

L

listen(int, int) - Static method in class com.martiansoftware.nailgun.NGUnixDomainSocketLibrary
 
listeningAddress - Variable in class com.martiansoftware.nailgun.NGServer
The address on which to listen
loadFromProperties(Properties) - Method in class com.martiansoftware.nailgun.AliasManager
Loads Aliases from a java.util.Properties file located at the specified URL.
localAddress - Variable in class com.martiansoftware.nailgun.NGListeningAddress
 
lock - Variable in class com.martiansoftware.nailgun.NailStats
 
lock - Variable in class com.martiansoftware.nailgun.NGOutputStream
 
lock - Variable in class com.martiansoftware.nailgun.NGSession
Synchronization object
lock - Variable in class com.martiansoftware.nailgun.NGSessionPool
synchronization object
lockHandle - Variable in class com.martiansoftware.nailgun.NGWin32NamedPipeServerSocket
 
LOG - Static variable in class com.martiansoftware.nailgun.NGInputStream
 
LOG - Static variable in class com.martiansoftware.nailgun.NGSession
 

M

main(String[]) - Static method in class com.martiansoftware.nailgun.examples.Echo
 
main(String[]) - Static method in class com.martiansoftware.nailgun.examples.Exit
 
main(String[]) - Static method in class com.martiansoftware.nailgun.examples.HelloWorld
 
main(String[]) - Static method in class com.martiansoftware.nailgun.examples.ThreadTest
 
main(String[]) - Static method in class com.martiansoftware.nailgun.NGServer
Creates and starts a new NGServer.
mainSignature - Static variable in class com.martiansoftware.nailgun.NGSession
signature of main(String[]) for reflection operations
mark(int) - Method in class com.martiansoftware.nailgun.ThreadLocalInputStream
 
markSupported() - Method in class com.martiansoftware.nailgun.NGInputStream
 
markSupported() - Method in class com.martiansoftware.nailgun.ThreadLocalInputStream
 
MAXIMUM_CHUNK_LENGTH - Static variable in class com.martiansoftware.nailgun.NGConstants
Maximum chunk len sent from client.
maxInstances - Variable in class com.martiansoftware.nailgun.NGWin32NamedPipeServerSocket
 

N

nailclass - Variable in class com.martiansoftware.nailgun.NailStats
 
nailFinished() - Method in class com.martiansoftware.nailgun.NailStats
Logs the fact that an instance of this nail has finished
nailFinished(Class) - Method in class com.martiansoftware.nailgun.NGServer
Provides a means for an NGSession to register the completion of a nails execution with the server.
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(NGContext) - Static method in class com.martiansoftware.nailgun.examples.DumpAll
 
nailMain(NGContext) - Static method in class com.martiansoftware.nailgun.examples.Hash
Hashes client stdin, displays hash result to client stdout.
nailMain(NGContext) - Static method in class com.martiansoftware.nailgun.examples.Heartbeat
Registers a NGClientListener with the session then loops forever printing hashes until NGClientListener.clientDisconnected() is called.
nailMain(NGContext) - Static method in class com.martiansoftware.nailgun.examples.Prompt
 
nailMain(NGContext) - Static method in class com.martiansoftware.nailgun.examples.Stack
 
nailMain(String[]) - Method in interface com.martiansoftware.nailgun.NonStaticNail
 
nailMainSignature - Static variable in class com.martiansoftware.nailgun.NGSession
signature of nailMain(NGContext) for reflection operations
nailShutdown(NGServer) - Static method in class com.martiansoftware.nailgun.builtins.NGServerStats
 
nailShutdown(NGServer) - Static method in class com.martiansoftware.nailgun.examples.Stack
 
nailStarted() - Method in class com.martiansoftware.nailgun.NailStats
Logs the fact that an instance of this nail has started
nailStarted(Class) - Method in class com.martiansoftware.nailgun.NGServer
Provides a means for an NGSession to register the starting of a nail execution with the server.
NailStats - Class in com.martiansoftware.nailgun
Collects and provides statistics on a nail.
NailStats(Class) - Constructor for class com.martiansoftware.nailgun.NailStats
Creates a new NailStats object for the specified class
name - Variable in class com.martiansoftware.nailgun.Alias
The alias name
name - Variable in class com.martiansoftware.nailgun.examples.ThreadTest
 
nextSocket - Variable in class com.martiansoftware.nailgun.NGSession
The next socket this NGSession has been tasked with processing (by NGServer)
nextSocket() - Method in class com.martiansoftware.nailgun.NGSession
Returns the next socket to process.
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(DataInputStream, DataOutputStream, 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(String) - Constructor for class com.martiansoftware.nailgun.NGListeningAddress
Constructs a listening address for a local (Unix domain) address.
NGListeningAddress(InetAddress, int) - Constructor for class com.martiansoftware.nailgun.NGListeningAddress
Constructs a listening address for an internet address and port.
NGOutputStream - Class in com.martiansoftware.nailgun
Wraps an OutputStream to send writes in NailGun chunks.
NGOutputStream(OutputStream, byte) - Constructor for class com.martiansoftware.nailgun.NGOutputStream
Creates a new NGOutputStream wrapping the specified OutputStream and using the specified Nailgun chunk code.
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() - 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.
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(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.NGServerShutdowner - Class in com.martiansoftware.nailgun
A shutdown hook that will cleanly bring down the NGServer if it is interrupted.
NGServerShutdowner(NGServer) - Constructor for class com.martiansoftware.nailgun.NGServer.NGServerShutdowner
 
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.
NGSession(NGSessionPool, NGServer) - Constructor for class com.martiansoftware.nailgun.NGSession
Creates a new NGSession running for the specified NGSessionPool and NGServer.
NGSessionPool - Class in com.martiansoftware.nailgun
Provides NGSession pooling functionality.
NGSessionPool(NGServer, int) - Constructor for class com.martiansoftware.nailgun.NGSessionPool
Creates a new NGSessionRunner operating for the specified server, with the specified number of threads
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
Implements a ServerSocket which binds to a local Unix domain socket and returns instances of NGUnixDomainSocket from NGUnixDomainServerSocket.accept().
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(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(String) - Constructor for class com.martiansoftware.nailgun.NGUnixDomainServerSocket
Constructs and binds a Unix domain server socket to the specified path.
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.
NGUnixDomainSocket.NGUnixDomainSocketInputStream - Class in com.martiansoftware.nailgun
 
NGUnixDomainSocket.NGUnixDomainSocketOutputStream - Class in com.martiansoftware.nailgun
 
NGUnixDomainSocketInputStream() - Constructor for class com.martiansoftware.nailgun.NGUnixDomainSocket.NGUnixDomainSocketInputStream
 
NGUnixDomainSocketLibrary - Class in com.martiansoftware.nailgun
Utility class to bridge native Unix domain socket calls to Java using JNA.
NGUnixDomainSocketLibrary() - Constructor for class com.martiansoftware.nailgun.NGUnixDomainSocketLibrary
 
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.
NGUnixDomainSocketOutputStream() - Constructor for class com.martiansoftware.nailgun.NGUnixDomainSocket.NGUnixDomainSocketOutputStream
 
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(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.
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.
NGWin32NamedPipeSocket - Class in com.martiansoftware.nailgun
 
NGWin32NamedPipeSocket(WinNT.HANDLE, NGWin32NamedPipeSocket.CloseCallback) - Constructor for class com.martiansoftware.nailgun.NGWin32NamedPipeSocket
 
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.CloseCallback - Interface in com.martiansoftware.nailgun
 
NGWin32NamedPipeSocket.NGWin32NamedPipeSocketInputStream - Class in com.martiansoftware.nailgun
 
NGWin32NamedPipeSocket.NGWin32NamedPipeSocketOutputStream - Class in com.martiansoftware.nailgun
 
NGWin32NamedPipeSocketInputStream(WinNT.HANDLE) - Constructor for class com.martiansoftware.nailgun.NGWin32NamedPipeSocket.NGWin32NamedPipeSocketInputStream
 
NGWin32NamedPipeSocketOutputStream(WinNT.HANDLE) - Constructor for class com.martiansoftware.nailgun.NGWin32NamedPipeSocket.NGWin32NamedPipeSocketOutputStream
 
NonStaticNail - Interface in com.martiansoftware.nailgun
Allows providing a instance (non-static) main method.
notifyClientListeners() - Method in class com.martiansoftware.nailgun.NGInputStream
Calls clientDisconnected method on all registered NGClientListeners.

O

oneByteBuffer - Variable in class com.martiansoftware.nailgun.NGInputStream
 
onNamedPipeSocketClose(WinNT.HANDLE) - Method in interface com.martiansoftware.nailgun.NGWin32NamedPipeSocket.CloseCallback
 
openHandles - Variable in class com.martiansoftware.nailgun.NGWin32NamedPipeServerSocket
 
orchestratorExecutor - Variable in class com.martiansoftware.nailgun.NGInputStream
 
originalSecurityManager - Variable in class com.martiansoftware.nailgun.NGServer
Remember the security manager we start with so we can restore it later
os - Variable in class com.martiansoftware.nailgun.NGUnixDomainSocket
 
os - Variable in class com.martiansoftware.nailgun.NGWin32NamedPipeSocket
 
out - Variable in class com.martiansoftware.nailgun.NGContext
The client's stdout
out - Variable in class com.martiansoftware.nailgun.NGInputStream
 
out - Variable in class com.martiansoftware.nailgun.NGServer
System.out at the time of the NGServer's creation

P

padl(String, int) - Static method in class com.martiansoftware.nailgun.builtins.NGAlias
 
path - Variable in class com.martiansoftware.nailgun.NGUnixDomainServerSocket.NGUnixDomainServerSocketAddress
 
path - Variable in class com.martiansoftware.nailgun.NGWin32NamedPipeServerSocket
 
PF_LOCAL - Static variable in class com.martiansoftware.nailgun.NGUnixDomainSocketLibrary
 
PIPE_ACCESS_DUPLEX - Static variable in interface com.martiansoftware.nailgun.NGWin32NamedPipeLibrary
 
PIPE_UNLIMITED_INSTANCES - Static variable in interface com.martiansoftware.nailgun.NGWin32NamedPipeLibrary
 
pool - Variable in class com.martiansoftware.nailgun.NGSessionPool
the pool itself
poolEntries - Variable in class com.martiansoftware.nailgun.NGSessionPool
The number of sessions currently in the pool
poolSize - Variable in class com.martiansoftware.nailgun.NGSessionPool
number of sessions to store in the pool
print(boolean) - Method in class com.martiansoftware.nailgun.ThreadLocalPrintStream
 
print(char) - Method in class com.martiansoftware.nailgun.ThreadLocalPrintStream
 
print(char[]) - Method in class com.martiansoftware.nailgun.ThreadLocalPrintStream
 
print(double) - Method in class com.martiansoftware.nailgun.ThreadLocalPrintStream
 
print(float) - Method in class com.martiansoftware.nailgun.ThreadLocalPrintStream
 
print(int) - Method in class com.martiansoftware.nailgun.ThreadLocalPrintStream
 
print(long) - Method in class com.martiansoftware.nailgun.ThreadLocalPrintStream
 
print(Object) - Method in class com.martiansoftware.nailgun.ThreadLocalPrintStream
 
print(String) - Method in class com.martiansoftware.nailgun.ThreadLocalPrintStream
 
println() - Method in class com.martiansoftware.nailgun.ThreadLocalPrintStream
 
println(boolean) - Method in class com.martiansoftware.nailgun.ThreadLocalPrintStream
 
println(char) - Method in class com.martiansoftware.nailgun.ThreadLocalPrintStream
 
println(char[]) - Method in class com.martiansoftware.nailgun.ThreadLocalPrintStream
 
println(double) - Method in class com.martiansoftware.nailgun.ThreadLocalPrintStream
 
println(float) - Method in class com.martiansoftware.nailgun.ThreadLocalPrintStream
 
println(int) - Method in class com.martiansoftware.nailgun.ThreadLocalPrintStream
 
println(long) - Method in class com.martiansoftware.nailgun.ThreadLocalPrintStream
 
println(Object) - Method in class com.martiansoftware.nailgun.ThreadLocalPrintStream
 
println(String) - Method in class com.martiansoftware.nailgun.ThreadLocalPrintStream
 
printStackTrace(PrintStream) - Method in exception com.martiansoftware.nailgun.NGExitException
A lot of code out there, for example ant's Launcher, runs inside a try/catch (Throwable) which will squash this exception; most also calll printStackTrace(), so this re-throws the exception to escape the handling code.
Prompt - Class in com.martiansoftware.nailgun.examples
Prompts the user for input using a JOptionPane, and displays the result to the client's stdout.
Prompt() - Constructor for class com.martiansoftware.nailgun.examples.Prompt
 

R

read() - Method in class com.martiansoftware.nailgun.NGInputStream
 
read() - Method in class com.martiansoftware.nailgun.NGUnixDomainSocket.NGUnixDomainSocketInputStream
 
read() - Method in class com.martiansoftware.nailgun.NGWin32NamedPipeSocket.NGWin32NamedPipeSocketInputStream
 
read() - Method in class com.martiansoftware.nailgun.ThreadLocalInputStream
 
read(byte[]) - Method in class com.martiansoftware.nailgun.NGInputStream
 
read(byte[]) - Method in class com.martiansoftware.nailgun.ThreadLocalInputStream
 
read(byte[], int, int) - Method in class com.martiansoftware.nailgun.NGInputStream
 
read(byte[], int, int) - Method in class com.martiansoftware.nailgun.NGUnixDomainSocket.NGUnixDomainSocketInputStream
 
read(byte[], int, int) - Method in class com.martiansoftware.nailgun.NGWin32NamedPipeSocket.NGWin32NamedPipeSocketInputStream
 
read(byte[], int, int) - Method in class com.martiansoftware.nailgun.ThreadLocalInputStream
 
read(int, ByteBuffer, int) - Static method in class com.martiansoftware.nailgun.NGUnixDomainSocketLibrary
 
readChunk() - Method in class com.martiansoftware.nailgun.NGInputStream
Reads a NailGun chunk header from the underlying InputStream.
readerWaitable - Variable in class com.martiansoftware.nailgun.NGWin32NamedPipeSocket
 
readExecutor - Variable in class com.martiansoftware.nailgun.NGInputStream
 
ReadFile(WinNT.HANDLE, Memory, int, IntByReference, Pointer) - Method in interface com.martiansoftware.nailgun.NGWin32NamedPipeLibrary
 
readPayload(InputStream, int) - Method in class com.martiansoftware.nailgun.NGInputStream
Reads a NailGun chunk payload from FilterInputStream.in and returns an InputStream that reads from that chunk.
reallyPrintStackTrace(PrintStream) - Method in exception com.martiansoftware.nailgun.NGExitException
 
refCounter - Variable in class com.martiansoftware.nailgun.NailStats
 
ReferenceCountedFileDescriptor - Class in com.martiansoftware.nailgun
Encapsulates a file descriptor plus a reference count to ensure close requests only close the file descriptor once the last reference to the file descriptor is released.
ReferenceCountedFileDescriptor(int) - Constructor for class com.martiansoftware.nailgun.ReferenceCountedFileDescriptor
 
release() - Method in class com.martiansoftware.nailgun.ReferenceCountedFileDescriptor
 
remaining - Variable in class com.martiansoftware.nailgun.NGInputStream
 
remoteEnvironment - Variable in class com.martiansoftware.nailgun.NGContext
The remote host's environment variables
remoteHost - Variable in class com.martiansoftware.nailgun.NGContext
The remote host's address
remotePort - Variable in class com.martiansoftware.nailgun.NGContext
The port on the remote host that is communicating with NailGun
removeAlias(String) - Method in class com.martiansoftware.nailgun.AliasManager
Removes the Alias with the specified name from the AliasManager.
removeAllClientListeners() - Method in class com.martiansoftware.nailgun.NGContext
Do not notify about client exit
removeAllClientListeners() - Method in class com.martiansoftware.nailgun.NGInputStream
Do not notify anymore about client disconnects
removeClientListener(NGClientListener) - Method in class com.martiansoftware.nailgun.NGContext
 
removeClientListener(NGClientListener) - Method in class com.martiansoftware.nailgun.NGInputStream
 
removeHeartbeatListener(NGHeartbeatListener) - Method in class com.martiansoftware.nailgun.NGContext
 
removeHeartbeatListener(NGHeartbeatListener) - Method in class com.martiansoftware.nailgun.NGInputStream
 
requireStrictLength - Variable in class com.martiansoftware.nailgun.NGWin32NamedPipeServerSocket
 
requireStrictLength - Variable in class com.martiansoftware.nailgun.NGWin32NamedPipeSocket
 
reset() - Method in class com.martiansoftware.nailgun.ThreadLocalInputStream
 
run() - Method in class com.martiansoftware.nailgun.examples.ThreadTest
 
run() - Method in class com.martiansoftware.nailgun.NGServer.NGServerShutdowner
 
run() - Method in class com.martiansoftware.nailgun.NGServer
Listens for new connections and launches NGSession threads to process them.
run() - Method in class com.martiansoftware.nailgun.NGSession
The main NGSession loop.
run(Socket) - Method in class com.martiansoftware.nailgun.NGSession
Instructs this NGSession to process the specified socket, after which this NGSession will return itself to the pool from which it came.
runCounter - Variable in class com.martiansoftware.nailgun.NailStats
 
running - Variable in class com.martiansoftware.nailgun.NGServer
True if this NGServer has been started and is accepting connections

S

sendSendInput() - Method in class com.martiansoftware.nailgun.NGInputStream
 
server - Variable in class com.martiansoftware.nailgun.NGContext
The NGServer that accepted this connection
server - Variable in class com.martiansoftware.nailgun.NGServer.NGServerShutdowner
 
server - Variable in class com.martiansoftware.nailgun.NGSession
The server this NGSession is working for
server - Variable in class com.martiansoftware.nailgun.NGSessionPool
reference to server we're working for
serversocket - Variable in class com.martiansoftware.nailgun.NGServer
The socket doing the listening
sessionPool - Variable in class com.martiansoftware.nailgun.NGServer
A pool of NGSessions ready to handle client connections
sessionPool - Variable in class com.martiansoftware.nailgun.NGSession
The pool this NGSession came from, and to which it will return itself
setAllowNailsByClassName(boolean) - Method in class com.martiansoftware.nailgun.NGServer
Sets a flag that determines whether Nails can be executed by class name.
setArgs(String[]) - Method in class com.martiansoftware.nailgun.NGContext
 
setClientDisconnected() - Method in class com.martiansoftware.nailgun.NGInputStream
Notify threads waiting in read() on either EOF chunk read or client disconnection.
setCommand(String) - Method in class com.martiansoftware.nailgun.NGContext
 
setDefaultNailClass(Class) - Method in class com.martiansoftware.nailgun.NGServer
Sets the default class to use for the Nail if no Nails can be found via alias or classname.
setEnv(Properties) - Method in class com.martiansoftware.nailgun.NGContext
 
setEof() - Method in class com.martiansoftware.nailgun.NGInputStream
Notify threads waiting in read() on either EOF chunk read or client disconnection.
setExit(PrintStream) - Static method in class com.martiansoftware.nailgun.NGSecurityManager
 
setExitStream(PrintStream) - Method in class com.martiansoftware.nailgun.NGContext
 
setInetAddress(InetAddress) - Method in class com.martiansoftware.nailgun.NGContext
 
setNGServer(NGServer) - Method in class com.martiansoftware.nailgun.NGContext
 
setPort(int) - Method in class com.martiansoftware.nailgun.NGContext
 
setWorkingDirectory(String) - Method in class com.martiansoftware.nailgun.NGContext
 
sharedStack - Static variable in class com.martiansoftware.nailgun.examples.Stack
 
SHUT_RD - Static variable in class com.martiansoftware.nailgun.NGUnixDomainSocketLibrary
 
SHUT_WR - Static variable in class com.martiansoftware.nailgun.NGUnixDomainSocketLibrary
 
shutdown - Variable in class com.martiansoftware.nailgun.NGServer
True if this NGServer has received instructions to shut down
shutdown() - Method in class com.martiansoftware.nailgun.NGSession
Shuts down this NGSession gracefully
shutdown() - Method in class com.martiansoftware.nailgun.NGSessionPool
Shuts down the pool.
shutdown(boolean) - Method in class com.martiansoftware.nailgun.NGServer
Shuts down the server.
shutdown(int, int) - Static method in class com.martiansoftware.nailgun.NGUnixDomainSocketLibrary
 
shutdownInput() - Method in class com.martiansoftware.nailgun.NGUnixDomainSocket
 
shutdownInput() - Method in class com.martiansoftware.nailgun.NGWin32NamedPipeSocket
 
shutdownOutput() - Method in class com.martiansoftware.nailgun.NGUnixDomainSocket
 
shutdownOutput() - Method in class com.martiansoftware.nailgun.NGWin32NamedPipeSocket
 
skip(long) - Method in class com.martiansoftware.nailgun.ThreadLocalInputStream
 
SOCK_STREAM - Static variable in class com.martiansoftware.nailgun.NGUnixDomainSocketLibrary
 
SockaddrUn() - Constructor for class com.martiansoftware.nailgun.NGUnixDomainSocketLibrary.SockaddrUn
Constructs an empty struct sockaddr_un.
SockaddrUn(String) - Constructor for class com.martiansoftware.nailgun.NGUnixDomainSocketLibrary.SockaddrUn
Constructs a struct sockaddr_un with a path whose bytes are encoded using the default encoding of the platform.
socket(int, int, int) - Static method in class com.martiansoftware.nailgun.NGUnixDomainSocketLibrary
 
Stack - Class in com.martiansoftware.nailgun.examples
Provides some nice command-line stack operations.
Stack() - Constructor for class com.martiansoftware.nailgun.examples.Stack
 
started - Variable in class com.martiansoftware.nailgun.NGInputStream
 
status - Variable in exception com.martiansoftware.nailgun.NGExitException
Status code
stdin - Variable in class com.martiansoftware.nailgun.NGInputStream
 
streamCode - Variable in class com.martiansoftware.nailgun.NGOutputStream
 
streams - Variable in class com.martiansoftware.nailgun.ThreadLocalInputStream
The InputStreams for the various threads
streams - Variable in class com.martiansoftware.nailgun.ThreadLocalPrintStream
The PrintStreams for the various threads
sunFamily - Variable in class com.martiansoftware.nailgun.NGUnixDomainSocketLibrary.SockaddrUn
 
sunFamily - Variable in class com.martiansoftware.nailgun.NGUnixDomainSocketLibrary.SockaddrUn.SunFamily
 
sunFamily - Variable in class com.martiansoftware.nailgun.NGUnixDomainSocketLibrary.SockaddrUn.SunLenAndFamily
 
SunFamily() - Constructor for class com.martiansoftware.nailgun.NGUnixDomainSocketLibrary.SockaddrUn.SunFamily
 
sunLen - Variable in class com.martiansoftware.nailgun.NGUnixDomainSocketLibrary.SockaddrUn.SunLenAndFamily
 
sunLenAndFamily - Variable in class com.martiansoftware.nailgun.NGUnixDomainSocketLibrary.SockaddrUn.SunFamily
 
SunLenAndFamily() - Constructor for class com.martiansoftware.nailgun.NGUnixDomainSocketLibrary.SockaddrUn.SunLenAndFamily
 
sunPath - Variable in class com.martiansoftware.nailgun.NGUnixDomainSocketLibrary.SockaddrUn
 

T

take() - Method in class com.martiansoftware.nailgun.NGSessionPool
Returns an NGSession from the pool, or creates one if necessary
terminateExecutor(ExecutorService, String) - Static method in class com.martiansoftware.nailgun.NGInputStream
 
TERMINATION_TIMEOUT_MS - Static variable in class com.martiansoftware.nailgun.NGInputStream
 
ThreadLocalInputStream - Class in com.martiansoftware.nailgun
The class name is pretty descriptive.
ThreadLocalInputStream(InputStream) - Constructor for class com.martiansoftware.nailgun.ThreadLocalInputStream
 
ThreadLocalPrintStream - Class in com.martiansoftware.nailgun
The class name is pretty descriptive.
ThreadLocalPrintStream(PrintStream) - Constructor for class com.martiansoftware.nailgun.ThreadLocalPrintStream
Creates a new InheritedThreadLocalPrintStream
ThreadTest - Class in com.martiansoftware.nailgun.examples
A very silly test to verify that the System.in/out/err overrides are inherited by child threads.
ThreadTest(String) - Constructor for class com.martiansoftware.nailgun.examples.ThreadTest
 
throwIfClosed() - Method in class com.martiansoftware.nailgun.NGOutputStream
Check if stream is closed and throw an IOException if yes.
toString() - Method in class com.martiansoftware.nailgun.NailStats
Returns a String representation of this NailStats object, in the form "classname: runcount/refcount".
toString() - Method in class com.martiansoftware.nailgun.NGListeningAddress
 

U

updateThreadName(String) - Method in class com.martiansoftware.nailgun.NGSession
Updates the current thread name (useful for debugging).
usage() - Static method in class com.martiansoftware.nailgun.NGServer
 

V

VERSION - Static variable in class com.martiansoftware.nailgun.NGConstants
Server version number

W

WaitForSingleObject(WinNT.HANDLE, int) - Method in interface com.martiansoftware.nailgun.NGWin32NamedPipeLibrary
 
WIN32_PIPE_PREFIX - Static variable in class com.martiansoftware.nailgun.NGWin32NamedPipeServerSocket
 
workingDirectory - Variable in class com.martiansoftware.nailgun.NGContext
 
write(byte[]) - Method in class com.martiansoftware.nailgun.NGOutputStream
 
write(byte[]) - Method in class com.martiansoftware.nailgun.ThreadLocalPrintStream
 
write(byte[], int, int) - Method in class com.martiansoftware.nailgun.NGOutputStream
 
write(byte[], int, int) - Method in class com.martiansoftware.nailgun.NGUnixDomainSocket.NGUnixDomainSocketOutputStream
 
write(byte[], int, int) - Method in class com.martiansoftware.nailgun.NGWin32NamedPipeSocket.NGWin32NamedPipeSocketOutputStream
 
write(byte[], int, int) - Method in class com.martiansoftware.nailgun.ThreadLocalPrintStream
 
write(int) - Method in class com.martiansoftware.nailgun.NGOutputStream
 
write(int) - Method in class com.martiansoftware.nailgun.NGUnixDomainSocket.NGUnixDomainSocketOutputStream
 
write(int) - Method in class com.martiansoftware.nailgun.NGWin32NamedPipeSocket.NGWin32NamedPipeSocketOutputStream
 
write(int) - Method in class com.martiansoftware.nailgun.ThreadLocalPrintStream
 
write(int, ByteBuffer, int) - Static method in class com.martiansoftware.nailgun.NGUnixDomainSocketLibrary
 
WriteFile(WinNT.HANDLE, ByteBuffer, int, IntByReference, Pointer) - Method in interface com.martiansoftware.nailgun.NGWin32NamedPipeLibrary
 
writerWaitable - Variable in class com.martiansoftware.nailgun.NGWin32NamedPipeSocket
 
A B C D E F G H I L M N O P R S T U V W 
All Classes All Packages