Index

A B C D E G H I L N O R S T U W 
All Classes and Interfaces|All Packages|Serialized Form

A

AFNaming - Class in org.newsclub.net.unix.rmi
The AFSocket-compatible equivalent of Naming.
AFNaming(int, int) - Constructor for class org.newsclub.net.unix.rmi.AFNaming
Creates a new naming instance with the given ports.
AFNamingProvider<T> - Interface in org.newsclub.net.unix.rmi
The key to accessing to AFNaming instances.
AFRegistry - Class in org.newsclub.net.unix.rmi
A wrapper for RMI registries, both remote and local, to allow for a clean removal of bound resources upon shutdown.
AFRMIService - Interface in org.newsclub.net.unix.rmi
The AFRMIService assigns and keeps track of anonymous ports, among other things.
AFRMISocketFactory - Class in org.newsclub.net.unix.rmi
An RMISocketFactory that supports AFSockets.
AFRMISocketFactory() - Constructor for class org.newsclub.net.unix.rmi.AFRMISocketFactory
Constructor required per definition.
AFRMISocketFactory(AFNaming, RMIClientSocketFactory, RMIServerSocketFactory) - Constructor for class org.newsclub.net.unix.rmi.AFRMISocketFactory
Creates a new socket factory.
AFRMISocketFactory.PortLease - Class in org.newsclub.net.unix.rmi
A lease on a registered port; closing the lease will return the port.
AFUNIXNaming - Class in org.newsclub.net.unix.rmi
The AFUNIXSocket-compatible equivalent of Naming.
AFUNIXRegistry - Class in org.newsclub.net.unix.rmi
A wrapper for RMI registries, both remote and local, to allow for a clean removal of bound resources upon shutdown.
AFUNIXRMISocketFactory - Class in org.newsclub.net.unix.rmi
An RMISocketFactory that supports AFUNIXSockets.
AFUNIXRMISocketFactory() - Constructor for class org.newsclub.net.unix.rmi.AFUNIXRMISocketFactory
Constructor required per definition.
AFUNIXRMISocketFactory(AFNaming, File) - Constructor for class org.newsclub.net.unix.rmi.AFUNIXRMISocketFactory
Creates a new socket factory.
AFUNIXRMISocketFactory(AFNaming, File, RMIClientSocketFactory, RMIServerSocketFactory) - Constructor for class org.newsclub.net.unix.rmi.AFUNIXRMISocketFactory
Creates a new socket factory.
AFUNIXRMISocketFactory(AFNaming, File, RMIClientSocketFactory, RMIServerSocketFactory, String, String) - Constructor for class org.newsclub.net.unix.rmi.AFUNIXRMISocketFactory
Creates a new socket factory.
asFileInputStream() - Method in class org.newsclub.net.unix.rmi.RemoteFileInput
Returns a FileInputStream for the given instance.
asFileOutputStream() - Method in class org.newsclub.net.unix.rmi.RemoteFileOutput
Returns a FileOutputStream for the given instance.

B

bind(String, Remote) - Method in class org.newsclub.net.unix.rmi.AFRegistry
 
bind(String, Remote) - Method in class org.newsclub.net.unix.rmi.AFNaming
Convenience method for getRegistry().bind.
bind(String, Remote) - Method in class org.newsclub.net.unix.rmi.AFUNIXNaming
Convenience method for getRegistry().bind.

C

close() - Method in class org.newsclub.net.unix.rmi.AFRMISocketFactory
 
close() - Method in class org.newsclub.net.unix.rmi.AFRMISocketFactory.PortLease
Closes the lease, returning the port to the AFRMIService it was leased from.
close() - Method in class org.newsclub.net.unix.rmi.AFUNIXRMISocketFactory
 
close() - Method in interface org.newsclub.net.unix.rmi.RemoteCloseable
Closes the resource on the server-side (i.e., where it was created), and — as long as the wrapped resource returned by RemoteCloseable.get() supports it — locally as well.
close() - Method in class org.newsclub.net.unix.rmi.RemoteCloseableImpl
 
