|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.mx.remoting.MBeanTransportPreference
MBeanTransportPreference is a utility class that will take into account the VM's setup transport preferences when trying to create a preferred connection back to a remote MBeanServer. Since there are cases when multiple invoker transports can exist and all be valid, this will help determine which order the transports should be attempted. You wouldn't want to connect via SOAP, in most cases, when TCP/IP via Sockets is available. There are cases however you do want to explicitly choose SOAP vs. Sockets or RMI, and in which case your preference order might be soap, socket, rmi.
Constructor Summary | |
MBeanTransportPreference()
|
Method Summary | |
static MBeanServer (src) |
getServerByTransport(Identity (src) identity,
InvokerLocator (src) [] locators)
return a server transport to a MBeanServer on a remote server, using the transport preference order specified by the user |
static java.lang.String[] |
getTransportPreferences()
get the order to use when selecting transports to connect to a remote server |
static void |
setLocalServer(MBeanServer (src) server,
Identity (src) identity)
|
static void |
setTransportPreferences(java.lang.String[] order)
set the order to use when selecting transports to connect to a remote server |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MBeanTransportPreference()
Method Detail |
public static void setLocalServer(MBeanServer (src) server, Identity (src) identity)
public static void setTransportPreferences(java.lang.String[] order)
order
- public static java.lang.String[] getTransportPreferences()
public static MBeanServer (src) getServerByTransport(Identity (src) identity, InvokerLocator (src) [] locators) throws ConnectionFailedException (src)
identity
- locators
-
ConnectionFailedException (src)
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |