站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.6 API 英文版文档

HASingletonInvokerMBean - JBOSS Portal 2.6 API 英文版文档


org.jboss.portal.jems.ha
Interface HASingletonInvokerMBean

All Known Implementing Classes:
HASingletonInvoker

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.

Version:
$Revision: 5448 $
Author:
Julien Viet

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.
 
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)
           
 

Method Detail

getCallback

public HASingletonInvokerMBean.Callback getCallback()
Get the callback of the invoker.


setCallback

public void setCallback(HASingletonInvokerMBean.Callback callback)
See Also:
getCallback()

getJNDIName

public java.lang.String getJNDIName()
Return the JNDI name under which the proxy is bound.


setJNDIName

public void setJNDIName(java.lang.String jndiName)
See Also:
getJNDIName()

getProxyFactory

public javax.management.ObjectName getProxyFactory()
Return the name of the proxy factory to use.


setProxyFactory

public void setProxyFactory(javax.management.ObjectName proxyFactory)
See Also:
getProxyFactory()

getJNDIProperties

public java.util.Properties getJNDIProperties()
Return the JNDI configuration to lookup the proxy.


setJNDIProperties

public void setJNDIProperties(java.util.Properties jndiProperties)
See Also:
getJNDIProperties()

getMaxRetries

public int getMaxRetries()
Return the max number of retries when an invocation is done.


setMaxRetries

public void setMaxRetries(int maxRetries)
See Also:
getMaxRetries()

getRetryWaitingTimeMS

public long getRetryWaitingTimeMS()
Return the time that the thread will sleep before looking up a proxy during fail over.


setRetryWaitingTimeMS

public void setRetryWaitingTimeMS(long retryWaitingTimeMS)
See Also:
getRetryWaitingTimeMS()

lookupProxy

public HASingletonInvokerMBean.Proxy lookupProxy()
Return the proxy, if it is cached then it will return the cached proxy otherwise it will perform a JNDI lookup.


invoke

public java.lang.Object invoke(java.lang.String methodName,
                               java.lang.Class[] types,
                               java.lang.Object[] args)
                        throws java.lang.Exception
Invoke the service through the invoker. When the service proxy throws an exception the invoker waits for a specific duration and then perform a new lookup for a certain amount of time.

Throws:
java.lang.Exception