|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The ha singleton invoker service extends the ha singleton service and adds the capability to invoke the singleton service from the cluster.
Nested Class Summary | |
static interface |
HASingletonInvokerMBean.Callback
Contract layer that defines the interactions between the service and the ha invoker. |
static interface |
HASingletonInvokerMBean.Proxy
The proxy interface bound in JNDI. |
Field Summary |
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 |
Method Summary | |
HASingletonInvokerMBean.Callback |
getCallback()
Get the callback of the invoker. |
java.lang.String |
getJNDIName()
Return the JNDI name under which the proxy is bound. |
java.util.Properties |
getJNDIProperties()
Return the JNDI configuration to lookup the proxy. |
int |
getMaxRetries()
Return the max number of retries when an invocation is done. |
javax.management.ObjectName |
getProxyFactory()
Return the name of the proxy factory to use. |
long |
getRetryWaitingTimeMS()
Return the time that the thread will sleep before looking up a proxy during fail over. |
java.lang.Object |
invoke(java.lang.String methodName,
java.lang.Class[] types,
java.lang.Object[] args)
Invoke the service through the invoker. |
HASingletonInvokerMBean.Proxy |
lookupProxy()
Return the proxy, if it is cached then it will return the cached proxy otherwise it will perform a JNDI lookup. |
void |
setCallback(HASingletonInvokerMBean.Callback callback)
|
void |
setJNDIName(java.lang.String jndiName)
|
void |
setJNDIProperties(java.util.Properties jndiProperties)
|
void |
setMaxRetries(int maxRetries)
|
void |
setProxyFactory(javax.management.ObjectName proxyFactory)
|
void |
setRetryWaitingTimeMS(long retryWaitingTimeMS)
|
Methods inherited from interface org.jboss.ha.singleton.HASingletonMBean |
isMasterNode |
Methods inherited from interface org.jboss.ha.jmx.HAServiceMBean |
callMethodOnPartition, getDistributedState, getPartitionName, sendNotification, setDistributedState, setPartitionName |
Methods inherited from interface org.jboss.system.ServiceMBean |
getName, getState, getStateString, jbossInternalLifecycle |
Methods inherited from interface org.jboss.system.Service |
create, destroy, start, stop |
Methods inherited from interface javax.management.NotificationBroadcaster |
addNotificationListener, getNotificationInfo, removeNotificationListener |
Method Detail |
public HASingletonInvokerMBean.Callback getCallback()
public void setCallback(HASingletonInvokerMBean.Callback callback)
getCallback()
public java.lang.String getJNDIName()
public void setJNDIName(java.lang.String jndiName)
getJNDIName()
public javax.management.ObjectName getProxyFactory()
public void setProxyFactory(javax.management.ObjectName proxyFactory)
getProxyFactory()
public java.util.Properties getJNDIProperties()
public void setJNDIProperties(java.util.Properties jndiProperties)
getJNDIProperties()
public int getMaxRetries()
public void setMaxRetries(int maxRetries)
getMaxRetries()
public long getRetryWaitingTimeMS()
public void setRetryWaitingTimeMS(long retryWaitingTimeMS)
getRetryWaitingTimeMS()
public HASingletonInvokerMBean.Proxy lookupProxy()
public java.lang.Object invoke(java.lang.String methodName, java.lang.Class[] types, java.lang.Object[] args) throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |