com.adventnet.adaptors.corba
Class RemoteMBeanServerImpl

java.lang.Object
  |
  +--org.omg.CORBA.portable.ObjectImpl
        |
        +--com.adventnet.adaptors.corba.server._RemoteMBeanServerImplBase
              |
              +--com.adventnet.adaptors.corba.RemoteMBeanServerImpl

public class RemoteMBeanServerImpl
extends com.adventnet.adaptors.corba.server._RemoteMBeanServerImplBase

IDL definition:
#pragma prefix "server"
interface CorbaFactory {
::server::byteCodeObject getAdaptorObjectName();
string getAdaptorVersion();
void addNotificationListener(
in ::server::byteCodeObject name,
in ::server::NotificationListener listener,
in ::server::NotificationFilter filter,
in ::server::byteCodeObject handback
)
raises(
::server::CorbaInstanceNotFoundException,
::server::CorbaDeserializeException
);
void addNotificationListener2(
in ::server::byteCodeObject name,
in ::server::byteCodeObject listener,
in ::server::NotificationFilter filter,
in ::server::byteCodeObject handback
)
raises(
::server::CorbaInstanceNotFoundException,
::server::CorbaDeserializeException
);
::server::byteCodeObject createMBean(
in string className,
in ::server::byteCodeObject name
)
raises(
::server::CorbaReflectionException,
::server::CorbaInstanceAlreadyExistsException,
::server::CorbaMBeanRegistrationException,
::server::CorbaMBeanException,
::server::CorbaNotCompliantMBeanException,
::server::CorbaDeserializeException
);
::server::byteCodeObject createMBean2(
in string className,
in ::server::byteCodeObject name,
in ::server::byteCodeObject params,
in ::server::byteCodeObject signature
)
raises(
::server::CorbaReflectionException,
::server::CorbaInstanceAlreadyExistsException,
::server::CorbaMBeanRegistrationException,
::server::CorbaMBeanException,
::server::CorbaNotCompliantMBeanException,
::server::CorbaDeserializeException
);
::server::byteCodeObject createMBean3(
in string className,
in ::server::byteCodeObject name,
in ::server::byteCodeObject loaderName
)
raises(
::server::CorbaReflectionException,
::server::CorbaInstanceAlreadyExistsException,
::server::CorbaMBeanRegistrationException,
::server::CorbaMBeanException,
::server::CorbaNotCompliantMBeanException,
::server::CorbaInstanceNotFoundException,
::server::CorbaDeserializeException
);
::server::byteCodeObject createMBean4(
in string className,
in ::server::byteCodeObject name,
in ::server::byteCodeObject loaderName,
in ::server::byteCodeObject params,
in ::server::byteCodeObject signature
)
raises(
::server::CorbaReflectionException,
::server::CorbaInstanceAlreadyExistsException,
::server::CorbaMBeanRegistrationException,
::server::CorbaMBeanException,
::server::CorbaNotCompliantMBeanException,
::server::CorbaInstanceNotFoundException,
::server::CorbaDeserializeException
);
::server::byteCodeObject getAttribute(
in ::server::byteCodeObject name,
in string attr
)
raises(
::server::CorbaReflectionException,
::server::CorbaInstanceNotFoundException,
::server::CorbaMBeanException,
::server::CorbaAttributeNotFoundException,
::server::CorbaDeserializeException
);
::server::byteCodeObject getAttributes(
in ::server::byteCodeObject name,
in ::server::byteCodeObject attrs
)
raises(
::server::CorbaReflectionException,
::server::CorbaInstanceNotFoundException,
::server::CorbaDeserializeException
);
string getDefaultDomain();
::server::byteCodeObject getMBeanCount();
::server::byteCodeObject getMBeanInfo(
in ::server::byteCodeObject name
)
raises(
::server::CorbaReflectionException,
::server::CorbaInstanceNotFoundException,
::server::CorbaIntrospectionException,
::server::CorbaDeserializeException
);
::server::byteCodeObject getObjectInstance(
in ::server::byteCodeObject name
)
raises(
::server::CorbaInstanceNotFoundException,
::server::CorbaDeserializeException
);
::server::byteCodeObject instantiate(
in string className
)
raises(
::server::CorbaReflectionException,
::server::CorbaMBeanException
);
::server::byteCodeObject instantiate2(
in string className,
in ::server::byteCodeObject params,
in ::server::byteCodeObject signature
)
raises(
::server::CorbaReflectionException,
::server::CorbaMBeanException
);
::server::byteCodeObject instantiate3(
in string className,
in ::server::byteCodeObject loaderName
)
raises(
::server::CorbaReflectionException,
::server::CorbaMBeanException,
::server::CorbaInstanceNotFoundException
);
::server::byteCodeObject instantiate4(
in string className,
in ::server::byteCodeObject loaderName,
in ::server::byteCodeObject params,
in ::server::byteCodeObject signature
)
raises(
::server::CorbaReflectionException,
::server::CorbaMBeanException,
::server::CorbaInstanceNotFoundException
);
::server::byteCodeObject invoke(
in ::server::byteCodeObject name,
in string actionName,
in ::server::byteCodeObject params,
in ::server::byteCodeObject signature
)
raises(
::server::CorbaReflectionException,
::server::CorbaMBeanException,
::server::CorbaInstanceNotFoundException,
::server::CorbaDeserializeException
);
boolean isRegistered(
in ::server::byteCodeObject name
)
raises(
::server::CorbaDeserializeException
);
boolean isInstanceOf(
in ::server::byteCodeObject name,
in string className
)
raises(
::server::CorbaInstanceNotFoundException,
::server::CorbaDeserializeException
);
::server::byteCodeObject queryMBeans(
in ::server::byteCodeObject name,
in ::server::byteCodeObject query
)
raises(
::server::CorbaDeserializeException
);
::server::byteCodeObject queryNames(
in ::server::byteCodeObject name,
in ::server::byteCodeObject query
)
raises(
::server::CorbaDeserializeException
);
::server::byteCodeObject registerMBean(
in string className,
in ::server::byteCodeObject name
)
raises(
::server::CorbaInstanceAlreadyExistsException,
::server::CorbaMBeanRegistrationException,
::server::CorbaNotCompliantMBeanException,
::server::CorbaDeserializeException
);
::server::byteCodeObject registerAsModelMBean(
in ::server::byteCodeObject className,
in string xmlFileName,
in ::server::byteCodeObject name
)
raises(
::server::CorbaInstanceAlreadyExistsException,
::server::CorbaMBeanRegistrationException,
::server::CorbaNotCompliantMBeanException,
::server::CorbaDeserializeException
);
void removeNotificationListener(
in ::server::byteCodeObject name,
in ::server::NotificationListener listener
)
raises(
::server::CorbaInstanceNotFoundException,
::server::CorbaListenerNotFoundException,
::server::CorbaDeserializeException
);
void removeNotificationListener2(
in ::server::byteCodeObject name,
in ::server::byteCodeObject listener
)
raises(
::server::CorbaInstanceNotFoundException,
::server::CorbaListenerNotFoundException,
::server::CorbaDeserializeException
);
void setAttribute(
in ::server::byteCodeObject name,
in ::server::byteCodeObject attr
)
raises(
::server::CorbaInstanceNotFoundException,
::server::CorbaAttributeNotFoundException,
::server::CorbaInvalidAttributeValueException,
::server::CorbaReflectionException,
::server::CorbaMBeanException,
::server::CorbaDeserializeException
);
::server::byteCodeObject setAttributes(
in ::server::byteCodeObject name,
in ::server::byteCodeObject attrs
)
raises(
::server::CorbaInstanceNotFoundException,
::server::CorbaReflectionException,
::server::CorbaDeserializeException
);
void unregisterMBean(
in ::server::byteCodeObject name
)
raises(
::server::CorbaInstanceNotFoundException,
::server::CorbaMBeanRegistrationException,
::server::CorbaDeserializeException
);
};

This class acts as the factory for the Corba Adaptor clients.

See Also:
Serialized Form

Field Summary
(package private)  java.lang.String implName
           
(package private)  MBeanServer server
           
 
Constructor Summary
RemoteMBeanServerImpl(MBeanServer server)
          The constructor which takes MBeanServer as a parameter.
RemoteMBeanServerImpl(java.lang.String implName)
          The constructor which takes the implName of this corba object as a parameter.
RemoteMBeanServerImpl(java.lang.String implName, MBeanServer server)
          The constructor which takes the both implName of this corba object and MBeanServer reference as parameters.
 
