Examples of AMX


Examples of com.sun.appserv.management.base.AMX

 
    public synchronized void
  checkGetProperties( final ObjectName src )
    throws Exception
  {
    final AMX  proxy  = getProxy( src, AMX.class);
   
    if ( ! (proxy instanceof SystemPropertiesAccess) )
    {
      throw new IllegalArgumentException(
        "MBean does not implement SystemPropertiesAccess: " + quote( src ) );
View Full Code Here

Examples of com.sun.appserv.management.base.AMX

   */
    public void
  checkMaps( final ObjectName objectName )
    throws Exception
  {
    final AMX  proxy  = getProxyFactory().getProxy( objectName, AMX.class );
    if ( proxy instanceof Container )
    {
      final Method[]  methods    = getInterfaceClass( proxy ).getMethods();
      final MBeanInfo  mbeanInfo  = Util.getExtra( proxy ).getMBeanInfo();
           
View Full Code Here

Examples of com.sun.appserv.management.base.AMX

   */
    public void
  checkReturnTypes( final ObjectName objectName )
    throws Exception
  {
    final AMX  proxy  = getProxyFactory().getProxy( objectName, AMX.class);
    final MBeanInfo  info  = Util.getExtra( proxy ).getMBeanInfo();
    final MBeanOperationInfo[]  operations  = info.getOperations();
   
    boolean  emittedName  = false;
   
View Full Code Here

Examples of com.sun.appserv.management.base.AMX

   */
    public void
  checkAttributeTypes( final ObjectName objectName )
    throws Exception
  {
    final AMX  proxy  = getProxyFactory().getProxy( objectName, AMX.class);
    final MBeanInfo  info  = Util.getExtra( proxy ).getMBeanInfo();
    final MBeanAttributeInfo[]  attributes  = info.getAttributes();
   
    boolean  emittedName  = false;
   
View Full Code Here

Examples of com.sun.appserv.management.base.AMX

   */
    public void
  checkCreateRemoveGet( final ObjectName objectName )
    throws Exception
  {
    final AMX  proxy  = getProxyFactory().getProxy( objectName, AMX.class );
    if ( proxy instanceof Container )
    {
      final Method[]  methods  = getInterfaceClass( proxy ).getMethods();
      final MBeanInfo  mbeanInfo      = Util.getExtra( proxy ).getMBeanInfo();
      final MBeanOperationInfo[]  operations  = mbeanInfo.getOperations();
View Full Code Here

Examples of com.sun.appserv.management.base.AMX

   */
    public void
  checkImplementsAMXConfig( final ObjectName objectName )
    throws Exception
  {
    final AMX  proxy  = getProxyFactory().getProxy( objectName, AMX.class );
    final String  interfaceName  = Util.getExtra( proxy ).getInterfaceName();
    if ( interfaceName.endsWith( "Config" ) || interfaceName.endsWith( "ConfigMgr" ) )
    {
      if ( !( proxy instanceof AMXConfig) )
      {
View Full Code Here

Examples of com.sun.appserv.management.base.AMX

   */
    public void
  checkMapsHaveCreateRemove( final ObjectName objectName )
    throws Exception
  {
    final AMX  proxy  = getProxyFactory().getProxy( objectName, AMX.class );
   
    if ( proxy instanceof Container && proxy.getGroup().equals( AMX.GROUP_CONFIGURATION ) )
    {
      final Extra  extra  = Util.getExtra( proxy );
      final String[] attrNames  = extra.getAttributeNames();
     
      for( int i = 0; i < attrNames.length; ++i )
      {
        final String  name  = attrNames[ i ];
                       
        final String  SUFFIX  = "ObjectNameMap";
        final String  PREFIX  = JMXUtil.GET;
        if ( name.endsWith( SUFFIX ) )
        {
          final String  base  = StringUtil.stripPrefixAndSuffixname, PREFIX, SUFFIX );
                   
                    if ( base.endsWith( "ConnectorModuleConfig" ) )
                    {
                        // these are created via deployment not directly
                        continue;
                    }
                   
          final String  createName  = "create" + base;
          final String  removeName  = "remove" + base;
         
          final String  j2eeType  = proxy.getJ2EEType();
          if ( ignoreCreateRemove( proxy.getJ2EEType(), createName ) )
          {
            continue;
          }
         
          final MBeanOperationInfo[]  creates  =
View Full Code Here

Examples of com.sun.appserv.management.base.AMX

    public void
  checkCreateProxy( final ObjectName src )
    throws Exception
  {
    final AMX  proxy  = getProxyFactory().getProxy( src, AMX.class);
   
    Util.getObjectName( proxy );
    proxy.getContainer();
    proxy.getDomainRoot();
  }
View Full Code Here

Examples of com.sun.appserv.management.base.AMX

 
    public void
  checkProxiesCached( final ObjectName src )
    throws Exception
  {
    final AMX  proxy  = getProxyFactory().getProxy( src, AMX.class);
   
    assert( proxy == getProxyFactory().getProxy( src, AMX.class) );
    assert( proxy.getContainer() == proxy.getContainer() );
    assert( proxy.getDomainRoot() == proxy.getDomainRoot() );
 
    final Class      interfaceClass    = getInterfaceClass( proxy );
    final Method[]    proxyMethods  = interfaceClass.getMethods();
   
    for( int methodIdx = 0; methodIdx < proxyMethods.length; ++methodIdx )
View Full Code Here

Examples of com.sun.appserv.management.base.AMX

    private void
  testPropertiesCreateRemove( final PropertiesAccess props )
  {
    final String[]  propNames      = props.getPropertyNames();

        final AMX amx           = Util.asAMX( props );
        final String j2eeType   = amx.getJ2EEType();
        if ( ! TEST_CREATE_REMOVE_TYPES.contains( j2eeType ) )
        {
            return;
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.