com.sun.jdmk.comm
Class RmiConnectorAddress

java.lang.Object
  extended by com.sun.jdmk.comm.RmiConnectorAddress
All Implemented Interfaces:
ConnectorAddress, Serializable

Deprecated. The JMX Remote API should be used in preference to the legacy Java DMK connector classes. The legacy RMI connector, including this class, may be removed in a future version of Java DMK. See javax.management.remote.rmi and JdmkLegacyConnector.

public class RmiConnectorAddress
extends Object
implements ConnectorAddress

Defines the RMI connector address. This object is used by the connector client to check that the address used as the argument of its connect method is of the appropriate type.

The default rmi registry hostname is the local hostname.

The default rmi registry port is specified by the constant ServiceName.RMI_CONNECTOR_PORT.

The default rmi service name (the RmiConnectorServer's service name) is specified by the constant ServiceName.RMI_CONNECTOR_SERVER.

See Also:
Serialized Form

Constructor Summary
RmiConnectorAddress()
          Deprecated. RmiConnectorAddress constructor.
RmiConnectorAddress(String host, int port, String serviceName)
          Deprecated. RmiConnectorAddress constructor.
 
Method Summary
 String getConnectorType()
          Deprecated. Returns the type of connector.
 String getHost()
          Deprecated. Returns the RMI Connector Server hostname.
 String getName()
          Deprecated. Returns the RMI Connector Server service name.
 int getPort()
          Deprecated. Returns the RMI Connector Server port number.
 void setHost(String host)
          Deprecated. Sets the value of the RMI Connector Server host property.
 void setName(String serviceName)
          Deprecated. Sets the value of the RMI Connector Server service name property.
 void setPort(int port)
          Deprecated. Sets the value of the RMI Connector Server port property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RmiConnectorAddress

public RmiConnectorAddress()
Deprecated. 
RmiConnectorAddress constructor.

The default host is the local hostname.

The default port is defined by com.sun.jdmk.ServiceName.RMI_CONNECTOR_PORT.

The default service name is defined by com.sun.jdmk.ServiceName.RMI_CONNECTOR_SERVER.


RmiConnectorAddress

public RmiConnectorAddress(String host,
                           int port,
                           String serviceName)
Deprecated. 
RmiConnectorAddress constructor.

Parameters:
host - The host specifies the hostname where the rmi registry is running.
port - The port specifies the port number where the rmi registry is running.
serviceName - The service name specifies the name the RMI connector server used to register in the rmi registry.
Method Detail

getConnectorType

public String getConnectorType()
Deprecated. 
Returns the type of connector.

Specified by:
getConnectorType in interface ConnectorAddress
Returns:
the value of the connector type property.

getHost

public String getHost()
Deprecated. 
Returns the RMI Connector Server hostname.

Returns:
the value of the server host property.

setHost

public void setHost(String host)
Deprecated. 
Sets the value of the RMI Connector Server host property.

Parameters:
host - the new value of the server host property.

getPort

public int getPort()
Deprecated. 
Returns the RMI Connector Server port number.

Returns:
the value of the server port property.

setPort

public void setPort(int port)
Deprecated. 
Sets the value of the RMI Connector Server port property.

Parameters:
port - the new value of the server port property.

getName

public String getName()
Deprecated. 
Returns the RMI Connector Server service name.

Returns:
the value of the server service name property.

setName

public void setName(String serviceName)
Deprecated. 
Sets the value of the RMI Connector Server service name property.

Parameters:
serviceName - the new value of the server service name property.

Open Source build 02
opendmk-1.0-b02 2007.10.01_19:17:46_MEST

Copyright 1998-2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.