Method Summary
 void addNotificationListener(byte[] name, com.adventnet.adaptors.corba.server.NotificationListener listener, com.adventnet.adaptors.corba.server.NotificationFilter filter, byte[] handback)
           Operation: ::server::CorbaFactory::addNotificationListener.
 void addNotificationListener2(byte[] name, byte[] listener, com.adventnet.adaptors.corba.server.NotificationFilter filter, byte[] handback)
           Operation: ::server::CorbaFactory::addNotificationListener2.
 void addUser(com.adventnet.agent.security.UserContext userContext)
          Adds the users specified in the UserContext to the Authentication List of the Adaptor
 void authenticate(byte[] usercontext)
          Authenticates the users specified in the UserContext.
 byte[] createMBean(java.lang.String className, byte[] name)
           Operation: ::server::CorbaFactory::createMBean.
 byte[] createMBean2(java.lang.String className, byte[] name, byte[] params, byte[] signature)
           Operation: ::server::CorbaFactory::createMBean2.
 byte[] createMBean3(java.lang.String className, byte[] name, byte[] loaderName)
           Operation: ::server::CorbaFactory::createMBean3.
 byte[] createMBean4(java.lang.String className, byte[] name, byte[] loaderName, byte[] params, byte[] signature)
           Operation: ::server::CorbaFactory::createMBean4.
(package private) static java.lang.Object deSerialize(byte[] data)
           
 void enableAuthentication(boolean authenticate)
          Enables Authentication for the RMI Adaptor
 void enableAuthorisation(boolean authorise)
          Enables Authorisation for the Corba Adaptor
 MBeanInfo getAccessViewMBeanInfo(MBeanInfo mbeanInfo, ObjectName name)
           
 byte[] getAdaptorObjectName()
           Operation: ::server::CorbaFactory::getAdaptorObjectName.
 java.lang.String getAdaptorVersion()
           Operation: ::server::CorbaFactory::getAdaptorVersion.
 byte[] getAttribute(byte[] name, java.lang.String attr)
           Operation: ::server::CorbaFactory::getAttribute.
 byte[] getAttributes(byte[] name, byte[] attrs)
           Operation: ::server::CorbaFactory::getAttributes.
 java.lang.String getDefaultDomain()
           Operation: ::server::CorbaFactory::getDefaultDomain.
 java.lang.String getImplName()
          Returns the implementation name of this corba Object with which it gets binded with the corba naming service.
 byte[] getMBeanCount()
           Operation: ::server::CorbaFactory::getMBeanCount.
 byte[] getMBeanInfo(byte[] name)
           Operation: ::server::CorbaFactory::getMBeanInfo.
 byte[] getObjectInstance(byte[] name)
           Operation: ::server::CorbaFactory::getObjectInstance.
 java.lang.String getPersistentName()
          Returns the name of the serialized file in which the User Context details are stored
 java.util.Set getViewAccessMBeans(java.util.Set names)
           
 java.util.Set getViewAccessNames(java.util.Set names)
           
 byte[] instantiate(java.lang.String className)
           Operation: ::server::CorbaFactory::instantiate.
 byte[] instantiate2(java.lang.String className, byte[] params, byte[] signature)
           Operation: ::server::CorbaFactory::instantiate2.
 byte[] instantiate3(java.lang.String className, byte[] loaderName)
           Operation: ::server::CorbaFactory::instantiate3.
 byte[] instantiate4(java.lang.String className, byte[] loaderName, byte[] params, byte[] signature)
           Operation: ::server::CorbaFactory::instantiate4.
 byte[] invoke(byte[] name, java.lang.String actionName, byte[] params, byte[] signature)
           Operation: ::server::CorbaFactory::invoke.
 boolean isAuthenticationEnabled()
          Determines whether authentication is enabled or not
 boolean isInstanceOf(byte[] name, java.lang.String className)
           Operation: ::server::CorbaFactory::isRegistered.
 boolean isRegistered(byte[] name)
           Operation: ::server::CorbaFactory::isRegistered.
 byte[] queryMBeans(byte[] name, byte[] query)
           Operation: ::server::CorbaFactory::queryMBeans.
 byte[] queryNames(byte[] name, byte[] query)
           Operation: ::server::CorbaFactory::queryNames.
 byte[] registerAsModelMBean(byte[] mbean, java.lang.String xmlFile, byte[] name)
           Operation: ::server::CorbaFactory::registerAsModelMBean.
 byte[] registerMBean(java.lang.String className, byte[] name)
           Operation: ::server::CorbaFactory::registerMBean.
 void removeNotificationListener(byte[] name, com.adventnet.adaptors.corba.server.NotificationListener listener)
           Operation: ::server::CorbaFactory::removeNotificationListener.
 void removeNotificationListener2(byte[] name, byte[] listener)
           Operation: ::server::CorbaFactory::removeNotificationListener2.
 void removeUser(com.adventnet.agent.security.UserContext userContext)
          Removes the users specified in the UserContext from the Authentication List of the Adaptor
(package private) static byte[] serialize(java.lang.Object obj)
           
(package private)  void setAdaptorObjectName(ObjectName name)
           
(package private)  void setAdaptorVersion(java.lang.String version)
           
 void setAttribute(byte[] name, byte[] attr)
           Operation: ::server::CorbaFactory::setAttribute.
 byte[] setAttributes(byte[] name, byte[] attrs)
           Operation: ::server::CorbaFactory::setAttributes.
 void setPersistentName(java.lang.String name)
          Sets the name of the Serialized file in which the UserContext details are stored.
 void unregisterMBean(byte[] name)
           Operation: ::server::CorbaFactory::unregisterMBean.
 
Methods inherited from class com.adventnet.adaptors.corba.server._RemoteMBeanServerImplBase
_ids, _invoke,
 
Methods inherited from class org.omg.CORBA.portable.ObjectImpl
_create_request, _create_request, _duplicate, _get_delegate, _get_domain_managers, _get_interface_def, _get_policy, _hash, _invoke, _is_a, _is_equivalent, _is_local, _non_existent, _orb, _release, _releaseReply, _request, _request, _servant_postinvoke, _servant_preinvoke, _set_delegate, _set_policy_override, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

implName

java.lang.String implName

server

MBeanServer server
Constructor Detail

RemoteMBeanServerImpl

public RemoteMBeanServerImpl(java.lang.String implName)
The constructor which takes the implName of this corba object as a parameter.
Parameters:
The - implName of the corba object.

RemoteMBeanServerImpl

public RemoteMBeanServerImpl(MBeanServer server)
The constructor which takes MBeanServer as a parameter.
Parameters:
server - The MBeanServer object.

RemoteMBeanServerImpl

public RemoteMBeanServerImpl(java.lang.String implName,
                             MBeanServer server)
The constructor which takes the both implName of this corba object and MBeanServer reference as parameters.
Parameters:
The - implName of the corba object.
server - The MBeanServer object.
Method Detail

setPersistentName

public void setPersistentName(java.lang.String name)
Sets the name of the Serialized file in which the UserContext details are stored.
Parameters:
the - name of the serialized file

getPersistentName

public java.lang.String getPersistentName()
Returns the name of the serialized file in which the User Context details are stored
Returns:
the name of the serialized file

getImplName

public java.lang.String getImplName()
Returns the implementation name of this corba Object with which it gets binded with the corba naming service.
Returns:
The implementation name of this corba

setAdaptorObjectName

void setAdaptorObjectName(ObjectName name)

setAdaptorVersion

void setAdaptorVersion(java.lang.String version)

getAttribute

public byte[] getAttribute(byte[] name,
                           java.lang.String attr)
                    throws com.adventnet.adaptors.corba.server.CorbaMBeanException,
                           com.adventnet.adaptors.corba.server.CorbaAttributeNotFoundException,
                           com.adventnet.adaptors.corba.server.CorbaInstanceNotFoundException,
                           com.adventnet.adaptors.corba.server.CorbaReflectionException,
                           com.adventnet.adaptors.corba.server.CorbaDeserializeException

Operation: ::server::CorbaFactory::getAttribute.

#pragma prefix "server/CorbaFactory"
::server::byteCodeObject getAttribute(
in ::server::byteCodeObject name,
in string attr
)
raises(
::server::CorbaReflectionException,
::server::CorbaInstanceNotFoundException,
::server::CorbaMBeanException,
::server::CorbaAttributeNotFoundException,
::server::CorbaDeserializeException
);

Gets the value of a specific attribute of a named MBean through this service(adaptor). The MBean is identified by its object name.

