Java Reference
In-Depth Information
throws InstanceNotFoundException,
ListenerNotFoundException { return; }
public MBeanInfo getMBeanInfo(ObjectName name)
throws InstanceNotFoundException,
IntrospectionException,
ReflectionException
{ return null; }
public boolean isInstanceOf(ObjectName name, String className)
throws InstanceNotFoundException
{ return false; }
public ObjectInputStream deserialize(ObjectName name,
byte[] data)
throws InstanceNotFoundException,
OperationsException { return null; }
public ObjectInputStream deserialize(String className,
byte[] data)
throws OperationsException,
ReflectionException
{ return null; }
public ObjectInputStream deserialize(String className,
ObjectName loaderName, byte[] data)
throws InstanceNotFoundException,
OperationsException, ReflectionException
{ return null; }
G
Test in main()
method
public static void main( String args[] )
{
try
{
JINIConnectorClient client = new JINIConnectorClient();
System.out.println(client.getMBeanCount() );
client.createMBean( "jmxbook.ch2.HelloWorld",
new ObjectName(
"JMXBookAgent:name=hwtest" ) );
}
catch( Exception e )
{
e.printStackTrace();
}
}
}
B
A good place to begin the examination of the code is the class constructor. The
constructor is responsible for creating the search parameters that will find the
Jini service portion of the Jini connector. It does so by creating an instance of the
class ServiceTemplate . For now, the only parameter going into the template is
the interface type name jmxbook.ch9.JINIConnector .
Search WWH ::




Custom Search