}
private CLISupportMBeanProxy
createProxy(MBeanServerConnection managedServer, boolean runLocally ) throws Exception
{
CLISupportMBeanProxy proxy = null;
AliasMgrMBean aliasMgr = null;
CLISupportMBean cliSupport = null;
if ( runLocally )
{
final AliasMgrHashMapImpl aliasMgrImpl = new AliasMgrHashMapImpl();
aliasMgrImpl.load( AliasMgrHashMapImpl.DEFAULT_FILENAME );
aliasMgr = new AliasMgr( aliasMgrImpl );
StandardAliasesIniter.init( aliasMgr );
cliSupport = new CLISupport( managedServer, aliasMgr );
}
else
{
aliasMgr = CLISupportMBeanProxy.createAliasMgrProxy( managedServer );
cliSupport = CLISupportMBeanProxy.createCLISupportProxy( managedServer );
}
proxy = new CLISupportMBeanProxy( aliasMgr, cliSupport);
return( proxy );
}