Overrides:
getAttribute in class com.adventnet.adaptors.corba.server._RemoteMBeanServerImplBase
Parameters:
name - The byte array version of object name of the MBean from which the attribute is to be retrieved.
attribute - A String specifying the name of the attribute to be retrieved.
Returns:
The byte array version of value of the retrieved attribute.
Throws:
com.adventnet.adaptors.corba.server.CorbaAttributeNotFoundException - The specified attribute is not accessible in the MBean.
com.adventnet.adaptors.corba.server.CorbaMBeanException - Wraps an exception thrown by the MBean's getter.
com.adventnet.adaptors.corba.server.CorbaInstanceNotFoundException - The specified MBean is not registered in the MBeanServer.
com.adventnet.adaptors.corba.server.CorbaReflectionException - Wraps an java.lang.Exception thrown while trying to invoke the setter.
com.adventnet.adaptors.corba.server.CorbaRuntimeOperationsException - Wraps a java.lang.IllegalArgumentException: The object name in parameter is null or the attribute in parameter is null.
com.adventnet.adaptors.corba.server.CorbaDeserializeException - when any any problems in the deserialization of the byte array equivalent of the passed objects.

serialize

static byte[] serialize(java.lang.Object obj)

deSerialize

static java.lang.Object deSerialize(byte[] data)

getAdaptorObjectName

public byte[] getAdaptorObjectName()

Operation: ::server::CorbaFactory::getAdaptorObjectName.

#pragma prefix "server/CorbaFactory"
::server::byteCodeObject getAdaptorObjectName();

Gets the ObjectName of the Corba Adaptor as the byte array.

Overrides:
getAdaptorObjectName in class com.adventnet.adaptors.corba.server._RemoteMBeanServerImplBase
Returns:
The ObjectName of the Corba Adaptor as the byte array.

getAdaptorVersion

public java.lang.String getAdaptorVersion()

Operation: ::server::CorbaFactory::getAdaptorVersion.

#pragma prefix "server/CorbaFactory"
string getAdaptorVersion();

Gets the version of the Corba Adaptor.

Overrides:
getAdaptorVersion in class com.adventnet.adaptors.corba.server._RemoteMBeanServerImplBase
Returns:
The version of the Corba Adaptor.

addNotificationListener

public void addNotificationListener(byte[] name,
                                    com.adventnet.adaptors.corba.server.NotificationListener listener,
                                    com.adventnet.adaptors.corba.server.NotificationFilter filter,
                                    byte[] handback)
                             throws com.adventnet.adaptors.corba.server.CorbaInstanceNotFoundException,
                                    com.adventnet.adaptors.corba.server.CorbaDeserializeException

Operation: ::server::CorbaFactory::addNotificationListener.

#pragma prefix "server/CorbaFactory"
void addNotificationListener(
in ::server::byteCodeObject name,
in ::server::NotificationListener listener,
in ::server::NotificationFilter filter,
in ::server::byteCodeObject handback
)
raises(
::server::CorbaInstanceNotFoundException,
::server::CorbaDeserializeException
);

Adds the corba NotificationListener to the MBeanServer as JMX NotificationListener with the specified mbean.

Overrides:
addNotificationListener in class com.adventnet.adaptors.corba.server._RemoteMBeanServerImplBase
Parameters:
name - the byte array version of the ObjectName of the mbean to which the specified corba notificationlistener is to registered.
listener - the corba notificationlistener
filter - the corba notificationfilter
handback - the byte array version of the handback object.
Throws:
com.adventnet.adaptors.corba.server.CorbaInstanceNotFoundException - The specified MBean is not registered in the MBeanServer.
com.adventnet.adaptors.corba.server.CorbaDeserializeException - when any any problems in the deserialization of the byte array equivalent of the passed objects.

removeNotificationListener

public void removeNotificationListener(byte[] name,
                                       com.adventnet.adaptors.corba.server.NotificationListener listener)
                                throws com.adventnet.adaptors.corba.server.CorbaInstanceNotFoundException,
                                       com.adventnet.adaptors.corba.server.CorbaListenerNotFoundException,
                                       com.adventnet.adaptors.corba.server.CorbaDeserializeException

Operation: ::server::CorbaFactory::removeNotificationListener.

#pragma prefix "server/CorbaFactory"
void removeNotificationListener(
in ::server::byteCodeObject name,
in ::server::NotificationListener listener
)
raises(
::server::CorbaInstanceNotFoundException,
::server::CorbaListenerNotFoundException,
::server::CorbaDeserializeException
);

Removes the corba NotificationListener from the MBeanServer which was registeres as JMX NotificationListener with the specified mbean.

Overrides:
removeNotificationListener in class com.adventnet.adaptors.corba.server._RemoteMBeanServerImplBase
Parameters:
name - the byte array version of the ObjectName of the mbean to which the specified corba notificationlistener was registered.
listener - the corba notificationlistener
Throws:
com.adventnet.adaptors.corba.server.CorbaListenerNotFoundException - The specified
com.adventnet.adaptors.corba.server.CorbaDeserializeException - when any any problems in the deserialization of the byte array equivalent of the passed objects.
com.adventnet.adaptors.corba.server.CorbaInstanceNotFoundException - The specified MBean is not registered in the MBeanServer.

addNotificationListener2

public void addNotificationListener2(byte[] name,
                                     byte[] listener,
                                     com.adventnet.adaptors.corba.server.NotificationFilter filter,
                                     byte[] handback)
                              throws com.adventnet.adaptors.corba.server.CorbaInstanceNotFoundException,
                                     com.adventnet.adaptors.corba.server.CorbaDeserializeException

Operation: ::server::CorbaFactory::addNotificationListener2.

#pragma prefix "server/CorbaFactory"
void addNotificationListener2(
in ::server::byteCodeObject name,
in ::server::byteCodeObject listener,
in ::server::NotificationFilter filter,
in ::server::byteCodeObject handback
)
raises(
::server::CorbaInstanceNotFoundException,
::server::CorbaDeserializeException
);

Adds the corba NotificationListener to the MBeanServer as JMX NotificationListener with the specified mbean.

Overrides:
addNotificationListener2 in class com.adventnet.adaptors.corba.server._RemoteMBeanServerImplBase
Parameters:
name - the byte array version of the ObjectName of the mbean to which the specified corba notificationlistener is to registered.
listener - the byte array version of the ObjectName of the JMX NotificationListener
filter - the corba notificationfilter
handback - the byte array version of the handback object.
Throws:
com.adventnet.adaptors.corba.server.CorbaDeserializeException - when any any problems in the deserialization of the byte array equivalent of the passed objects.
com.adventnet.adaptors.corba.server.CorbaInstanceNotFoundException - The specified MBean is not registered in the MBeanServer.

createMBean

public byte[] createMBean(java.lang.String className,
                          byte[] name)
                   throws com.adventnet.adaptors.corba.server.CorbaReflectionException,
                          com.adventnet.adaptors.corba.server.CorbaInstanceAlreadyExistsException,
                          com.adventnet.adaptors.corba.server.CorbaMBeanRegistrationException,
                          com.adventnet.adaptors.corba.server.CorbaMBeanException,
                          com.adventnet.adaptors.corba.server.CorbaNotCompliantMBeanException,
                          com.adventnet.adaptors.corba.server.CorbaDeserializeException

Operation: ::server::CorbaFactory::createMBean.

#pragma prefix "server/CorbaFactory"
::server::byteCodeObject createMBean(
in string className,
in ::server::byteCodeObject name
)
raises(
::server::CorbaReflectionException,
::server::CorbaInstanceAlreadyExistsException,
::server::CorbaMBeanRegistrationException,
::server::CorbaMBeanException,
::server::CorbaNotCompliantMBeanException,
::server::CorbaDeserializeException
);

Instantiates and registers a MBean with the MBeanServer through this service(adaptor). The MBean server will use the DefaultLoaderRepository to load the class of the MBean. An object name is associated to the MBean. If the object name given is null, the MBean can automatically provide its own name by implementing the MBeanRegistration interface. The call returns a reference to the new instance and its object name.

Overrides:
createMBean in class com.adventnet.adaptors.corba.server._RemoteMBeanServerImplBase
Parameters:
className - The class name of the MBean to be instantiated.
name - The byte array version of object name of the MBean. May be null.
Returns:
The byte array version of ObjectInstance, containing the ObjectName and the Java class name of the newly instantiated MBean.
Throws:
ReflectionException - Wraps Wraps a ClassNotFoundException or a java.lang.Exception that occured trying to invoke the MBean's constructor.
InstanceAlreadyExistsException - The MBean is already under the control of the MBeanServer.
MBeanRegistrationException - The preRegister (MBeanRegistration interface) method of the MBean has thrown an exception. The MBean will not be registered.
com.adventnet.adaptors.corba.server.CorbaMBeanException - The constructor of the MBean has thrown an exception
com.adventnet.adaptors.corba.server.CorbaNotCompliantMBeanException - This class is not an JMX compliant MBean
com.adventnet.adaptors.corba.server.CorbaRuntimeOperationsException - Wraps a java.lang.IllegalArgumentException: The className passed in parameter is null, the ObjectName passed in parameter contains a pattern or no ObjectName is specified for the MBean.
com.adventnet.adaptors.corba.server.CorbaDeserializeException - when any any problems in the deserialization of the byte array equivalent of the passed objects.

