org.jboss.invocation.unified.interfaces
Class UnifiedInvokerProxy

java.lang.Object
  extended by org.jboss.invocation.unified.interfaces.UnifiedInvokerProxy
All Implemented Interfaces:
Externalizable, Serializable, Remote, Invoker

public class UnifiedInvokerProxy
extends Object
implements Invoker, Externalizable

This represents the client side of the EJB invoker. This invoker uses the remoting framework for making invocations.

Author:
Tom Elrod
See Also:
Serialized Form

Field Summary
protected  org.jboss.logging.Logger log
           
 
Fields inherited from interface org.jboss.invocation.Invoker
ID
 
Constructor Summary
UnifiedInvokerProxy()
           
UnifiedInvokerProxy(org.jboss.remoting.InvokerLocator locator)
           
UnifiedInvokerProxy(org.jboss.remoting.InvokerLocator locator, boolean isStrictRMIException)
           
 
Method Summary
protected  org.jboss.remoting.Client getClient()
           
protected  org.jboss.remoting.InvokerLocator getLocator()
           
 String getServerHostName()
          A free form String identifier for this delegate invoker, can be clustered or target node This should evolve in a more advanced meta-inf object.
 String getSubSystem()
           
protected  void init(org.jboss.remoting.InvokerLocator locator)
           
 Object invoke(Invocation invocation)
          The invoke with an Invocation Object.
 boolean isStrictRMIException()
           
 void readExternal(ObjectInput in)
          Un-externalize this instance.
protected  void setLocator(org.jboss.remoting.InvokerLocator locator)
           
protected  void setStrictRMIException(boolean strictRMIException)
           
 void setSubSystem(String subsystem)
           
 void writeExternal(ObjectOutput out)
          Externalize this instance and handle obtaining the remoteInvoker stub
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected final org.jboss.logging.Logger log
Constructor Detail

UnifiedInvokerProxy

public UnifiedInvokerProxy()

UnifiedInvokerProxy

public UnifiedInvokerProxy(org.jboss.remoting.InvokerLocator locator)

UnifiedInvokerProxy

public UnifiedInvokerProxy(org.jboss.remoting.InvokerLocator locator,
                           boolean isStrictRMIException)
Method Detail

init

protected void init(org.jboss.remoting.InvokerLocator locator)

getSubSystem

public String getSubSystem()

setSubSystem

public void setSubSystem(String subsystem)

isStrictRMIException

public boolean isStrictRMIException()

getClient

protected org.jboss.remoting.Client getClient()

getLocator

protected org.jboss.remoting.InvokerLocator getLocator()

setLocator

protected void setLocator(org.jboss.remoting.InvokerLocator locator)

setStrictRMIException

protected void setStrictRMIException(boolean strictRMIException)

getServerHostName

public String getServerHostName()
                         throws Exception
A free form String identifier for this delegate invoker, can be clustered or target node This should evolve in a more advanced meta-inf object.

This will return the host supplied by the invoker locator if locator is not null. Otherwise, if the locator is null, will return null.

Specified by:
getServerHostName in interface Invoker
Throws:
Exception

invoke

public Object invoke(Invocation invocation)
              throws Exception
Description copied from interface: Invoker
The invoke with an Invocation Object.

the delegate can handle network protocols on behalf of proxies (proxies delegate to these puppies). We provide default implemenations with JRMP/Local/Clustered invokers. The delegates are not tied to a type of invocation (EJB or generic RMI).

Specified by:
invoke in interface Invoker
Parameters:
invocation - A pointer to the invocation object
Returns:
Return value of method invocation.
Throws:
Exception - Failed to invoke method.

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Externalize this instance and handle obtaining the remoteInvoker stub

Specified by:
writeExternal in interface Externalizable
Throws:
IOException

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Un-externalize this instance.

Specified by:
readExternal in interface Externalizable
Throws:
IOException
ClassNotFoundException


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.