|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--com.adventnet.adaptors.AbstractAdaptor
|
+--com.adventnet.adaptors.corba.CorbaAdaptor
This class acts as a JMX adaptor for IIOP protocol.
It itself acts as a mbean for exposing the Corba properties. This class extends the SimpleAdaptor which provides the implementation of ServiceInfo interface and acts as the Corba server.
| Inner classes inherited from class com.adventnet.adaptors.AbstractAdaptor |
AbstractAdaptor.ProcessNotification |
| Field Summary | |
(package private) java.lang.String |
classpath
|
(package private) java.lang.String |
cmd
|
static java.lang.String |
factoryName
The CorbaFactory interface NameComponent string with which it is registered immediately to the rootcontext(i.e NameService). |
(package private) java.lang.String |
java_home
|
(package private) java.lang.Process |
p
|
| Fields inherited from class com.adventnet.adaptors.AbstractAdaptor |
handleNotificationinNewThread,
notifications,
port,
processnotification,
state |
| Constructor Summary | |
CorbaAdaptor()
The default constructor for CorbaAdaptor.By default,corba server will be initialized at port 1050. |
|
CorbaAdaptor(int portNo,
MBeanServer server)
The two Arg constructor initializes the CorbaAdaptor at the port specified by portNo |
|
| Method Summary | |
void |
addUser(com.adventnet.agent.security.UserContext userContext)
Adds the users specified in the UserContext to the Authentication List of the Adaptor |
void |
bind()
Binds the Corba Adaptor to the Naming Service |
void |
destroyAdaptor()
Allows the service to get stopped. |
void |
enableAuthentication(boolean enable)
Enables Authentication for the RMI Adaptor |
void |
enableAuthorisation(boolean enable)
Enables Authorisation for the RMI Adaptor |
ObjectName |
getAdaptorObjectName()
Returns the ObjectName with which the Adaptor is registered with the MBean server |
java.lang.String |
getAdaptorVersion()
Gets the version of the adaptor. |
java.lang.Object |
getAttribute(java.lang.String attribute)
Gets the value of a specific attribute of this MBean. |
AttributeList |
getAttributes(java.lang.String[] attributes)
Enables the values of several attributes of this MBean. |
MBeanInfo |
getMBeanInfo()
This method discovers the attributes and operations this MBean exposes for management. |
java.lang.String |
getObjectName()
Returns the ObjectName of this adaptor with which it has been registered with the MBeanServer. |
java.lang.String |
getPersistentName()
Returns the name of the serialized file in which the User Context details are stored. |
java.lang.String |
getProtocol()
Gets the protocol supported by this adaptor. |
void |
instantiateAdaptor()
Instantiates the Corba Adaptor.By default,Corba Adaptor will be initialized at port 1050 |
java.lang.Object |
invoke(java.lang.String actionName,
java.lang.Object[] params,
java.lang.String[] signature)
Invokes an action on the original MBean associated with this MBean. |
void |
postDeregister()
Allows this MBean to perform any operations needed after having been de-registered in the MBeanServer. |
void |
postRegister(java.lang.Boolean registrationDone)
Allows this MBean to perform any operations needed after having been registered in the MBeanServer or after the registration has failed. |
void |
preDeregister()
Allows this MBean to perform any operations it needs before being de-registered by the MBeanServer. |
ObjectName |
preRegister(MBeanServer server,
ObjectName name)
This method is an implementation of MBeanRegistration interface. |
void |
removeUser(com.adventnet.agent.security.UserContext userContext)
Removes the users specified in the UserContext from the Authenticatio List of the Adaptor |
void |
setAttribute(Attribute attribute)
Sets the value of a specific attribute of this MBean. |
AttributeList |
setAttributes(AttributeList attributes)
Sets the values of several attributes of this MBean. |
void |
setPersistentName(java.lang.String name)
Sets the name of the serialized file in which the User Context details are stored. |
void |
setPort(java.lang.Integer port)
|
void |
unbind()
Unbinds the Corba Adaptor from the Naming Service |
| Methods inherited from class com.adventnet.adaptors.AbstractAdaptor |
addNotificationListener,
changeState,
getHost,
getNotificationInfo,
getPort,
getState,
getStateInString,
handleNotification,
isActive,
isSecure,
processNotification,
removeNotificationListener,
setPort,
startService,
stopService |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
public static final java.lang.String factoryName
java.lang.Process p
java.lang.String cmd
java.lang.String classpath
java.lang.String java_home
| Constructor Detail |
public CorbaAdaptor()
public CorbaAdaptor(int portNo,
MBeanServer server)
portNo - the port at which the CorbaAdaptor has to be initializedserver - the MBean server to which the adaptor will be registered| Method Detail |
public void setPort(java.lang.Integer port)
throws java.lang.Exception
public ObjectName getAdaptorObjectName()
public void addUser(com.adventnet.agent.security.UserContext userContext)
userContext - the UserContext which has to be addedpublic void removeUser(com.adventnet.agent.security.UserContext userContext)
userContext - the UserContext which has to be removedpublic void setPersistentName(java.lang.String name)
name - name of the Serialized filepublic java.lang.String getPersistentName()
public MBeanInfo getMBeanInfo()
public java.lang.Object getAttribute(java.lang.String attribute)
throws AttributeNotFoundException,
MBeanException,
ReflectionException
attribute - A String specifying the name of the
attribute to be retrieved.public AttributeList getAttributes(java.lang.String[] attributes)
attributes - A list of attributes to be retrieved.
public java.lang.Object invoke(java.lang.String actionName,
java.lang.Object[] params,
java.lang.String[] signature)
throws MBeanException,
ReflectionException
actionName - The name of the action to be invoked.params - An array containing the parameters to be
set when the action is invokedsignature - An array containing the signature of
the action. The class objects will be loaded using the
same class loader as the one used for loading the MBean
on which the action was invoked.
public void setAttribute(Attribute attribute)
throws AttributeNotFoundException,
InvalidAttributeValueException,
MBeanException,
ReflectionException
attribute - The identification of the attribute to
be set and the value it is to be set to.public AttributeList setAttributes(AttributeList attributes)
attributes - A list of attributes: The identification
of the attributes to be set and the values they are to be set to.public void instantiateAdaptor()
public void bind()
public void unbind()
public ObjectName preRegister(MBeanServer server,
ObjectName name)
throws java.lang.Exception
This method is called by the MBeanServer before this mbean getting registered with the server. If the passed objectName is invalid, the returned objectName is taken as valid name to get registered with the server.
The service gets actually started only inside this method at the specified port mentioned in the key "port". If the key "port" is absent, then the service(CORBA) gets started at the default port 1050.
server - The MBeanServer in which the MBean will be registered.name - The object name of the MBean.public void postRegister(java.lang.Boolean registrationDone)
registrationDone - Indicates whether or not the MBean has been successfully
registered in the MBeanServer. The value false means that either the registration phase
has failed.
public void preDeregister()
throws java.lang.Exception
public void postDeregister()
public void destroyAdaptor()
public java.lang.String getObjectName()
public java.lang.String getAdaptorVersion()
public java.lang.String getProtocol()
public void enableAuthorisation(boolean enable)
throws java.lang.UnsupportedOperationException
enable - Enables Authorisation if the value is true
public void enableAuthentication(boolean enable)
throws java.lang.UnsupportedOperationException
enable - Enables Authentication if the value is true
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||