1 23 24 29 30 package com.sun.appserv.management.util.jmx; 31 32 import java.io.IOException ; 33 34 import javax.management.MBeanServerConnection ; 35 import javax.management.remote.JMXConnector ; 36 37 import com.sun.appserv.management.client.ConnectionSource; 38 39 40 43 public final class MBeanServerConnectionConnectionSource implements ConnectionSource 44 { 45 protected MBeanServerConnection mConn; 46 47 50 public 51 MBeanServerConnectionConnectionSource( final MBeanServerConnection conn ) 52 { 53 mConn = conn; 54 } 55 56 public MBeanServerConnection 57 getMBeanServerConnection( boolean forceNew ) 58 throws IOException 59 { 60 if ( mConn == null ) 61 { 62 throw new IOException (); 63 } 64 65 return( mConn ); 66 } 67 68 public MBeanServerConnection 69 getExistingMBeanServerConnection( ) 70 { 71 return( mConn ); 72 } 73 74 75 public JMXConnector 76 getJMXConnector( boolean forceNew ) 77 throws IOException 78 { 79 return( null ); 81 } 82 } 83 | Popular Tags |