createMBean2

public byte[] createMBean2(java.lang.String className,
                           byte[] name,
                           byte[] params,
                           byte[] signature)
                    throws com.adventnet.adaptors.corba.server.CorbaReflectionException,
                           com.adventnet.adaptors.corba.server.CorbaInstanceAlreadyExistsException,
                           com.adventnet.adaptors.corba.server.CorbaMBeanRegistrationException,
                           com.adventnet.adaptors.corba.server.CorbaMBeanException,
                           com.adventnet.adaptors.corba.server.CorbaNotCompliantMBeanException,
                           com.adventnet.adaptors.corba.server.CorbaDeserializeException

Operation: ::server::CorbaFactory::createMBean2.

#pragma prefix "server/CorbaFactory"
::server::byteCodeObject createMBean2(
in string className,
in ::server::byteCodeObject name,
in ::server::byteCodeObject params,
in ::server::byteCodeObject signature
)
raises(
::server::CorbaReflectionException,
::server::CorbaInstanceAlreadyExistsException,
::server::CorbaMBeanRegistrationException,
::server::CorbaMBeanException,
::server::CorbapliantMBeanException,
::server::CorbaDeserializeException
);

Instantiates and registers a MBean with the MBeanServer through this service(adaptor). The MBean server will use the DefaultLoaderRepository to load the class of the MBean. An object name is associated to the MBean. If the object name given is null, the MBean can automatically provide its own name by implementing the MBeanRegistration interface. The call returns a reference to the new instance and its object name.

Overrides:
createMBean2 in class com.adventnet.adaptors.corba.server._RemoteMBeanServerImplBase
Parameters:
className - The class name of the MBean to be instantiated.
name - The byte array version of object name of the MBean. May be null.
params - byte array version of an array containing the parameters of the constructor to be invoked.
signature - byte array version of an array containing the signature of the constructor to be invoked.
Returns:
The byte array version of ObjectInstance, containing the ObjectName and the Java class name of the newly instantiated MBean.
Throws:
com.adventnet.adaptors.corba.server.CorbaReflectionException - Wraps Wraps a ClassNotFoundException or a java.lang.Exception that occured trying to invoke the MBean's constructor.
com.adventnet.adaptors.corba.server.CorbaInstanceAlreadyExistsException - The MBean is already under the control of the MBeanServer.
com.adventnet.adaptors.corba.server.CorbaMBeanRegistrationException - The preRegister (MBeanRegistration interface) method of the MBean has thrown an exception. The MBean will not be registered.
com.adventnet.adaptors.corba.server.CorbaMBeanException - The constructor of the MBean has thrown an exception
com.adventnet.adaptors.corba.server.CorbaNotCompliantMBeanException - This class is not an JMX compliant MBean
com.adventnet.adaptors.corba.server.CorbaRuntimeOperationsException - Wraps a java.lang.IllegalArgumentException: The className passed in parameter is null, the ObjectName passed in parameter contains a pattern or no ObjectName is specified for the MBean.
com.adventnet.adaptors.corba.server.CorbaDeserializeException - when any any problems in the deserialization of the byte array equivalent of the passed objects.

createMBean3

public byte[] createMBean3(java.lang.String className,
                           byte[] name,
                           byte[] loaderName)
                    throws com.adventnet.adaptors.corba.server.CorbaReflectionException,
                           com.adventnet.adaptors.corba.server.CorbaInstanceAlreadyExistsException,
                           com.adventnet.adaptors.corba.server.CorbaMBeanRegistrationException,
                           com.adventnet.adaptors.corba.server.CorbaMBeanException,
                           com.adventnet.adaptors.corba.server.CorbaNotCompliantMBeanException,
                           com.adventnet.adaptors.corba.server.CorbaInstanceNotFoundException,
                           com.adventnet.adaptors.corba.server.CorbaDeserializeException

Operation: ::server::CorbaFactory::createMBean3.

#pragma prefix "server/CorbaFactory"
::server::byteCodeObject createMBean3(
in string className,
in ::server::byteCodeObject name,
in ::server::byteCodeObject loaderName
)
raises(
::server::CorbaReflectionException,
::server::CorbaInstanceAlreadyExistsException,
::server::CorbaMBeanRegistrationException,
::server::CorbaMBeanException,
::server::CorbaNotCompliantMBeanException,
::server::CorbaInstanceNotFoundException,
::server::CorbaDeserializeException
);

Instantiates and registers a MBean with the MBeanServer through this service(adaptor). The class loader to be used is identified by its object name. An object name is associated to the MBean. If the object name of the loader is null, the system ClassLoader will be used.If the MBean's object name given is null, the MBean can automatically provide its own name by implementing the MBeanRegistration interface. The call returns a reference to the new instance and its object name.

Overrides:
createMBean3 in class com.adventnet.adaptors.corba.server._RemoteMBeanServerImplBase
Parameters:
className - The class name of the MBean to be instantiated.
name - The byte array version of object name of the MBean. May be null.
loaderName - The byte array version of object name of the class loader to be used.
Returns:
The byte array version of ObjectInstance, containing the ObjectName and the Java class name of the newly instantiated MBean.
Throws:
com.adventnet.adaptors.corba.server.CorbaInstanceAlreadyExistsException - The MBean is already under the control of the MBeanServer.
com.adventnet.adaptors.corba.server.CorbaMBeanRegistrationException - The preRegister (MBeanRegistration interface) method of the MBean has thrown an exception. The MBean will not be registered.
com.adventnet.adaptors.corba.server.CorbaMBeanException - The constructor of the MBean has thrown an exception
com.adventnet.adaptors.corba.server.CorbaNotCompliantMBeanException - This class is not an JMX compliant MBean
com.adventnet.adaptors.corba.server.CorbaInstanceNotFoundException - The specified class loader is not registered in the MBeanServer.
com.adventnet.adaptors.corba.server.CorbaRuntimeOperationsException - Wraps a java.lang.IllegalArgumentException: The className passed in parameter is null, the ObjectName passed in parameter contains a pattern or no ObjectName is specified for the MBean.
com.adventnet.adaptors.corba.server.CorbaDeserializeException - when any any problems in the deserialization of the byte array equivalent of the passed objects.

createMBean4

public byte[] createMBean4(java.lang.String className,
                           byte[] name,
                           byte[] loaderName,
                           byte[] params,
                           byte[] signature)
                    throws com.adventnet.adaptors.corba.server.CorbaReflectionException,
                           com.adventnet.adaptors.corba.server.CorbaInstanceAlreadyExistsException,
                           com.adventnet.adaptors.corba.server.CorbaMBeanRegistrationException,
                           com.adventnet.adaptors.corba.server.CorbaMBeanException,
                           com.adventnet.adaptors.corba.server.CorbaNotCompliantMBeanException,
                           com.adventnet.adaptors.corba.server.CorbaInstanceNotFoundException,
                           com.adventnet.adaptors.corba.server.CorbaDeserializeException

Operation: ::server::CorbaFactory::createMBean4.

#pragma prefix "server/CorbaFactory"
::server::byteCodeObject createMBean4(
in string className,
in ::server::byteCodeObject name,
in ::server::byteCodeObject loaderName,
in ::server::byteCodeObject params,
in ::server::byteCodeObject signature
)
raises(
::server::CorbaReflectionException,
::server::CorbaInstanceAlreadyExistsException,
::server::CorbaMBeanRegistrationException,
::server::CorbaMBeanException,
::server::CorbaNotCompliantMBeanException,
::server::CorbaInstanceNotFoundException,
::server::CorbaDeserializeException
);

Instantiates and registers a MBean with the MBeanServer through this service(adaptor). The class loader to be used is identified by its object name. An object name is associated to the MBean. If the object name of the loader is not specified, the system ClassLoader will be used.If the MBean object name given is null, the MBean can automatically provide its own name by implementing the MBeanRegistration interface. The call returns a reference to the new instance and its object name.

