Java Reference
In-Depth Information
import java.util.*;
import java.io.*;
import java.net.*;
public class MLetWrapper extends NotificationBroadcasterSupport
implements MLetWrapperMBean, MBeanRegistration
{
private ObjectName mletName = null;
private MBeanServer mbs = null;
public MLetWrapper( String mletServiceName )
{
try
{
this.mletName = new ObjectName( mletServiceName );
}
catch( Exception e )
{
//do nothing
}
}
B
Store object
name of actual
M-let service
//MBeanRegistration methods
public void postDeregister(){}
public void preDeregister(){}
public ObjectName preRegister( MBeanServer server,
ObjectName name )
throws Exception
{
this.mbs = server;
C
Find M-let
service
//check for the existence of the M-let service.
if( mletName == null || !mbs.isRegistered( mletName )
throw new
Exception( "M-let service not present in MBean Server" );
return name;
}
public void postRegister( Boolean done ){}
//MLetMBean methods
public Set getMBeansFromURL( String url )
throws ServiceNotFoundException
{
Set rvalue = null;
MLetNotification notif = null;
D
Object[] obj = { url };
String[] sig = { "java.lang.String" };
try
{
Search WWH ::




Custom Search