close() - Method in class org.newsclub.net.unix.rmi.RemoteFileDescriptor
 
close() - Method in class org.newsclub.net.unix.rmi.RemoteFileDescriptorBase
 
createRegistry() - Method in class org.newsclub.net.unix.rmi.AFNaming
Creates a new RMI Registry.
createRegistry() - Method in class org.newsclub.net.unix.rmi.AFUNIXNaming
 
createServerSocket(int) - Method in class org.newsclub.net.unix.rmi.AFRMISocketFactory
 
createServerSocket(int) - Method in class org.newsclub.net.unix.rmi.DefaultRMIServerSocketFactory
 
createSocket(String, int) - Method in class org.newsclub.net.unix.rmi.AFRMISocketFactory
 
createSocket(String, int) - Method in class org.newsclub.net.unix.rmi.DefaultRMIClientSocketFactory
 

D

DefaultRMIClientSocketFactory - Class in org.newsclub.net.unix.rmi
An implementation of RMIClientSocketFactory.
DefaultRMIServerSocketFactory - Class in org.newsclub.net.unix.rmi
An implementation of RMIServerSocketFactory.
DefaultRMIServerSocketFactory() - Constructor for class org.newsclub.net.unix.rmi.DefaultRMIServerSocketFactory

E

equals(Object) - Method in interface org.newsclub.net.unix.rmi.AFNamingProvider
 
equals(Object) - Method in class org.newsclub.net.unix.rmi.AFUNIXRMISocketFactory
 
equals(Object) - Method in class org.newsclub.net.unix.rmi.DefaultRMIClientSocketFactory
 
equals(Object) - Method in class org.newsclub.net.unix.rmi.DefaultRMIServerSocketFactory
 
exportAndBind(String, Remote) - Method in class org.newsclub.net.unix.rmi.AFNaming
Exports and binds the given Remote object to the given name, using the given AFNaming setup.
exportAndRebind(String, Remote) - Method in class org.newsclub.net.unix.rmi.AFNaming
Exports and re-binds the given Remote object to the given name, using the given AFNaming setup.
exportObject(Remote, RMISocketFactory) - Static method in class org.newsclub.net.unix.rmi.AFNaming
Exports the given Remote object, using the given socket factory and a randomly assigned port.

G

get() - Method in interface org.newsclub.net.unix.rmi.RemoteCloseable
Returns the resource (or the Remote instance of it).
get() - Method in class org.newsclub.net.unix.rmi.RemoteCloseableImpl
 
getConnectionInfo(Remote) - Static method in class org.newsclub.net.unix.rmi.RemotePeerInfo
Returns the connection information (RMISocketFactory, hostname and port) used for the given Remote object, or null if no custom RMISocketFactory was specified.
getDefaultSocketDirectory() - Static method in class org.newsclub.net.unix.rmi.AFUNIXNaming
Returns the directory where RMI sockets are stored by default.
getFileDescriptor() - Method in class org.newsclub.net.unix.rmi.RemoteFileDescriptorBase
Returns the file descriptor.
getHost() - Method in class org.newsclub.net.unix.rmi.RemotePeerInfo
The hostname.
getInstance() - Static method in class org.newsclub.net.unix.rmi.AFUNIXNaming
Returns the default instance of AFUNIXNaming.
getInstance() - Static method in class org.newsclub.net.unix.rmi.DefaultRMIClientSocketFactory
Returns the singleton instance for DefaultRMIClientSocketFactory.
getInstance() - Static method in class org.newsclub.net.unix.rmi.DefaultRMIServerSocketFactory
Returns the singleton instance for DefaultRMIServerSocketFactory.
getInstance(File) - Static method in class org.newsclub.net.unix.rmi.AFUNIXNaming
Returns a AFUNIXNaming instance which support several socket files that can be stored under the same, given directory.
getInstance(File, int) - Static method in class org.newsclub.net.unix.rmi.AFUNIXNaming
Returns a AFUNIXNaming instance which support several socket files that can be stored under the same, given directory.
getInstance(File, int, String, String) - Static method in class org.newsclub.net.unix.rmi.AFUNIXNaming
Returns a AFUNIXNaming instance which support several socket files that can be stored under the same, given directory.
getMagicValue() - Method in class org.newsclub.net.unix.rmi.RemoteFileDescriptorBase
Returns the "magic value" for this type of file descriptor.
getNaming() - Method in class org.newsclub.net.unix.rmi.AFRegistry
Returns the AFNaming instance responsible for this registry.
getNaming() - Method in class org.newsclub.net.unix.rmi.AFRMISocketFactory
The naming instance.
getPeerCredentials() - Method in class org.newsclub.net.unix.rmi.RemotePeerInfo
The remote socket credentials, or null if they could not be retrieved.
getPort() - Method in class org.newsclub.net.unix.rmi.AFRMISocketFactory.PortLease
Returns the port number.
getPort() - Method in class org.newsclub.net.unix.rmi.RemotePeerInfo
The port.
getRegistry() - Method in class org.newsclub.net.unix.rmi.AFNaming
 
