Package com.martiansoftware.nailgun
package com.martiansoftware.nailgun
-
ClassDescriptionProvides a means to map memorable, short names to classes in order to make the issuing of commands more convenient.An AliasManager is used to store and lookup command Aliases by name.Collects and provides statistics on a nail.Just a simple holder for various NailGun-related contants.Provides quite a bit of potentially useful information to classes specifically written for NailGun.Security exception which wraps an exit status code.A FilterInputStream that is able to read the chunked stdin stream from a NailGun client.Represents the address on which the Nailgun server listens.Wraps an OutputStream to send writes in NailGun chunks.Security manager which does nothing other than trap checkExit, or delegate all non-deprecated methods to a base manager.Listens for new connections from NailGun clients and launches NGSession threads to process them.A shutdown hook that will cleanly bring down the NGServer if it is interrupted.Reads the NailGun stream from the client through the command, then hands off processing to the appropriate class.Provides NGSession pooling functionality.Implements a
ServerSocket
which binds to a local Unix domain socket and returns instances ofNGUnixDomainSocket
fromNGUnixDomainServerSocket.accept()
.Implements aSocket
backed by a native Unix domain socket.Utility class to bridge native Unix domain socket calls to Java using JNA.Bridgesstruct sockaddr_un
to and from native code.On BSD platforms,sunLenAndFamily
will be present.On BSD platforms, thesun_len
andsun_family
values instruct sockaddr_un
.Allows providing a instance (non-static) main method.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.The class name is pretty descriptive.The class name is pretty descriptive.