Package javax.management

Examples of javax.management.RuntimeOperationsException


        throws AttributeNotFoundException, MBeanException,
        ReflectionException {
        // Validate the input parameters
        if (name == null)
            throw new RuntimeOperationsException
                (new IllegalArgumentException("Attribute name is null"),
                 "Attribute name is null");

        ContextResource cr = null;
        try {
View Full Code Here


        throws AttributeNotFoundException, MBeanException,
        ReflectionException {

        // Validate the input parameters
        if (attribute == null)
            throw new RuntimeOperationsException
                (new IllegalArgumentException("Attribute is null"),
                 "Attribute is null");
        String name = attribute.getName();
        Object value = attribute.getValue();
        if (name == null)
            throw new RuntimeOperationsException
                (new IllegalArgumentException("Attribute name is null"),
                 "Attribute name is null");
       
        ContextResource cr = null;
        try {
View Full Code Here

            if (params == null)
                params = new Object[0];
            if (signature == null)
                signature = new String[0];
            if (params.length != signature.length)
                throw new RuntimeOperationsException(
                        new IllegalArgumentException(
                                "Inconsistent arguments and signature"),
                        "Inconsistent arguments and signature");

            // Acquire the ModelMBeanOperationInfo information for
View Full Code Here

    public Object getAttribute(String attributeName) throws AttributeNotFoundException,
                                                    MBeanException,
                                                    ReflectionException {
        if ( attributeName == null ) {
            throw new RuntimeOperationsException( new IllegalArgumentException( "attributeName cannot be null" ),
                                                  "Cannot invoke a getter of " + getClass().getName() );
        } else if ( attributeName.equals( ATTR_ID ) ) {
            return getId();
        } else if ( attributeName.equals( ATTR_SESSION_COUNT ) ) {
            return Long.valueOf( getSessionCount() );
        } else if ( attributeName.equals( ATTR_GLOBALS ) ) {
            try {
                return getGlobals();
            } catch ( OpenDataException e ) {
                throw new RuntimeOperationsException( new RuntimeException( "Error retrieving globals list",
                                                                            e ),
                                                      "Error retrieving globals list " + e.getMessage() );
            }
        } else if ( attributeName.equals( ATTR_PACKAGES ) ) {
            return getPackages();
View Full Code Here

            if (params == null)
                params = new Object[0];
            if (signature == null)
                signature = new String[0];
            if (params.length != signature.length)
                throw new RuntimeOperationsException(
                        new IllegalArgumentException(
                                "Inconsistent arguments and signature"),
                        "Inconsistent arguments and signature");

            // Acquire the ModelMBeanOperationInfo information for
View Full Code Here

      InvalidAttributeValueException,
      MBeanException,
      ReflectionException  {

  if (attribute == null)  {
      throw new RuntimeOperationsException(
    new IllegalArgumentException(
      "MBean "
      + getMBeanName()
      + ": Null attribute passed to setAttribute()"));
        }
View Full Code Here

     
      // any other throwable object that gets propagated back to the invoker
      // indicates an error in the server or in the interceptor implementation.
      catch (Throwable t)
      {
         throw new RuntimeOperationsException(new RuntimeException(
               "Unhandled throwable propagated to the invoker by " +
               invocation + ":" +t.toString())
         );
        
         // TODO:  mark interceptors so we can track which interceptor fails
View Full Code Here

      // any other throwable object that gets propagated back to the invoker
      // indicates an error in the server or in the interceptor implementation.
      catch (Throwable t)
      {
         throw new RuntimeOperationsException(new RuntimeException(
               "Unhandled throwable propagated to the invoker by " +
               invocation + ":" +t.toString())
         );
        
         // TODO:  mark interceptors so we can track which interceptor fails           
View Full Code Here

     
      // any other throwable object that gets propagated back to the invoker
      // indicates an error in the server or in the interceptor implementation.     
      catch (Throwable t)
      {
         throw new RuntimeOperationsException(new RuntimeException(
               "Unhandled throwable propagated to the invoker by " +
               invocation + ":" +t.toString())
         );
      }
     
View Full Code Here

         return info;
      }
      catch (InvocationException e)
      {
         throw new RuntimeOperationsException(new RuntimeException(
               "Unhandled throwable propagated to the invoker by " +
               invocation + ":" + e.toString())
         );
      }
   }        
View Full Code Here

TOP

Related Classes of javax.management.RuntimeOperationsException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.