getRegistry() - Method in class org.newsclub.net.unix.rmi.AFUNIXNaming
 
getRegistry(boolean) - Method in class org.newsclub.net.unix.rmi.AFNaming
Returns a reference to the RMI registry, or null.
getRegistry(boolean) - Method in class org.newsclub.net.unix.rmi.AFUNIXNaming
 
getRegistry(long, TimeUnit) - Method in class org.newsclub.net.unix.rmi.AFNaming
Returns a reference to the existing RMI registry.
getRegistry(long, TimeUnit) - Method in class org.newsclub.net.unix.rmi.AFUNIXNaming
 
getRegistryPort() - Method in class org.newsclub.net.unix.rmi.AFNaming
Returns the registry port.
getRegistrySocketDir() - Method in class org.newsclub.net.unix.rmi.AFUNIXNaming
Returns the directory in which sockets used by this registry are located.
getRegistrySocketFile() - Method in class org.newsclub.net.unix.rmi.AFUNIXNaming
Returns the socket file which is used to control the RMI registry.
getRmiService() - Method in class org.newsclub.net.unix.rmi.AFRMISocketFactory.PortLease
Returns the service the port was leased from.
getSingleFileInstance(File) - Static method in class org.newsclub.net.unix.rmi.AFUNIXNaming
Returns an AFUNIXNaming instance which only supports one file.
getSocketDir() - Method in class org.newsclub.net.unix.rmi.AFUNIXRMISocketFactory
The directory in which socket files are stored.
getSocketFactory() - Method in class org.newsclub.net.unix.rmi.AFNaming
Returns the AFRMISocketFactory associated with this instance.
getSocketFactory() - Method in class org.newsclub.net.unix.rmi.AFUNIXNaming
 
getSocketFactory() - Method in class org.newsclub.net.unix.rmi.RemotePeerInfo
The socket factory used to establish connections.

H

hashCode() - Method in interface org.newsclub.net.unix.rmi.AFNamingProvider
 
hashCode() - Method in class org.newsclub.net.unix.rmi.AFUNIXRMISocketFactory
 
hashCode() - Method in class org.newsclub.net.unix.rmi.DefaultRMIClientSocketFactory
 
hashCode() - Method in class org.newsclub.net.unix.rmi.DefaultRMIServerSocketFactory
 

I

initRegistryPrerequisites() - Method in class org.newsclub.net.unix.rmi.AFNaming
Called by AFNaming.createRegistry() right before creating/setting the registry.
initRegistryPrerequisites() - Method in class org.newsclub.net.unix.rmi.AFUNIXNaming
 
