|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface HASingletonInvokerMBean
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.ha.singleton.HASingletonMBean |
---|
HASINGLETON_STARTED_NOTIFICATION, HASINGLETON_STARTING_NOTIFICATION, HASINGLETON_STOPPED_NOTIFICATION, HASINGLETON_STOPPING_NOTIFICATION |
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, getClusterPartition, getDistributedState, getPartitionName, sendNotification, setClusterPartition, 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 |
---|
HASingletonInvokerMBean.Callback getCallback()
void setCallback(HASingletonInvokerMBean.Callback callback)
getCallback()
java.lang.String getJNDIName()
void setJNDIName(java.lang.String jndiName)
getJNDIName()
javax.management.ObjectName getProxyFactory()
void setProxyFactory(javax.management.ObjectName proxyFactory)
getProxyFactory()
java.util.Properties getJNDIProperties()
void setJNDIProperties(java.util.Properties jndiProperties)
getJNDIProperties()
int getMaxRetries()
void setMaxRetries(int maxRetries)
getMaxRetries()
long getRetryWaitingTimeMS()
void setRetryWaitingTimeMS(long retryWaitingTimeMS)
getRetryWaitingTimeMS()
HASingletonInvokerMBean.Proxy lookupProxy()
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 |