1 23 24 29 30 package com.sun.cli.jmx.cmd; 31 32 33 import com.sun.cli.jmx.support.ResultsForGetSet; 34 import com.sun.cli.jmx.support.CLISupportMBeanProxy; 35 import com.sun.cli.util.stringifier.*; 36 37 public class SetCmd extends GetSetCmd 38 { 39 public 40 SetCmd( final CmdEnv env ) 41 { 42 super( env ); 43 } 44 45 public String 46 getUsage() 47 { 48 return( CmdStrings.SET_HELP.toString() ); 49 } 50 51 public static String [] 52 getNames( ) 53 { 54 return( new String [] { "set", "s" } ); 55 } 56 57 void 58 executeInternal() 59 throws Exception 60 { 61 final String attributes = getAttributes(); 62 final String [] targets = getTargets(); 63 64 establishProxy(); 65 final ResultsForGetSet [] results = getProxy().mbeanSet( attributes, targets ); 66 println( ArrayStringifier.stringify( results, "\n\n" ) ); 67 } 68 } 69 70 | Popular Tags |