initSocketFactory() - Method in class org.newsclub.net.unix.rmi.AFNaming
Creates or returns the AFRMISocketFactory to be used with this instance.
initSocketFactory() - Method in class org.newsclub.net.unix.rmi.AFUNIXNaming
 
isLocal() - Method in class org.newsclub.net.unix.rmi.AFRegistry
Returns true if the wrapped Registry instance is locally created.
isLocalServer(int) - Method in class org.newsclub.net.unix.rmi.AFRMISocketFactory
Checks if the given port refers to a local server port.
isRemoteServer() - Method in class org.newsclub.net.unix.rmi.AFRegistry
Deprecated.
isRemoteShutdownAllowed() - Method in class org.newsclub.net.unix.rmi.AFNaming
Checks if this AFNaming instance can be shut down remotely.
isShutdownAllowed() - Method in interface org.newsclub.net.unix.rmi.AFRMIService
Indicates whether a remote-shutdown of the RMI registry is allowed.

L

list() - Method in class org.newsclub.net.unix.rmi.AFRegistry
 
list() - Method in class org.newsclub.net.unix.rmi.AFNaming
Convenience method for getRegistry().list.
list() - Method in class org.newsclub.net.unix.rmi.AFUNIXNaming
Convenience method for getRegistry().list.
lookup(String) - Method in class org.newsclub.net.unix.rmi.AFRegistry
 
lookup(String) - Method in class org.newsclub.net.unix.rmi.AFNaming
Convenience method for getRegistry().lookup.
lookup(String) - Method in class org.newsclub.net.unix.rmi.AFUNIXNaming
Convenience method for getRegistry().lookup.
lookup(String, long, TimeUnit) - Method in class org.newsclub.net.unix.rmi.AFRegistry
Returns the remote reference bound to the specified name in this registry.
lookup(String, long, TimeUnit) - Method in class org.newsclub.net.unix.rmi.AFNaming
Convenience method for getRegistry().lookup.
lookup(String, long, TimeUnit) - Method in class org.newsclub.net.unix.rmi.AFUNIXNaming
Convenience method for getRegistry().lookup.

N

newAFRegistry(Registry) - Method in class org.newsclub.net.unix.rmi.AFNaming
Creates a new AFRegistry given a Registry implementation.
newAFRegistry(Registry) - Method in class org.newsclub.net.unix.rmi.AFUNIXNaming
 
newConnectedSocket(AFSocketAddress) - Method in class org.newsclub.net.unix.rmi.AFRMISocketFactory
Creates a new socket that is connected to the given socket address.
newConnectedSocket(AFSocketAddress) - Method in class org.newsclub.net.unix.rmi.AFUNIXRMISocketFactory
 
newInstance(int) - Method in interface org.newsclub.net.unix.rmi.AFNamingProvider
Creates a new AFNaming instance using the given registry port.
newPort() - Method in interface org.newsclub.net.unix.rmi.AFRMIService
Registers a new anonymous port and returns it.
newPort() - Method in class org.newsclub.net.unix.rmi.AFRMISocketFactory
newPortLease() - Method in class org.newsclub.net.unix.rmi.AFRMISocketFactory
Returns a new free port.
newPrivateInstance() - Static method in class org.newsclub.net.unix.rmi.AFUNIXNaming
Returns a new private instance that resides in a custom location, to avoid any collisions with existing instances.
newSocketAddress(int) - Method in class org.newsclub.net.unix.rmi.AFRMISocketFactory
Creates a new socket address for the given RMI port.
newSocketAddress(int) - Method in class org.newsclub.net.unix.rmi.AFUNIXRMISocketFactory
 

O

openPorts() - Method in interface org.newsclub.net.unix.rmi.AFRMIService
Returns a stream of open ports.
openRegistry(long, TimeUnit) - Method in class org.newsclub.net.unix.rmi.AFNaming
Tries to access the registry, waiting some time if necessary.
openRegistry(long, TimeUnit) - Method in class org.newsclub.net.unix.rmi.AFUNIXNaming
 
