|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectHASingletonSupport
org.jboss.portal.jems.ha.HASingletonInvoker
public class HASingletonInvoker
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.jboss.portal.jems.ha.HASingletonInvokerMBean |
|---|
HASingletonInvokerMBean.Callback, HASingletonInvokerMBean.Proxy |
| Constructor Summary | |
|---|---|
HASingletonInvoker()
|
|
| 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(Invocation mi)
|
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)
|
protected void |
startService()
|
void |
startSingleton()
|
protected void |
stopService()
|
void |
stopSingleton()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HASingletonInvoker()
| Method Detail |
|---|
public long getRetryWaitingTimeMS()
HASingletonInvokerMBean
getRetryWaitingTimeMS in interface HASingletonInvokerMBeanpublic void setRetryWaitingTimeMS(long retryWaitingTimeMS)
setRetryWaitingTimeMS in interface HASingletonInvokerMBeanHASingletonInvokerMBean.getRetryWaitingTimeMS()public int getMaxRetries()
HASingletonInvokerMBean
getMaxRetries in interface HASingletonInvokerMBeanpublic void setMaxRetries(int maxRetries)
setMaxRetries in interface HASingletonInvokerMBeanHASingletonInvokerMBean.getMaxRetries()public java.util.Properties getJNDIProperties()
HASingletonInvokerMBean
getJNDIProperties in interface HASingletonInvokerMBeanpublic void setJNDIProperties(java.util.Properties jndiProperties)
setJNDIProperties in interface HASingletonInvokerMBeanHASingletonInvokerMBean.getJNDIProperties()public javax.management.ObjectName getProxyFactory()
HASingletonInvokerMBean
getProxyFactory in interface HASingletonInvokerMBeanpublic void setProxyFactory(javax.management.ObjectName proxyFactory)
setProxyFactory in interface HASingletonInvokerMBeanHASingletonInvokerMBean.getProxyFactory()public HASingletonInvokerMBean.Callback getCallback()
HASingletonInvokerMBean
getCallback in interface HASingletonInvokerMBeanpublic void setCallback(HASingletonInvokerMBean.Callback callback)
setCallback in interface HASingletonInvokerMBeanHASingletonInvokerMBean.getCallback()public java.lang.String getJNDIName()
HASingletonInvokerMBean
getJNDIName in interface HASingletonInvokerMBeanpublic void setJNDIName(java.lang.String jndiName)
setJNDIName in interface HASingletonInvokerMBeanHASingletonInvokerMBean.getJNDIName()public HASingletonInvokerMBean.Proxy lookupProxy()
HASingletonInvokerMBean
lookupProxy in interface HASingletonInvokerMBean
public java.lang.Object invoke(java.lang.String methodName,
java.lang.Class[] types,
java.lang.Object[] args)
throws java.lang.Exception
HASingletonInvokerMBean
invoke in interface HASingletonInvokerMBeanjava.lang.Exception
protected void startService()
throws java.lang.Exception
java.lang.Exception
protected void stopService()
throws java.lang.Exception
java.lang.Exceptionpublic void startSingleton()
public void stopSingleton()
public java.lang.Object invoke(Invocation mi)
throws java.lang.Exception
java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||