Package javax.management

Examples of javax.management.InstanceNotFoundException


           MBeanException,
           ReflectionException,
           RemoteException
   {
      Object lReturn = null;
      InstanceNotFoundException lException = null;
      log.info("invoke(), name: " + pName + ", operation: " + pOperationName +
              ", params: " + pParams + ", signature: " + pSignature);
      try
      {
         lReturn = server.invoke(pName, pOperationName, pParams, pSignature);
View Full Code Here


           InvalidAttributeValueException,
           MBeanException,
           ReflectionException,
           RemoteException
   {
      InstanceNotFoundException lException = null;
      try
      {
         server.setAttribute(pName, pAttribute);
      }
      catch (InstanceNotFoundException infe)
View Full Code Here

           InstanceNotFoundException,
           ReflectionException,
           RemoteException
   {
      Object lReturn = null;
      InstanceNotFoundException lException = null;
      try
      {
         lReturn = server.setAttributes(pName, pAttributes);
      }
      catch (InstanceNotFoundException infe)
View Full Code Here

   {
      ScheduleInstance lInstance = (ScheduleInstance) mSchedules.get(new Integer(pIdentification));
      try
      {
     if (lInstance == null)
      throw new InstanceNotFoundException();
         lInstance.stop();
      }
      catch (JMException e)
      {
         log.error("Could not stop " + lInstance, e);
View Full Code Here

         {
            return (ClassLoader)metadata.mbean;
         }
         else
         {
            throw new InstanceNotFoundException(name.getCanonicalName());
         }
      }
   }
View Full Code Here

            metadata = repository.get(objectName);
         }
      }
      if (metadata == null)
      {
         throw new InstanceNotFoundException("MBeanServer cannot find MBean with ObjectName " + objectName);
      }
      return metadata;
   }
View Full Code Here

                              "direct.used");
    }

    @Test
    public void ignoresGaugesForObjectsWhichCannotBeFound() throws Exception {
        when(mBeanServer.getMBeanInfo(mapped)).thenThrow(new InstanceNotFoundException());

        assertThat(buffers.getMetrics().keySet())
                .containsOnly("direct.count",
                              "direct.capacity",
                              "direct.used");
View Full Code Here

    }

    public AbstractName toAbstractName(ObjectName objectName) throws InstanceNotFoundException{
        AbstractName abstractName = getAbstractNameFor(objectName);
        if (abstractName == null) {
            throw new InstanceNotFoundException(objectName.getCanonicalName());
        }
        return abstractName;
    }
View Full Code Here

        try {
            return kernel.getAttribute(abstractName, attribute);
        } catch (NoSuchAttributeException e) {
            throw new AttributeNotFoundException(attribute);
        } catch (GBeanNotFoundException e) {
            throw new InstanceNotFoundException(name.getCanonicalName());
        } catch (InternalKernelException e) {
            throw new MBeanException(unwrapInternalKernelException(e));
        } catch (Exception e) {
            throw new MBeanException(e);
        }
View Full Code Here

                Object value = kernel.getAttribute(abstractName, attribute);
                attributeList.add(i, new Attribute(attribute, value));
            } catch (NoSuchAttributeException e) {
                // ignored - caller will simply find no value
            } catch (GBeanNotFoundException e) {
                throw new InstanceNotFoundException(name.getCanonicalName());
            } catch (InternalKernelException e) {
                throw new ReflectionException(unwrapInternalKernelException(e));
            } catch (Exception e) {
                // ignored - caller will simply find no value
            }
View Full Code Here

TOP

Related Classes of javax.management.InstanceNotFoundException

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.