Overrides:
createMBean4 in class com.adventnet.adaptors.corba.server._RemoteMBeanServerImplBase
Parameters:
className - The class name of the MBean to be instantiated.
name - The byte array version of object name of the MBean. May be null.
params - The byte array version of an array containing the parameters of the constructor to be invoked.
signature - The byte array version of an array containing the signature of the constructor to be invoked.
loaderName - The byte array version of object name of the class loader to be used.
Returns:
The byte array version of ObjectInstance, containing the ObjectName and the Java class name of the newly instantiated MBean.
Throws:
com.adventnet.adaptors.corba.server.CorbaReflectionException - Wraps Wraps a ClassNotFoundException or a java.lang.Exception that occured trying to invoke the MBean's constructor.
com.adventnet.adaptors.corba.server.CorbaInstanceAlreadyExistsException - The MBean is already under the control of the MBeanServer.
com.adventnet.adaptors.corba.server.CorbaMBeanRegistrationException - The preRegister (MBeanRegistration interface) method of the MBean has thrown an exception. The MBean will not be registered.
com.adventnet.adaptors.corba.server.CorbaMBeanException - The constructor of the MBean has thrown an exception
com.adventnet.adaptors.corba.server.CorbaNotCompliantMBeanException - This class is not an JMX compliant MBean
com.adventnet.adaptors.corba.server.CorbaRuntimeOperationsException - Wraps a java.lang.IllegalArgumentException: The className passed in parameter is null, the ObjectName passed in parameter contains a pattern or no ObjectName is specified for the MBean.
com.adventnet.adaptors.corba.server.CorbaDeserializeException - when any any problems in the deserialization of the byte array equivalent of the passed objects.

getAttributes

public byte[] getAttributes(byte[] name,
                            byte[] attrs)
                     throws com.adventnet.adaptors.corba.server.CorbaReflectionException,
                            com.adventnet.adaptors.corba.server.CorbaInstanceNotFoundException,
                            com.adventnet.adaptors.corba.server.CorbaDeserializeException

Operation: ::server::CorbaFactory::getAttributes.

#pragma prefix "server/CorbaFactory"
::server::byteCodeObject getAttributes(
in ::server::byteCodeObject name,
in ::server::byteCodeObject attrs
)
raises(
::server::CorbaReflectionException,
::server::CorbaInstanceNotFoundException,
::server::CorbaDeserializeException
);

Enables the values of several attributes of a named MBean through this service(adaptor). The MBean is identified by its object name.

Overrides:
getAttributes in class com.adventnet.adaptors.corba.server._RemoteMBeanServerImplBase
Parameters:
name - The object name of the MBean from which the attributes are to be retrieved.
attributes - The byte array version of String[] which is the list of the attributes to be retrieved.
Returns:
The byte array version of AttributeList, the list of the retrieved attributes.
Throws:
com.adventnet.adaptors.corba.server.CorbaInstanceNotFoundException - The specified MBean is not registered in the MBeanServer.
com.adventnet.adaptors.corba.server.CorbaReflectionException - An exception occurred when trying to invoke the getAttributes method of a Dynamic MBean.
com.adventnet.adaptors.corba.server.CorbaRuntimeOperationsException - Wraps a java.lang.IllegalArgumentException: The object name in parameter is null or the attribute in parameter is null.
com.adventnet.adaptors.corba.server.CorbaDeserializeException - when any any problems in the deserialization of the byte array equivalent of the passed objects.

getDefaultDomain

public java.lang.String getDefaultDomain()

Operation: ::server::CorbaFactory::getDefaultDomain.

#pragma prefix "server/CorbaFactory"
string getDefaultDomain();

Returns the default domain used for naming the MBean. through this corba service(adaptor). The default domain name is used as the domain part in the ObjectName of MBeans if no domain is specified by the user.

Overrides:
getDefaultDomain in class com.adventnet.adaptors.corba.server._RemoteMBeanServerImplBase
Returns:
The default domain used for naming the MBean. through this corba service(adaptor).

getMBeanCount

public byte[] getMBeanCount()

Operation: ::server::CorbaFactory::getMBeanCount.

#pragma prefix "server/CorbaFactory"
::server::byteCodeObject getMBeanCount();

Returns the number of MBeans controlled by the MBeanServer through this service(adaptor).

Overrides:
getMBeanCount in class com.adventnet.adaptors.corba.server._RemoteMBeanServerImplBase
Returns:
The number of MBeans controlled by the MBeanServer through this service(adaptor).

getMBeanInfo

public byte[] getMBeanInfo(byte[] name)
                    throws com.adventnet.adaptors.corba.server.CorbaReflectionException,
                           com.adventnet.adaptors.corba.server.CorbaInstanceNotFoundException,
                           com.adventnet.adaptors.corba.server.CorbaIntrospectionException,
                           com.adventnet.adaptors.corba.server.CorbaDeserializeException

Operation: ::server::CorbaFactory::getMBeanInfo.

#pragma prefix "server/CorbaFactory"
::server::byteCodeObject getMBeanInfo(
in ::server::byteCodeObject name
)
raises(
::server::CorbaReflectionException,
::server::CorbaInstanceNotFoundException,
::server::CorbaIntrospectionException,
::server::CorbaDeserializeException
);

This method discovers the attributes and operations that an MBean exposes for management through this service(adaptor).When flatten is false, inherited attributes are not returned.

Overrides:
getMBeanInfo in class com.adventnet.adaptors.corba.server._RemoteMBeanServerImplBase
Parameters:
name - The byte array version of name of the MBean to analyze
Returns:
The byte array of the instance of MBeanInfo allowing to retrieve all attributes and operations of this MBean.
Throws:
com.adventnet.adaptors.corba.server.CorbaIntrospectionException - An exception occurs during introspection.
com.adventnet.adaptors.corba.server.CorbaInstanceNotFoundException - The specified MBean is not found.
com.adventnet.adaptors.corba.server.CorbaReflectionException - An exception occurred when trying to invoke the getMBeanInfo of a Dynamic MBean.
com.adventnet.adaptors.corba.server.CorbaDeserializeException - when any any problems in the deserialization of the byte array equivalent of the passed objects.

getAccessViewMBeanInfo

public MBeanInfo getAccessViewMBeanInfo(MBeanInfo mbeanInfo,
                                        ObjectName name)

getObjectInstance

public byte[] getObjectInstance(byte[] name)
                         throws com.adventnet.adaptors.corba.server.CorbaInstanceNotFoundException,
                                com.adventnet.adaptors.corba.server.CorbaDeserializeException

Operation: ::server::CorbaFactory::getObjectInstance.

#pragma prefix "server/CorbaFactory"
::server::byteCodeObject getObjectInstance(
in ::server::byteCodeObject name
)
raises(
::server::CorbaInstanceNotFoundException,
::server::CorbaDeserializeException
);

Gets the ObjectInstance for a given MBean registered with the MBean server through this service(adaptor).

Overrides:
getObjectInstance in class com.adventnet.adaptors.corba.server._RemoteMBeanServerImplBase
Parameters:
name - The byte array version of object name of the MBean.
Returns:
The byte array version of ObjectInstance associated to the MBean specified by name.
Throws:
com.adventnet.adaptors.corba.server.CorbaInstanceNotFoundException - The MBean specified is not registered in the MBean server.
com.adventnet.adaptors.corba.server.CorbaDeserializeException - when any any problems in the deserialization of the byte array equivalent of the passed objects.

instantiate

public byte[] instantiate(java.lang.String className)
                   throws com.adventnet.adaptors.corba.server.CorbaReflectionException,
                          com.adventnet.adaptors.corba.server.CorbaMBeanException

Operation: ::server::CorbaFactory::instantiate.

#pragma prefix "server/CorbaFactory"
::server::byteCodeObject instantiate(
in string className
)
raises(
::server::CorbaReflectionException,
::server::CorbaMBeanException
);

Instantiates an object using the list of all class loaders registered in the MBean server (Default Loader Repository) through this service(adaptor). The object's class should have a public constructor. It returns a reference to the newly created object. The newly created object is not registered in the MBean server.

Overrides:
instantiate in class com.adventnet.adaptors.corba.server._RemoteMBeanServerImplBase
Parameters:
className - The class name of the object to be instantiated.
Returns:
The byte array version of the newly instantiated object.
Throws:
com.adventnet.adaptors.corba.server.CorbaReflectionException - Wraps a ClassNotFoundException or the java.lang.Exception that occured trying to invoke the object's constructor.
com.adventnet.adaptors.corba.server.CorbaMBeanException - The constructor of the object has thrown an exception
com.adventnet.adaptors.corba.server.CorbaRuntimeOperationsException - Wraps a java.lang.IllegalArgumentException: The className passed in parameter is null.