org.newsclub.net.unix.rmi - module org.newsclub.net.unix.rmi
RMI support.
org.newsclub.net.unix.rmi - package org.newsclub.net.unix.rmi
Provides code that allows RMI communication over AF_UNIX sockets.

R

readExternal(ObjectInput) - Method in class org.newsclub.net.unix.rmi.AFRMISocketFactory
 
readExternal(ObjectInput) - Method in class org.newsclub.net.unix.rmi.AFUNIXRMISocketFactory
 
readExternal(ObjectInput) - Method in class org.newsclub.net.unix.rmi.RemoteFileDescriptorBase
 
readNamingInstance(ObjectInput) - Method in class org.newsclub.net.unix.rmi.AFRMISocketFactory
Deserializes information necessary to instantiate the AFNaming instance.
readNamingInstance(ObjectInput) - Method in class org.newsclub.net.unix.rmi.AFUNIXRMISocketFactory
 
rebind(String, Remote) - Method in class org.newsclub.net.unix.rmi.AFRegistry
 
rebind(String, Remote) - Method in class org.newsclub.net.unix.rmi.AFNaming
Convenience method for getRegistry().rebind.
rebind(String, Remote) - Method in class org.newsclub.net.unix.rmi.AFUNIXNaming
Convenience method for getRegistry().rebind.
registerForShutdown(Closeable) - Method in interface org.newsclub.net.unix.rmi.AFRMIService
Adds the given Closeable to the list of instances to be closed upon shutdown of the RMI registry.
RemoteCloseable<T> - Interface in org.newsclub.net.unix.rmi
A resource that can be exposed remotely, and closed locally as well as remotely.
RemoteCloseableImpl<T> - Class in org.newsclub.net.unix.rmi
The default implementation of RemoteCloseable.
RemoteCloseableImpl(RMISocketFactory, T) - Constructor for class org.newsclub.net.unix.rmi.RemoteCloseableImpl
Created a new instance.
RemoteFileDescriptor - Class in org.newsclub.net.unix.rmi
A generic (unspecific) FileDescriptor reference.
RemoteFileDescriptor() - Constructor for class org.newsclub.net.unix.rmi.RemoteFileDescriptor
Creates an uninitialized instance; used for externalization.
RemoteFileDescriptor(AFUNIXRMISocketFactory, FileDescriptor) - Constructor for class org.newsclub.net.unix.rmi.RemoteFileDescriptor
Creates a new RemoteFileOutput instance, encapsulating a generic FileDescriptor so that it can be shared with other processes via RMI.
RemoteFileDescriptorBase<T> - Class in org.newsclub.net.unix.rmi
A wrapper that allows a FileDescriptor be sent via RMI over AF_UNIX sockets.
RemoteFileDescriptorBase() - Constructor for class org.newsclub.net.unix.rmi.RemoteFileDescriptorBase
Creates an uninitialized instance; used for externalization.
RemoteFileInput - Class in org.newsclub.net.unix.rmi
A specialized subclass of RemoteFileDescriptorBase, specifically for FileInputStreams.
RemoteFileInput() - Constructor for class org.newsclub.net.unix.rmi.RemoteFileInput
Creates an uninitialized instance; used for externalization.
RemoteFileInput(AFUNIXRMISocketFactory, FileInputStream) - Constructor for class org.newsclub.net.unix.rmi.RemoteFileInput
Creates a new RemoteFileInput instance, encapsulating a FileInputStream so that it can be shared with other processes via RMI.
RemoteFileOutput - Class in org.newsclub.net.unix.rmi
A specialized subclass of RemoteFileDescriptorBase, specifically for FileOutputStreams.
RemoteFileOutput() - Constructor for class org.newsclub.net.unix.rmi.RemoteFileOutput
Creates an uninitialized instance; used for externalization.
RemoteFileOutput(AFUNIXRMISocketFactory, FileOutputStream) - Constructor for class org.newsclub.net.unix.rmi.RemoteFileOutput
Creates a new RemoteFileOutput instance, encapsulating a FileOutputStream so that it can be shared with other processes via RMI.
remotePeerCredentials() - Static method in class org.newsclub.net.unix.rmi.RemotePeerInfo
Returns the AFUNIXSocketCredentials for the currently active remote session (RemoteServer session during a remote method invocation), or null if it was not possible to retrieve these credentials.
remotePeerCredentials(Remote) - Static method in class org.newsclub.net.unix.rmi.RemotePeerInfo
Returns the AFUNIXSocketCredentials for the peer (server) of the given Remote instance, or null if it was not possible to retrieve these credentials.
RemotePeerInfo - Class in org.newsclub.net.unix.rmi
Information about the remote connection.
resource - Variable in class org.newsclub.net.unix.rmi.RemoteFileDescriptorBase
An optional, closeable resource that is related to this instance.
returnPort(int) - Method in interface org.newsclub.net.unix.rmi.AFRMIService
Returns a previously registered port.
returnPort(int) - Method in class org.newsclub.net.unix.rmi.AFRMISocketFactory

