1 23 24 29 30 31 32 package com.sun.cli.jmx.support; 33 34 import javax.management.*; 35 import java.io.IOException ; 36 37 38 public final class CLISupport implements CLISupportMBean 39 { 40 private CLISupportMBeanImpl mImpl; 41 42 43 48 public 49 CLISupport( MBeanServerConnection conn, AliasMgrMBean aliasMgr ) 50 throws Exception 51 { 52 mImpl = new CLISupportMBeanImpl( conn, aliasMgr ); 53 } 54 55 public ResultsForGetSet [] 56 mbeanGet( String attrs, String [] targets) throws Exception 57 { 58 final ResultsForGetSet [] result = mImpl.mbeanGet( attrs, targets ); 59 60 return( result ); 61 } 62 63 64 public ResultsForGetSet [] 65 mbeanSet( String attrs, String [] targets ) throws Exception 66 { 67 final ResultsForGetSet [] result = mImpl.mbeanSet( attrs, targets ); 68 69 return( result ); 70 } 71 72 73 public InvokeResult [] 74 mbeanInvoke( String operationName, String args, String [] targets ) 75 throws Exception 76 { 77 final InvokeResult [] result = mImpl.mbeanInvoke( operationName, args, targets ); 78 79 return( result ); 80 } 81 82 83 public InspectResult 84 mbeanInspect( InspectRequest request, ObjectName name ) 85 throws Exception 86 { 87 final InspectResult result = (InspectResult)mImpl.mbeanInspect( request, name ); 88 89 return( result ); 90 } 91 92 public InspectResult [] 93 mbeanInspect( InspectRequest request, String [] targets ) 94 throws Exception 95 { 96 final InspectResult [] result = mImpl.mbeanInspect( request, targets ); 97 98 return( result ); 99 } 100 101 public ObjectName [] 102 mbeanFind( String [] patterns ) 103 throws Exception 104 { 105 final ObjectName [] result = mImpl.mbeanFind( patterns ); 106 107 return( result ); 108 } 109 110 111 public ObjectName [] 112 mbeanFind( String [] patterns, String regexList) 113 throws Exception 114 { 115 final ObjectName [] result = mImpl.mbeanFind( patterns, regexList ); 116 117 return( result ); 118 } 119 120 121 public ObjectName [] 122 resolveTargets( final String [] targets ) throws Exception 123 { 124 final ObjectName [] resolved = mImpl.resolveTargets( targets ); 125 126 return( resolved ); 127 } 128 129 public void 130 mbeanCreate( String name, String theClass, String args ) throws Exception 131 { 132 mImpl.mbeanCreate( name, theClass, args ); 133 } 134 135 public void 136 mbeanUnregister( String name ) throws Exception 137 { 138 mImpl.mbeanUnregister( name ); 139 } 140 141 public int 142 mbeanCount( ) throws Exception 143 { 144 return( mImpl.mbeanCount( ) ); 145 } 146 147 public String [] 148 mbeanDomains( ) throws Exception 149 { 150 return( mImpl.mbeanDomains( ) ); 151 } 152 153 public void 154 mbeanListen( 155 boolean start, 156 String [] targets, 157 NotificationListener listener, 158 NotificationFilter filter, 159 Object handback ) throws Exception 160 { 161 mImpl.mbeanListen( start, targets, listener, filter, handback ); 162 } 163 164 } 165 166 | Popular Tags |