|
|||||||||
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 HASingletonInvokerMBean
public void setRetryWaitingTimeMS(long retryWaitingTimeMS)
setRetryWaitingTimeMS
in interface HASingletonInvokerMBean
HASingletonInvokerMBean.getRetryWaitingTimeMS()
public int getMaxRetries()
HASingletonInvokerMBean
getMaxRetries
in interface HASingletonInvokerMBean
public void setMaxRetries(int maxRetries)
setMaxRetries
in interface HASingletonInvokerMBean
HASingletonInvokerMBean.getMaxRetries()
public java.util.Properties getJNDIProperties()
HASingletonInvokerMBean
getJNDIProperties
in interface HASingletonInvokerMBean
public void setJNDIProperties(java.util.Properties jndiProperties)
setJNDIProperties
in interface HASingletonInvokerMBean
HASingletonInvokerMBean.getJNDIProperties()
public javax.management.ObjectName getProxyFactory()
HASingletonInvokerMBean
getProxyFactory
in interface HASingletonInvokerMBean
public void setProxyFactory(javax.management.ObjectName proxyFactory)
setProxyFactory
in interface HASingletonInvokerMBean
HASingletonInvokerMBean.getProxyFactory()
public HASingletonInvokerMBean.Callback getCallback()
HASingletonInvokerMBean
getCallback
in interface HASingletonInvokerMBean
public void setCallback(HASingletonInvokerMBean.Callback callback)
setCallback
in interface HASingletonInvokerMBean
HASingletonInvokerMBean.getCallback()
public java.lang.String getJNDIName()
HASingletonInvokerMBean
getJNDIName
in interface HASingletonInvokerMBean
public void setJNDIName(java.lang.String jndiName)
setJNDIName
in interface HASingletonInvokerMBean
HASingletonInvokerMBean.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 HASingletonInvokerMBean
java.lang.Exception
protected void startService() throws java.lang.Exception
java.lang.Exception
protected void stopService() throws java.lang.Exception
java.lang.Exception
public 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 |