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

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

public class AdaptorServerImpl
extends AdaptorServer

The AdaptorServerImpl class implements the IIOP adaptor server. The implementation is provided as an m-bean. Therefore the class can be dynamically instantiated at any time by a Java Dynamic Management agent.

Once the class is instantiated, the Java Dynamic Management agent can be controlled and managed through an AdaptorClient IIOP adaptor client.

When instantiating the object, it is possible to specify the service name, the host on which the CORBA naming service in running and the port used by the CORBA naming service. The following properties must be specified in the object name:

For instance, if you want a CORBA naming service which runs on machine 'sky', using port 9999, you can specify the following object name:

See Also:
AdaptorMO, 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.Integer getPort()
          Returns the iiop port number used by this adaptor
 java.lang.String getProtocol()
          Returns the name of the protocol (iiop).
 java.lang.String getServiceName()
          Returns the service name of this IIOP 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, 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. 8085 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 IIOP 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

getPort

public java.lang.Integer getPort()
Returns the iiop port number used by this adaptor
Overrides:
getPort 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 IIOP object.

getProtocol

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

getDomain

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