instantiate2

public byte[] instantiate2(java.lang.String className,
                           byte[] params,
                           byte[] signature)
                    throws com.adventnet.adaptors.corba.server.CorbaReflectionException,
                           com.adventnet.adaptors.corba.server.CorbaMBeanException

Operation: ::server::CorbaFactory::instantiate2.

#pragma prefix "server/CorbaFactory"
::server::byteCodeObject instantiate2(
in string className,
in ::server::byteCodeObject params,
in ::server::byteCodeObject signature
)
raises(
::server::CorbaReflectionException,
::server::CorbaMBeanException
);

Instantiates an object using the list of all class loaders registered in the MBean server (Default Loader Repository) through this service(adaptor). The object's class should have a public constructor. The call returns a reference to the newly created object. The newly created object is not registered in the MBean server.

Overrides:
instantiate2 in class com.adventnet.adaptors.corba.server._RemoteMBeanServerImplBase
Parameters:
className - The class name of the object to be instantiated.
params - The byte array version of an array containing the parameters of the constructor to be invoked.
signature - The byte array version of an array containing the signature of the constructor to be invoked.
Returns:
The byte array version of the newly instantiated object.
Throws:
com.adventnet.adaptors.corba.server.CorbaReflectionException - Wraps a ClassNotFoundException or the java.lang.Exception that occured trying to invoke the object's constructor.
com.adventnet.adaptors.corba.server.CorbaMBeanException - The constructor of the object has thrown an exception
com.adventnet.adaptors.corba.server.CorbaRuntimeOperationsException - Wraps a java.lang.IllegalArgumentException: The className passed in parameter is null.

instantiate3

public byte[] instantiate3(java.lang.String className,
                           byte[] loaderName)
                    throws com.adventnet.adaptors.corba.server.CorbaReflectionException,
                           com.adventnet.adaptors.corba.server.CorbaMBeanException,
                           com.adventnet.adaptors.corba.server.CorbaInstanceNotFoundException

Operation: ::server::CorbaFactory::instantiate3.

#pragma prefix "server/CorbaFactory"
::server::byteCodeObject instantiate3(
in string className,
in ::server::byteCodeObject loaderName
)
raises(
::server::CorbaReflectionException,
::server::CorbaMBeanException,
::server::CorbaInstanceNotFoundException
);

Instantiates an object using the class Loader specified by its ObjectName through this service(adaptor). If the loader name is null, the ClassLoader that loaded the MBean Server will be used. The object's class should have a public constructor. It returns a reference to the newly created object. The newly created object is not registered in the MBean server.

Overrides:
instantiate3 in class com.adventnet.adaptors.corba.server._RemoteMBeanServerImplBase
Parameters:
className - The class name of the object to be instantiated.
loaderName - The byte array version of object name of the class loader to be used.
Returns:
The byte array version of newly instantiated object.
Throws:
com.adventnet.adaptors.corba.server.CorbaReflectionException - Wraps a ClassNotFoundException or the java.lang.Exception that occured trying to invoke the object's constructor.
com.adventnet.adaptors.corba.server.CorbaMBeanException - The constructor of the object has thrown an exception
com.adventnet.adaptors.corba.server.CorbaInstanceNotFoundException - The specified class loader is not registered in the MBeanServer.
com.adventnet.adaptors.corba.server.CorbaRuntimeOperationsException - Wraps a java.lang.IllegalArgumentException: The className passed in parameter is null.

instantiate4

public byte[] instantiate4(java.lang.String className,
                           byte[] loaderName,
                           byte[] params,
                           byte[] signature)
                    throws com.adventnet.adaptors.corba.server.CorbaReflectionException,
                           com.adventnet.adaptors.corba.server.CorbaMBeanException,
                           com.adventnet.adaptors.corba.server.CorbaInstanceNotFoundException

Operation: ::server::CorbaFactory::instantiate4.

#pragma prefix "server/CorbaFactory"
::server::byteCodeObject instantiate4(
in string className,
in ::server::byteCodeObject loaderName,
in ::server::byteCodeObject params,
in ::server::byteCodeObject signature
)
raises(
::server::CorbaReflectionException,
::server::CorbaMBeanException,
::server::CorbaInstanceNotFoundException
);

Instantiates an object through this service(adaptor). The class loader to be used is identified by its object name. If the object name of the loader is null, the ClassLoader that loaded the MBean server will be used. The object's class should have a public constructor. The call returns a reference to the newly created object. The newly created object is not registered in the MBean server.

Overrides:
instantiate4 in class com.adventnet.adaptors.corba.server._RemoteMBeanServerImplBase
Parameters:
className - The class name of the object to be instantiated.
loaderName - The byte array version of object name of the class loader to be used.
params - The byte array version of an array containing the parameters of the constructor to be invoked.
signature - byte array version of an array containing the signature of the constructor to be invoked.
Returns:
The byte array version of newly instantiated object.
Throws:
com.adventnet.adaptors.corba.server.CorbaReflectionException - Wraps a ClassNotFoundException or the java.lang.Exception that occured trying to invoke the object's constructor.
com.adventnet.adaptors.corba.server.CorbaMBeanException - The constructor of the object has thrown an exception
com.adventnet.adaptors.corba.server.CorbaInstanceNotFoundException - The specified class loader is not registered in the MBeanServer.
com.adventnet.adaptors.corba.server.CorbaRuntimeOperationsException - Wraps a java.lang.IllegalArgumentException: The className passed in parameter is null.

invoke

public byte[] invoke(byte[] name,
                     java.lang.String actionName,
                     byte[] params,
                     byte[] signature)
              throws com.adventnet.adaptors.corba.server.CorbaReflectionException,
                     com.adventnet.adaptors.corba.server.CorbaMBeanException,
                     com.adventnet.adaptors.corba.server.CorbaInstanceNotFoundException,
                     com.adventnet.adaptors.corba.server.CorbaDeserializeException

Operation: ::server::CorbaFactory::invoke.

#pragma prefix "server/CorbaFactory"
::server::byteCodeObject invoke(
in ::server::byteCodeObject name,
in string actionName,
in ::server::byteCodeObject params,
in ::server::byteCodeObject signature
)
raises(
::server::CorbaReflectionException,
::server::CorbaMBeanException,
::server::CorbaInstanceNotFoundException,
::server::CorbaDeserializeException
);

Invokes an action on an MBean through this service(adaptor).

Overrides:
invoke in class com.adventnet.adaptors.corba.server._RemoteMBeanServerImplBase
Parameters:
name - The byte array version of object name of the MBean on which the method is to be invoked.
actionName - The name of the action to be invoked.
params - The byte array version of an array containing the parameters to be set when the action is invoked
signature - The byte array version of 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.
Returns:
The byte array version of object returned by the action, which represents the result ofinvoking the action on the specified MBean.
Throws:
com.adventnet.adaptors.corba.server.CorbaInstanceNotFoundException - The specified MBean is not registered in the MBeanServer.
com.adventnet.adaptors.corba.server.CorbaMBeanException - Wraps an exception thrown by the MBean's invoked method.
com.adventnet.adaptors.corba.server.CorbaReflectionException - Wraps an java.lang.Exception thrown while trying to invoke the method.
com.adventnet.adaptors.corba.server.CorbaDeserializeException - when any any problems in the deserialization of the byte array equivalent of the passed objects.

isRegistered

public boolean isRegistered(byte[] name)
                     throws com.adventnet.adaptors.corba.server.CorbaDeserializeException

Operation: ::server::CorbaFactory::isRegistered.

#pragma prefix "server/CorbaFactory"
boolean isRegistered(
in ::server::byteCodeObject name
)
raises(
::server::CorbaDeserializeException
);

Checks whether an MBean, identified by its object name, is already registered with the MBeanServer through this service(adaptor).

Overrides:
isRegistered in class com.adventnet.adaptors.corba.server._RemoteMBeanServerImplBase
Parameters:
name - The byte array version of object name of the MBean to be checked.
Returns:
true if the MBean is already controlled by the MBeanServer, false otherwise.
Throws:
com.adventnet.adaptors.corba.server.CorbaDeserializeException - when any any problems in the deserialization of the byte array equivalent of the passed objects.

isInstanceOf

public boolean isInstanceOf(byte[] name,
                            java.lang.String className)
                     throws com.adventnet.adaptors.corba.server.CorbaInstanceNotFoundException,
                            com.adventnet.adaptors.corba.server.CorbaDeserializeException

Operation: ::server::CorbaFactory::isRegistered.

#pragma prefix "server/CorbaFactory"
boolean isRegistered(
in ::server::byteCodeObject name
)
raises(
::server::CorbaDeserializeException
);

