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

GetCmd

public class GetCmd extends GetSetCmd

Fields Summary
static final String
GET
static final String
GET_ABBREV
Constructors Summary
public GetCmd(CmdEnv env)

	
		
	    
	
		super( env );
	
Methods Summary
voidexecuteInternal()

		final String			cmd	= getCmdNameAsInvoked();
		
		String  	attributes	= null;
		String []	targets		= null;
			
		if ( cmd.equalsIgnoreCase( GET ) || cmd.equalsIgnoreCase( GET_ABBREV ) )
		{
			attributes	= getAttributes();
			targets		= getTargets();
		}
		
		println( "Getting attributes: " + attributes );
		println( "Against targets: " + ArrayStringifier.stringify( targets, "\n" ) );
		
		establishProxy();
		final ResultsForGetSet []	results	= getProxy().mbeanGet( attributes, targets );
		
		println( ArrayStringifier.stringify( results, "\n\n" ) );
	
public static java.lang.String[]getNames()

		return( new String [] { GET, GET_ABBREV } );
	
public java.lang.StringgetUsage()

		return( CmdStrings.GET_HELP.toString() );