S

setRemoteShutdownAllowed(boolean) - Method in class org.newsclub.net.unix.rmi.AFNaming
Controls whether this AFNaming instance can be shut down remotely.
shutdown() - Method in interface org.newsclub.net.unix.rmi.AFRMIService
Asks that this RMI registry gets shut down.
shutdownRegistry() - Method in class org.newsclub.net.unix.rmi.AFNaming
Shuts this RMI Registry down.
shutdownRegistryFinishingTouches() - Method in class org.newsclub.net.unix.rmi.AFNaming
Called by AFNaming.shutdownRegistry() as the final step.
shutdownRegistryFinishingTouches() - Method in class org.newsclub.net.unix.rmi.AFUNIXNaming
 

T

toString() - Method in class org.newsclub.net.unix.rmi.AFUNIXRMISocketFactory
 
toString() - Method in class org.newsclub.net.unix.rmi.RemotePeerInfo
 

U

unbind(String) - Method in class org.newsclub.net.unix.rmi.AFRegistry
 
unbind(String) - Method in class org.newsclub.net.unix.rmi.AFNaming
Convenience method for getRegistry().unbind.
unbind(String) - Method in class org.newsclub.net.unix.rmi.AFUNIXNaming
Convenience method for getRegistry().unbind.
unexportAndUnbind(String, Remote) - Method in class org.newsclub.net.unix.rmi.AFNaming
Forcibly un-exports the given object, if it exists, and unbinds the object from the registry (otherwise returns without an error).
unexportObject(Remote) - Static method in class org.newsclub.net.unix.rmi.AFNaming
Forcibly un-exports the given object, if it exists (otherwise returns without an error).
unregisterForShutdown(Closeable) - Method in interface org.newsclub.net.unix.rmi.AFRMIService
Removes the given Closeable from the list of instances to be closed upon shutdown of the RMI registry.

W

writeExternal(ObjectOutput) - Method in class org.newsclub.net.unix.rmi.AFRMISocketFactory
 
writeExternal(ObjectOutput) - Method in class org.newsclub.net.unix.rmi.AFUNIXRMISocketFactory
 
writeExternal(ObjectOutput) - Method in class org.newsclub.net.unix.rmi.RemoteFileDescriptorBase
 
writeNamingInstance(ObjectOutput, AFNaming) - Method in class org.newsclub.net.unix.rmi.AFRMISocketFactory
Serializes information necessary to instantiate the given AFNaming instance.
writeNamingInstance(ObjectOutput, AFNaming) - Method in class org.newsclub.net.unix.rmi.AFUNIXRMISocketFactory
 
A B C D E G H I L N O R S T U W 
All Classes and Interfaces|All Packages|Serialized Form