FileDocCategorySizeDatePackage
DeleteCmd.javaAPI DocGlassfish v2 API3225Fri May 04 22:24:50 BST 2007com.sun.cli.jmx.cmd

DeleteCmd

public class DeleteCmd extends JMXCmd

Fields Summary
static final String
NAME
static final String
NAME_ABBREV
Constructors Summary
public DeleteCmd(CmdEnv env)

		super( env );
	
Methods Summary
voidexecuteInternal()


	
		
	
		 
	
		final String [] operands	= getOperands();
		
		if ( operands.length != 1 )
		{
			final String	msg	= "Exactly one name must be specified";
			printError( msg  );
			throw new IllegalArgumentException( msg );
		}
		final String name	= operands[ operands.length - 1 ];
			
		establishProxy();
		getProxy().mbeanUnregister( name );
	
public static java.lang.String[]getNames()

		return( new String [] { NAME, NAME_ABBREV } );
	
intgetNumRequiredOperands()

		return( 1 );
	
ArgHelper.OptionsInfogetOptionInfo()

		return( new ArgHelperOptionsInfo( ) );
	
public java.lang.StringgetUsage()

		return( CmdStrings.DELETE_HELP.toString() );