|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object HASingletonSupport org.jboss.portal.jems.ha.HASingletonInvoker
Nested Class Summary |
Nested classes inherited from class org.jboss.portal.jems.ha.HASingletonInvokerMBean |
HASingletonInvokerMBean.Callback, HASingletonInvokerMBean.Proxy |
Field Summary | |
private HASingletonInvokerMBean.Callback |
callback
The callback service which this service depends on. |
private java.lang.String |
jndiName
Where is bound the ha proxy. |
private java.util.Properties |
jndiProperties
The JNDI properties. |
private int |
maxRetries
How many time we retry on fail over. |
private HASingletonInvokerMBean.Proxy |
proxy
The cached proxy. |
private javax.management.ObjectName |
proxyFactory
The proxy factory. |
private long |
retryWaitingTimeMS
How long we wait before trying a jndi lookup during fail over. |
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(org.jboss.invocation.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 |
Field Detail |
private javax.management.ObjectName proxyFactory
private HASingletonInvokerMBean.Proxy proxy
private java.lang.String jndiName
private HASingletonInvokerMBean.Callback callback
private java.util.Properties jndiProperties
private int maxRetries
private long retryWaitingTimeMS
Constructor Detail |
public HASingletonInvoker()
Method Detail |
public long getRetryWaitingTimeMS()
HASingletonInvokerMBean
getRetryWaitingTimeMS
in interface HASingletonInvokerMBean
public void setRetryWaitingTimeMS(long retryWaitingTimeMS)
setRetryWaitingTimeMS
in interface HASingletonInvokerMBean
public int getMaxRetries()
HASingletonInvokerMBean
getMaxRetries
in interface HASingletonInvokerMBean
public void setMaxRetries(int maxRetries)
setMaxRetries
in interface HASingletonInvokerMBean
public java.util.Properties getJNDIProperties()
HASingletonInvokerMBean
getJNDIProperties
in interface HASingletonInvokerMBean
public void setJNDIProperties(java.util.Properties jndiProperties)
setJNDIProperties
in interface HASingletonInvokerMBean
public javax.management.ObjectName getProxyFactory()
HASingletonInvokerMBean
getProxyFactory
in interface HASingletonInvokerMBean
public void setProxyFactory(javax.management.ObjectName proxyFactory)
setProxyFactory
in interface HASingletonInvokerMBean
public HASingletonInvokerMBean.Callback getCallback()
HASingletonInvokerMBean
getCallback
in interface HASingletonInvokerMBean
public void setCallback(HASingletonInvokerMBean.Callback callback)
setCallback
in interface HASingletonInvokerMBean
public java.lang.String getJNDIName()
HASingletonInvokerMBean
getJNDIName
in interface HASingletonInvokerMBean
public void setJNDIName(java.lang.String jndiName)
setJNDIName
in interface HASingletonInvokerMBean
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(org.jboss.invocation.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 |