FileDocCategorySizeDatePackage
J2EEServerImpl.javaAPI DocGlassfish v2 API6046Fri May 04 22:23:30 BST 2007com.sun.enterprise.management.j2ee

J2EEServerImpl

public class J2EEServerImpl extends J2EELogicalServerImplBase
JSR 77 extension representing an Appserver standalone server (non-clustered). Note that this class has a subclass: DASJ2EEServerImpl.

Fields Summary
private static final String
serverVendor
private static final Set
RESOURCE_TYPES
private static final Set
DONT_MAP_SET
Constructors Summary
public J2EEServerImpl(com.sun.enterprise.management.support.Delegate delegate)


		
	    
	
		super( delegate );
	
protected J2EEServerImpl(String j2eeType, com.sun.enterprise.management.support.Delegate delegate)

		super( j2eeType, delegate );
	
Methods Summary
public final java.util.SetgetContaineeObjectNameSet(java.lang.String childJ2EEType)

		final Set<ObjectName>	result	= super.getContaineeObjectNameSet( childJ2EEType );
		
		if ( getFauxChildTypes().contains( childJ2EEType ) )
		{
			final String	nullAppProp	= Util.makeProp( J2EETypes.J2EE_APPLICATION, AMX.NULL_NAME );

			final Set<ObjectName>	fauxContainees	=
			    getFauxContaineeObjectNameSet( childJ2EEType, nullAppProp);
			result.addAll( fauxContainees );
		}
		
		return( result );
	
protected java.util.SetgetDontMapAttributeNames()

	
		 
	
	
		return( GSetUtil.newSet( DONT_MAP_SET, super.getDontMapAttributeNames() ) );
	
protected final java.util.SetgetFauxChildTypes()

		final TypeInfo	j2eeApplicationInfo	=
			TypeInfos.getInstance().getInfo( J2EETypes.J2EE_APPLICATION );
	
		final Set<String>	childJ2EETypes	= j2eeApplicationInfo.getChildJ2EETypes();
		return( childJ2EETypes );
	
public java.util.SetgetResourcesObjectNameSet()

		return	getContaineeObjectNameSet( RESOURCE_TYPES );
	
public booleangetRestartRequired()

        final Object result  = delegateGetAttributeNoThrow( "RestartRequired" );
        return Boolean.valueOf( "" + result );
	
private com.sun.appserv.management.j2ee.J2EEServergetSelfProxy()

	    return (J2EEServer)getSelf();
	
public java.lang.String[]getjavaVMs()

		final JVM	jvm	= getSelfProxy().getJVM();
		
		String[]	result	= null;
		if ( jvm == null )
		{
			result	= new String[ 0 ];
		}
		else
		{
			result	= new String[]	{ "" + Util.getObjectName( jvm ) };
		}
		
		return result;
	
public java.lang.String[]getresources()

		
	
		 
	
	
		return GSetUtil.toStringArray( getResourcesObjectNameSet() );
	
public java.lang.StringgetserverVendor()

		return serverVendor;
	
public java.lang.StringgetserverVersion()

		return ( Version.getVersion() );
	
public booleanisstatisticProvider()

		return( false );
	
public booleanisstatisticsProvider()

		return isstatisticProvider();