Returns true if the MBean specified is an instance of the specified class, false otherwise.

Overrides:
isInstanceOf in class com.adventnet.adaptors.corba.server._RemoteMBeanServerImplBase
Parameters:
name - The byte array of the object name of the MBean to be checked.
className - The name of the class.
Returns:
true if the MBean is the instance of the specified class, false otherwise.
Throws:
com.adventnet.adaptors.corba.server.CorbaInstanceNotFoundException - The MBean specified is not registered in the MBean server.
com.adventnet.adaptors.corba.server.CorbaDeserializeException - when any any problems in the deserialization of the byte array equivalent of the passed objects.

queryMBeans

public byte[] queryMBeans(byte[] name,
                          byte[] query)
                   throws com.adventnet.adaptors.corba.server.CorbaDeserializeException

Operation: ::server::CorbaFactory::queryMBeans.

#pragma prefix "server/CorbaFactory"
::server::byteCodeObject queryMBeans(
in ::server::byteCodeObject name,
in ::server::byteCodeObject query
)
raises(
::server::CorbaDeserializeException
);

Gets MBeans controlled by the MBeanServer through this service(adaptor). This method allows any of the following to be obtained: All MBeans, a set of MBeans specified by pattern matching on the ObjectName and/or a Query expression, a specific MBean. When the object name is null or empty, all objects are to be selected (and filtered if a query is specified). It returns the set of ObjectInstance objects (containing the ObjectName and the Java Class name) for the selected MBeans.

Overrides:
queryMBeans in class com.adventnet.adaptors.corba.server._RemoteMBeanServerImplBase
Parameters:
name - The byte array version of object name pattern identifying the MBeans to be retrieved. If null orempty all the MBeans registered will be retrieved.
query - The byte array version of query expression to be applied for selecting MBeans.
Returns:
The byte array version of a set containing the ObjectInstance objects for the selected MBeans. If no MBean satisfies the query an empty list is returned.
Throws:
com.adventnet.adaptors.corba.server.CorbaDeserializeException - when any any problems in the deserialization of the byte array equivalent of the passed objects.

getViewAccessMBeans

public java.util.Set getViewAccessMBeans(java.util.Set names)

authenticate

public void authenticate(byte[] usercontext)
                  throws com.adventnet.adaptors.corba.server.CorbaAuthenticationException
Authenticates the users specified in the UserContext.
Overrides:
authenticate in class com.adventnet.adaptors.corba.server._RemoteMBeanServerImplBase
Parameters:
userContext - contains the Users to be authenticated
Throws:
com.adventnet.adaptors.corba.server.CorbaAuthenticationException - when Authentication for a User fails

addUser

public void addUser(com.adventnet.agent.security.UserContext userContext)
Adds the users specified in the UserContext to the Authentication List of the Adaptor
Parameters:
userContext - the UserContext which has to be added

removeUser

public void removeUser(com.adventnet.agent.security.UserContext userContext)
Removes the users specified in the UserContext from the Authentication List of the Adaptor
Parameters:
userContext - the UserContext which has to be removed

enableAuthentication

public void enableAuthentication(boolean authenticate)
Enables Authentication for the RMI Adaptor
Parameters:
authenticate - Enables Authentication if the value is true

enableAuthorisation

public void enableAuthorisation(boolean authorise)
Enables Authorisation for the Corba Adaptor
Parameters:
authorise - Enables Authorisation if the value is true

isAuthenticationEnabled

public boolean isAuthenticationEnabled()
Determines whether authentication is enabled or not
Overrides:
isAuthenticationEnabled in class com.adventnet.adaptors.corba.server._RemoteMBeanServerImplBase
Returns:
true is authentication is enabled else returns false

queryNames

public byte[] queryNames(byte[] name,
                         byte[] query)
                  throws com.adventnet.adaptors.corba.server.CorbaDeserializeException

Operation: ::server::CorbaFactory::queryNames.

#pragma prefix "server/CorbaFactory"
::server::byteCodeObject queryNames(
in ::server::byteCodeObject name,
in ::server::byteCodeObject query
)
raises(
::server::CorbaDeserializeException
);

Gets the names of MBeans controlled by the MBeanServer through this service(adaptor). This method enables any of the following to be obtained: The names of all MBeans, the names of a set of MBeans specified by pattern matching on the ObjectName and/or a Query expression, a specific MBean name(equivalent to testing whether an MBean is registered). When the object name is null or empty, all objects are to be selected (and filtered if a query is specified). It returns the set of ObjectNames for the MBeans selected.

Overrides:
queryNames in class com.adventnet.adaptors.corba.server._RemoteMBeanServerImplBase
Parameters:
name - The byte array version of object name pattern identifying the MBean names to be retrieved. If null or empty, the name of all registered MBeans will be retrieved.
query - The byte array version of query expression to be applied for selecting MBeans.
Returns:
The byte array version of a set containing the ObjectNames for the MBeans selected. If no MBean satisfies the query an empty list is returned.
Throws:
com.adventnet.adaptors.corba.server.CorbaDeserializeException - when any any problems in the deserialization of the byte array equivalent of the passed objects.

getViewAccessNames

public java.util.Set getViewAccessNames(java.util.Set names)

registerMBean

public byte[] registerMBean(java.lang.String className,
                            byte[] name)
                     throws com.adventnet.adaptors.corba.server.CorbaInstanceAlreadyExistsException,
                            com.adventnet.adaptors.corba.server.CorbaMBeanRegistrationException,
                            com.adventnet.adaptors.corba.server.CorbaNotCompliantMBeanException,
                            com.adventnet.adaptors.corba.server.CorbaDeserializeException

Operation: ::server::CorbaFactory::registerMBean.

#pragma prefix "server/CorbaFactory"
::server::byteCodeObject registerMBean(
in string className,
in ::server::byteCodeObject name
)
raises(
::server::CorbaInstanceAlreadyExistsException,
::server::CorbaMBeanRegistrationException,
::server::CorbaNotCompliantMBeanException,
::server::CorbaDeserializeException
);

Registers a pre-existing object as an MBean with the MBeanServer through this service(adaptor). If the object name given is null, the MBean may automatically provide its own name by implementing the MBeanRegistration interface. The call returns the MBean name.

Overrides:
registerMBean in class com.adventnet.adaptors.corba.server._RemoteMBeanServerImplBase
Parameters:
className - The class name of the Java Bean to be registered as an MBean.
name - The byte array version of object name of the MBean. May be null.
Returns:
The byte array version of ObjectInstance for the MBean that has been registered.
Throws:
com.adventnet.adaptors.corba.server.CorbaInstanceAlreadyExistsException - The MBean is already under the control of the MBeanServer.
com.adventnet.adaptors.corba.server.CorbaMBeanRegistrationException - The preRegister (MBeanRegistration interface) method of the MBean has thrown an exception. The MBean will not be registered.
com.adventnet.adaptors.corba.server.CorbaNotCompliantMBeanException - This object is not an JMX compliant MBean
com.adventnet.adaptors.corba.server.CorbaRuntimeOperationsException - Wraps a java.lang.IllegalArgumentException: The object passed in parameter is null or no object name is specified.
com.adventnet.adaptors.corba.server.CorbaDeserializeException - when any any problems in the deserialization of the byte array equivalent of the passed objects.

registerAsModelMBean

public byte[] registerAsModelMBean(byte[] mbean,
                                   java.lang.String xmlFile,
                                   byte[] name)
                            throws com.adventnet.adaptors.corba.server.CorbaInstanceAlreadyExistsException,
                                   com.adventnet.adaptors.corba.server.CorbaMBeanRegistrationException,
                                   com.adventnet.adaptors.corba.server.CorbaNotCompliantMBeanException,
                                   com.adventnet.adaptors.corba.server.CorbaDeserializeException

Operation: ::server::CorbaFactory::registerAsModelMBean.

#pragma prefix "server/CorbaFactory"
::server::byteCodeObject registerAsModelMBean(
in ::server::byteCodeObject className,
in string xmlFileName,
in ::server::byteCodeObject name
)
raises(
::server::CorbaInstanceAlreadyExistsException,
::server::CorbaMBeanRegistrationException,
::server::CorbaNotCompliantMBeanException,
::server::CorbaDeserializeException
);

Remote method call which registers the MBean. If the passed mbean object is String instance (i.e classname), then this mbean will be instantiated locally as modelmbean in the mbean server and registered. If not instance of java.lang.String class, then this object will be considered as remote modelmbean object. If the mbean object is java.lang.String instance, then the xmlFile means the path of the xml file name locally in the mbean server. If not then the String object of xmlFile will contain the complete xml file.

