public final class

LocalRMIServerSocketFactory

extends Object
implements RMIServerSocketFactory
java.lang.Object
   ↳ sun.management.jmxremote.LocalRMIServerSocketFactory

Class Overview

This RMI server socket factory creates server sockets that will only accept connection requests from clients running on the host where the RMI remote objects have been exported.

Summary

Public Constructors
LocalRMIServerSocketFactory()
Public Methods
ServerSocket createServerSocket(int port)
Creates a server socket that only accepts connection requests from clients running on the host where the RMI remote objects have been exported.
boolean equals(Object obj)
Two LocalRMIServerSocketFactory objects are equal if they are of the same type.
int hashCode()
Returns a hash code value for this LocalRMIServerSocketFactory.
[Expand]
Inherited Methods
From class java.lang.Object
From interface java.rmi.server.RMIServerSocketFactory

Public Constructors

public LocalRMIServerSocketFactory ()

Public Methods

public ServerSocket createServerSocket (int port)

Creates a server socket that only accepts connection requests from clients running on the host where the RMI remote objects have been exported.

Parameters
port the port number
Returns
  • the server socket on the specified port
Throws
IOException

public boolean equals (Object obj)

Two LocalRMIServerSocketFactory objects are equal if they are of the same type.

Parameters
obj the reference object with which to compare.
Returns
  • true if this object is the same as the obj argument; false otherwise.

public int hashCode ()

Returns a hash code value for this LocalRMIServerSocketFactory.

Returns
  • a hash code value for this object.