org.jmx4odp.j4oNet
Class BroadcastResolver

java.lang.Object
  extended by org.jmx4odp.j4oNet.MBeanResolver
      extended by org.jmx4odp.j4oNet.BroadcastResolver
All Implemented Interfaces:
javax.management.MBeanRegistration, MBeanResolverMBean

public class BroadcastResolver
extends MBeanResolver

This object takes request for jmx service reolution, and broadcasts it as a UDP packet that a J4ONet object listing on the same broadcast group and port will reply to. This is the version 1 of the J4ONet discovery protocol. If this object were to generate another version stamp, the current system would ignore it. It then listens for x ms (BroadcastReplyTimeout in the config jso) for UDP replies sent by J4ONet.

Author:
Lucas McGregor

Field Summary
 
Fields inherited from class org.jmx4odp.j4oNet.MBeanResolver
mbeanServer, objectName
 
Constructor Summary
BroadcastResolver()
          Creates new BroadcastResolver
 
Method Summary
 JmxServiceObj[] discoverServices(JmxServiceObj jso)
           
 JmxServiceObj getLocalConfig()
           
 int getProtocolVersion()
          Return the version of the dicovery protocol that is in use by this object.
protected  JmxServiceObj[] handleAgentRequest(JmxServiceObj jso)
           
protected  JmxServiceObj[] handleMBeanRequest(JmxServiceObj jso)
          this is what all the children MBeanResolvers should over write.
protected  JmxServiceObj[] handleRequest(JmxServiceObj jso)
           
 void setLocalConfig(JmxServiceObj jso)
           
 
Methods inherited from class org.jmx4odp.j4oNet.MBeanResolver
getActive, getCachable, getNameSpace, getThreshHold, inNameSpace, postDeregister, postRegister, preDeregister, preRegister, registered, resolve, setActive, setCachable, setNameSpace, setThreshHold
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BroadcastResolver

public BroadcastResolver()
Creates new BroadcastResolver

Method Detail

getProtocolVersion

public int getProtocolVersion()
Return the version of the dicovery protocol that is in use by this object.


setLocalConfig

public void setLocalConfig(JmxServiceObj jso)

getLocalConfig

public JmxServiceObj getLocalConfig()

handleMBeanRequest

protected JmxServiceObj[] handleMBeanRequest(JmxServiceObj jso)
Description copied from class: MBeanResolver
this is what all the children MBeanResolvers should over write.

Overrides:
handleMBeanRequest in class MBeanResolver

handleAgentRequest

protected JmxServiceObj[] handleAgentRequest(JmxServiceObj jso)
Overrides:
handleAgentRequest in class MBeanResolver

handleRequest

protected JmxServiceObj[] handleRequest(JmxServiceObj jso)

discoverServices

public JmxServiceObj[] discoverServices(JmxServiceObj jso)
                                 throws java.lang.Exception
Throws:
java.lang.Exception