Overrides:
registerAsModelMBean in class com.adventnet.adaptors.corba.server._RemoteMBeanServerImplBase
Parameters:
className - The class name of the class which will be wrapped by the ModelMBeanImpl and registered as an MBean.
xmlFileName - The xml file name with which the ModelMBeanImpl of the class specified in the parameter, will be initialized
name - The byte array version of object name of the MBean. May be null.
Returns:
The byte array version of ObjectInstance for the MBean that has been registered.
Throws:
com.adventnet.adaptors.corba.server.CorbaInstanceAlreadyExistsException - The MBean is already under the control of the MBeanServer.
com.adventnet.adaptors.corba.server.CorbaMBeanRegistrationException - The preRegister (MBeanRegistration interface) method of the MBean has thrown an exception. The MBean will not be registered.
com.adventnet.adaptors.corba.server.CorbaNotCompliantMBeanException - This object is not an JMX compliant MBean
com.adventnet.adaptors.corba.server.CorbaRuntimeOperationsException - Wraps a java.lang.IllegalArgumentException: The object passed in parameter is null or no object name is specified.
com.adventnet.adaptors.corba.server.CorbaDeserializeException - when any any problems in the deserialization of the byte array equivalent of the passed objects.

removeNotificationListener2

public void removeNotificationListener2(byte[] name,
                                        byte[] listener)
                                 throws com.adventnet.adaptors.corba.server.CorbaInstanceNotFoundException,
                                        com.adventnet.adaptors.corba.server.CorbaListenerNotFoundException,
                                        com.adventnet.adaptors.corba.server.CorbaDeserializeException

Operation: ::server::CorbaFactory::removeNotificationListener2.

#pragma prefix "server/CorbaFactory"
void removeNotificationListener2(
in ::server::byteCodeObject name,
in ::server::byteCodeObject listener
)
raises(
::server::CorbaInstanceNotFoundException,
::server::CorbaListenerNotFoundException,
::server::CorbaDeserializeException
);

Removes the corba NotificationListener from the MBeanServer which was registered as JMX NotificationListener with the specified mbean.

Overrides:
removeNotificationListener2 in class com.adventnet.adaptors.corba.server._RemoteMBeanServerImplBase
Parameters:
name - the byte array version of the ObjectName of the mbean to which the specified corba notificationlistener was registered.
listener - the object name of the JMX NotificationListener
Throws:
com.adventnet.adaptors.corba.server.CorbaListenerNotFoundException - The specified
com.adventnet.adaptors.corba.server.CorbaDeserializeException - when any any problems in the deserialization of the byte array equivalent of the passed objects.
com.adventnet.adaptors.corba.server.CorbaInstanceNotFoundException - The specified MBean is not registered in the MBeanServer.

setAttribute

public void setAttribute(byte[] name,
                         byte[] attr)
                  throws com.adventnet.adaptors.corba.server.CorbaInstanceNotFoundException,
                         com.adventnet.adaptors.corba.server.CorbaAttributeNotFoundException,
                         com.adventnet.adaptors.corba.server.CorbaInvalidAttributeValueException,
                         com.adventnet.adaptors.corba.server.CorbaReflectionException,
                         com.adventnet.adaptors.corba.server.CorbaMBeanException,
                         com.adventnet.adaptors.corba.server.CorbaDeserializeException

Operation: ::server::CorbaFactory::setAttribute.

#pragma prefix "server/CorbaFactory"
void setAttribute(
in ::server::byteCodeObject name,
in ::server::byteCodeObject attr
)
raises(
::server::CorbaInstanceNotFoundException,
::server::CorbaAttributeNotFoundException,
::server::CorbaInvalidAttributeValueException,
::server::CorbaReflectionException,
::server::CorbaMBeanException,
::server::CorbaDeserializeException
);

Sets the value of a specific attribute of a named MBean through this service(adaptor). The MBean is identified by its object name.

Overrides:
setAttribute in class com.adventnet.adaptors.corba.server._RemoteMBeanServerImplBase
Parameters:
name - The byte array version of name of the MBean within which the attribute is to be set.
attribute - The byte array version of the Attribute which has the value to be set.
Returns:
The byte array version of value of the attribute that has been set.
Throws:
com.adventnet.adaptors.corba.server.CorbaInstanceNotFoundException - The specified MBean is not registered in the MBeanServer.
com.adventnet.adaptors.corba.server.CorbaAttributeNotFoundException - The specified attribute is not accessible in the MBean.
com.adventnet.adaptors.corba.server.CorbaInvalidAttributeValueException - The specified value for the attribute is not valid.
com.adventnet.adaptors.corba.server.CorbaMBeanException - Wraps an exception thrown by the MBean's setter.
com.adventnet.adaptors.corba.server.CorbaReflectionException - Wraps an java.lang.Exception thrown while trying to invoke the setter.
com.adventnet.adaptors.corba.server.CorbaRuntimeOperationsException - Wraps a java.lang.IllegalArgumentException: The object name in parameter is null or the attribute in parameter is null.
com.adventnet.adaptors.corba.server.CorbaDeserializeException - when any any problems in the deserialization of the byte array equivalent of the passed objects.

setAttributes

public byte[] setAttributes(byte[] name,
                            byte[] attrs)
                     throws com.adventnet.adaptors.corba.server.CorbaInstanceNotFoundException,
                            com.adventnet.adaptors.corba.server.CorbaReflectionException,
                            com.adventnet.adaptors.corba.server.CorbaDeserializeException

Operation: ::server::CorbaFactory::setAttributes.

#pragma prefix "server/CorbaFactory"
::server::byteCodeObject setAttributes(
in ::server::byteCodeObject name,
in ::server::byteCodeObject attrs
)
raises(
::server::CorbaInstanceNotFoundException,
::server::CorbaReflectionException,
::server::CorbaDeserializeException
);

Sets the values of several attributes of a named MBean through this service(adaptor). The MBean is identified by its object name.

Overrides:
setAttributes in class com.adventnet.adaptors.corba.server._RemoteMBeanServerImplBase
Parameters:
name - The byte array version of object name of the MBean within which the attributes are to be set.
attributes - The byte array version of a list of attributes: The identification of the attributes to be set and the values they are to be set to.
Returns:
The byte array version of list of attributes that were set, with their new values.
Throws:
com.adventnet.adaptors.corba.server.CorbaInstanceNotFoundException - The specified MBean is not registered in the MBeanServer.
com.adventnet.adaptors.corba.server.CorbaReflectionException - An exception occurred when trying to invoke the getAttributes method of a Dynamic MBean.
com.adventnet.adaptors.corba.server.CorbaRuntimeOperationsException - Wraps a java.lang.IllegalArgumentException: The object name in parameter is null or attributes in parameter is null.
com.adventnet.adaptors.corba.server.CorbaDeserializeException - when any any problems in the deserialization of the byte array equivalent of the passed objects.

unregisterMBean

public void unregisterMBean(byte[] name)
                     throws com.adventnet.adaptors.corba.server.CorbaInstanceNotFoundException,
                            com.adventnet.adaptors.corba.server.CorbaMBeanRegistrationException,
                            com.adventnet.adaptors.corba.server.CorbaDeserializeException

Operation: ::server::CorbaFactory::unregisterMBean.

#pragma prefix "server/CorbaFactory"
void unregisterMBean(
in ::server::byteCodeObject name
)
raises(
::server::CorbaInstanceNotFoundException,
::server::CorbaMBeanRegistrationException,
::server::CorbaDeserializeException
);

De-registers an MBean from the MBeanServer through this service(adaptor). The MBean is identified by its object name. Once the method has been invoked, the MBean may no longer be accessed by its object name.

Overrides:
unregisterMBean in class com.adventnet.adaptors.corba.server._RemoteMBeanServerImplBase
Parameters:
name - The byte array version of object name of the MBean to be de-registered.
Throws:
com.adventnet.adaptors.corba.server.CorbaInstanceNotFoundException - The specified MBean is not registered in the MBeanServer.
com.adventnet.adaptors.corba.server.CorbaMBeanRegistrationException - The preDeregister (MBeanRegistration interface) method of the MBean has thrown an exception.
com.adventnet.adaptors.corba.server.CorbaRuntimeOperationsException - Wraps a java.lang.IllegalArgumentException: The object name in parameter is null or the MBean you are when trying to de-register is the MBeanServerDelegate MBean.
com.adventnet.adaptors.corba.server.CorbaDeserializeException - when any any problems in the deserialization of the byte array equivalent of the passed objects.