|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorca.shirako.proxies.Proxy
orca.shirako.proxies.local.LocalProxy
public class LocalProxy
Acts as a proxy or skeleton for a local actor, e.g., instances of LocalProxy carry all cross-actor calls when the client and server are co-located (running in the same JVM). Most of the heavy lifting is in subclasses: LocalAuthority, LocalAgent, and LocalReturn.
The subclasses perform some destination-specific translations, e.g., to the reservation type. They also must pass arguments by copy rather by reference. We are fast and loose in a few cases where we know that the caller doesn't modify an argument or that the destination won't keep it.
LocalProxy and its descendants have no caller-specific state and therefore may be passed by reference.
| Field Summary | |
|---|---|
protected AuthToken |
actorAuth
|
protected java.lang.String |
actorName
The actor which this proxy represents. |
protected LoggingTool |
logger
The logger |
static java.lang.String |
PropertyLocalProxyActorName
Serialization property: the name of the local actor |
| Fields inherited from class orca.shirako.proxies.Proxy |
|---|
callback, PropertyProxyActorName, PropertyProxyCallback, PropertyProxyClass, PropertyProxyType, proxyType |
| Fields inherited from interface orca.shirako.api.IProxy |
|---|
ProxyTypeLocal, ProxyTypeSoap |
| Constructor Summary | |
|---|---|
LocalProxy()
|
|
LocalProxy(IActor actor)
Creates a new proxy representing the specified actor |
|
| Method Summary | |
|---|---|
IActor |
getActor()
Returns the actor represented by this proxy |
protected IConcreteSetFactory |
getFactory()
|
AuthToken |
getIdentity()
Returns the identity of the actor. |
java.lang.String |
getName()
Returns the actor name. |
java.util.Properties |
query(java.util.Properties properties,
AuthToken caller)
|
void |
reset(java.util.Properties p)
Restores the proxy state from the specified properties list |
void |
save(java.util.Properties p)
Serializes the proxy to a properties list |
| Methods inherited from class orca.shirako.proxies.Proxy |
|---|
abstractCloneAuthority, abstractCloneBroker, abstractCloneReturn, getGuid, getPlugin, getProxy, getType, recoverProxy, save |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String PropertyLocalProxyActorName
protected java.lang.String actorName
protected AuthToken actorAuth
protected LoggingTool logger
| Constructor Detail |
|---|
public LocalProxy()
public LocalProxy(IActor actor)
actor - The actor object to be represented by this proxy| Method Detail |
|---|
public java.util.Properties query(java.util.Properties properties,
AuthToken caller)
throws java.lang.Exception
query in class Proxyjava.lang.Exception
protected IConcreteSetFactory getFactory()
throws java.lang.Exception
java.lang.Exception
public void save(java.util.Properties p)
throws java.lang.Exception
save in interface ISerializesave in class Proxyp - The output properties list
java.lang.Exception
public void reset(java.util.Properties p)
throws java.lang.Exception
reset in interface ISerializereset in class Proxyp - properties list containing the serialized version of
the object
java.lang.Exceptionpublic AuthToken getIdentity()
getIdentity in interface IActorIdentitygetIdentity in class Proxypublic java.lang.String getName()
getName in interface IActorIdentitygetName in class Proxypublic IActor getActor()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||