com.sun.jaw.impl.adaptor.rmi
Class AdaptorServerImpl

java.lang.Object
  |
  +--com.sun.jaw.impl.adaptor.generic.AdaptorServer
        |
        +--com.sun.jaw.impl.adaptor.rmi.AdaptorServerImpl

public class AdaptorServerImpl
extends AdaptorServer

The AdaptorServerImpl class provides an implementation of the AdaptorServer interface.

When creating the adaptor server, it is possible to specify the port number and service name to be used. To do so, in the object name you need to specify the following properties:

For instance, if you want to use port 44450, you can specify the following object name:

See Also:
AdaptorMO, AdaptorServer, AdaptorClient, Serialized Form

Fields inherited from class com.sun.jaw.impl.adaptor.generic.AdaptorServer
cmf, maxActiveClientCount, objectName, OFFLINE, ONLINE, port, STARTING, state, STOPPING
 
Constructor Summary
AdaptorServerImpl()
          Default constructor for AdaptorServerImpl.
 
Method Summary
 java.lang.String getClassVersion()
          Returns the version of this class.
 java.lang.String getDomain()
          Returns the value of the framework's domain.
 java.lang.String getProtocol()
          Returns the name of the protocol (rmi).
 java.lang.String getServiceName()
          Returns the service name of this RMI object.
 void initCmf(Framework f, ObjectName name, boolean db, ModificationList list)
          For Java DMK internal use only.
 
Methods inherited from class com.sun.jaw.impl.adaptor.generic.AdaptorServer
addAdaptorListener, deleteCmf, getActiveClientCount, getMaxActiveClientCount, getPort, getServedClientCount, getState, getStateString, isActive, performStart, performStop, performWaitState, removeAdaptorListener, setMaxActiveClientCount
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdaptorServerImpl

public AdaptorServerImpl()
Default constructor for AdaptorServerImpl. 1099 is used as default port number and the local host as host name.
Method Detail

initCmf

public void initCmf(Framework f,
                    ObjectName name,
                    boolean db,
                    ModificationList list)
             throws InstanceAlreadyExistException
For Java DMK internal use only.

Initializes the RMI adaptor server and registers it with the core management framework.

Parameters:
f - The core management framework to register the service with.
name - Object name.
db - Indicates if persistent storage is required.
list - The modification list to use for setting up parameters.
Throws:
InstanceAlreadyExistException - The m-bean is already registered in the repository.
Overrides:
initCmf in class AdaptorServer

getClassVersion

public java.lang.String getClassVersion()
Returns the version of this class.
Returns:
String representing the version of this class.

getServiceName

public java.lang.String getServiceName()
Returns the service name of this RMI object.

getProtocol

public java.lang.String getProtocol()
Returns the name of the protocol (rmi).
Overrides:
getProtocol in class AdaptorServer

getDomain

public java.lang.String getDomain()
Returns the value of the framework's domain.