|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.mx.util.JBossNotificationBroadcasterSupport
org.jboss.system.ServiceMBeanSupport
org.jboss.ha.jndi.DetachedHANamingService
org.jboss.ha.jndi.HANamingService
public class HANamingService
Management Bean for HA-JNDI service for the legacy version that is coupled to the RMI/JRMP protocol. The DetachedHANamingService should be used with the approriate detached invoker service.
Field Summary | |
---|---|
protected RMIClientSocketFactory |
clientSocketFactory
An optional custom client socket factory |
protected String |
clientSocketFactoryName
The class name of the optional custom client socket factory |
protected String |
loadBalancePolicy
The class name of the load balancing policy |
protected int |
rmiPort
The RMI port on which the Naming implementation will be exported. |
protected RMIServerSocketFactory |
serverSocketFactory
An optional custom server socket factory |
protected String |
serverSocketFactoryName
The class name of the optional custom server socket factory |
Fields inherited from class org.jboss.ha.jndi.DetachedHANamingService |
---|
adGroupAddress, adGroupPort, autoDiscovery, autoDiscoveryTTL, backlog, bindAddress, bootstrapSocket, clusterPartition, discoveryBindAddress, discoveryDisabled, jnpServerSocketFactory, jnpServerSocketFactoryName, lookupPool, marshalledInvocationMapping, partition, partitionName, port, stub, theServer |
Fields inherited from class org.jboss.system.ServiceMBeanSupport |
---|
log, server, SERVICE_CONTROLLER_SIG, serviceName |
Fields inherited from interface org.jboss.system.ServiceMBean |
---|
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED |
Constructor Summary | |
---|---|
HANamingService()
|
Method Summary | |
---|---|
String |
getClientSocketFactory()
Client socket factory to be used for client-server RMI invocations during JNDI queries |
String |
getLoadBalancePolicy()
|
protected org.jnp.interfaces.Naming |
getNamingProxy()
Get the Naming proxy for the transport. |
int |
getRmiPort()
|
String |
getServerSocketFactory()
Server socket factory to be used for client-server RMI invocations during JNDI queries |
void |
setClientSocketFactory(String factoryClassName)
|
void |
setLoadBalancePolicy(String policyClassName)
LoadBalancePolicy to be used by the HA-JNDI service. |
void |
setRmiPort(int p)
RmiPort to be used by the HA-JNDI service once bound. |
void |
setServerSocketFactory(String factoryClassName)
|
protected void |
stopService()
|
Methods inherited from class org.jboss.system.ServiceMBeanSupport |
---|
create, destroy, getDeploymentInfo, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, start, stop |
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport |
---|
addNotificationListener, getNotificationInfo, handleNotification, nextNotificationSequenceNumber, removeNotificationListener, removeNotificationListener, sendNotification |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jboss.system.ServiceMBean |
---|
getName, getState, getStateString, jbossInternalLifecycle |
Methods inherited from interface org.jboss.system.Service |
---|
create, destroy, start, stop |
Field Detail |
---|
protected RMIClientSocketFactory clientSocketFactory
protected RMIServerSocketFactory serverSocketFactory
protected String clientSocketFactoryName
protected String serverSocketFactoryName
protected String loadBalancePolicy
protected int rmiPort
Constructor Detail |
---|
public HANamingService()
Method Detail |
---|
public void setRmiPort(int p)
HANamingServiceMBean
setRmiPort
in interface HANamingServiceMBean
public int getRmiPort()
getRmiPort
in interface HANamingServiceMBean
public String getClientSocketFactory()
HANamingServiceMBean
getClientSocketFactory
in interface HANamingServiceMBean
public void setClientSocketFactory(String factoryClassName) throws ClassNotFoundException, InstantiationException, IllegalAccessException
setClientSocketFactory
in interface HANamingServiceMBean
ClassNotFoundException
InstantiationException
IllegalAccessException
public String getServerSocketFactory()
HANamingServiceMBean
getServerSocketFactory
in interface HANamingServiceMBean
public void setServerSocketFactory(String factoryClassName) throws ClassNotFoundException, InstantiationException, IllegalAccessException
setServerSocketFactory
in interface HANamingServiceMBean
ClassNotFoundException
InstantiationException
IllegalAccessException
public String getLoadBalancePolicy()
getLoadBalancePolicy
in interface HANamingServiceMBean
public void setLoadBalancePolicy(String policyClassName)
HANamingServiceMBean
setLoadBalancePolicy
in interface HANamingServiceMBean
protected void stopService() throws Exception
stopService
in class DetachedHANamingService
Exception
protected org.jnp.interfaces.Naming getNamingProxy() throws Exception
DetachedHANamingService
getNamingProxy
in class DetachedHANamingService
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |