|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorca.shirako.proxies.Proxy
public class Proxy
The Proxy class represents a stub to a shirako actor. In
shirako all inter-actor communication happens with the help of proxies.
Proxies define a general interface, which is implementation independent and
enables easy implementation of new communication protocols.
| Field Summary | |
|---|---|
protected boolean |
callback
True if this proxy is used as a callback, false otherwise. |
static java.lang.String |
PropertyProxyActorName
Serialization property: the name of the actor represented by this proxy. |
static java.lang.String |
PropertyProxyCallback
Serialization property: true, if this is a callback proxy. |
static java.lang.String |
PropertyProxyClass
Serialization property: java class implementing this proxy. |
static java.lang.String |
PropertyProxyType
Serialization property: the type of this proxy: local, soap, xmlrpc, etc. |
protected java.lang.String |
proxyType
Type of the proxy: local, soap, xmlrpc, etc... |
| Fields inherited from interface orca.shirako.api.IProxy |
|---|
ProxyTypeLocal, ProxyTypeSoap |
| Constructor Summary | |
|---|---|
Proxy()
|
|
| Method Summary | |
|---|---|
protected ResourceSet |
abstractCloneAuthority(ResourceSet set)
Clones the resource set, but without any of the concrete sets. |
protected ResourceSet |
abstractCloneBroker(ResourceSet set)
Clones the resource set, but without any of the concrete sets. |
ResourceSet |
abstractCloneReturn(ResourceSet set)
Clones the resource set, but without any of the concrete sets. |
ID |
getGuid()
Returns the globally unique identifier of this actor. |
AuthToken |
getIdentity()
Returns the identity of the actor. |
java.lang.String |
getName()
Returns the actor name. |
protected IShirakoPlugin |
getPlugin(AuthToken caller)
Returns the SlicesPlugin for the actor with the specified
AuthToken |
static IProxy |
getProxy(java.util.Properties p)
Obtains a proxy object from the specified properties list. |
java.lang.String |
getType()
Returns the type of this proxy |
java.util.Properties |
query(java.util.Properties properties,
AuthToken caller)
|
static Proxy |
recoverProxy(java.util.Properties p,
boolean register)
Creates a proxy list from a properties list representing the serialization of the proxy. |
void |
reset(java.util.Properties p)
Restores the proxy state from the specified properties list |
java.util.Properties |
save()
Serializes the proxy to a properties list |
void |
save(java.util.Properties p)
Serializes the proxy to a properties list |
| 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 PropertyProxyType
public static final java.lang.String PropertyProxyActorName
public static final java.lang.String PropertyProxyCallback
public static final java.lang.String PropertyProxyClass
protected java.lang.String proxyType
protected boolean callback
| Constructor Detail |
|---|
public Proxy()
| Method Detail |
|---|
public static Proxy recoverProxy(java.util.Properties p,
boolean register)
throws java.lang.Exception
ActorRegistry so that it becomes
visible to the rest of the system.
p - Properties list representing the proxyregister - If true, the resulting proxy is registered with the
container's ActorRegistry
java.lang.Exception
public static IProxy getProxy(java.util.Properties p)
throws java.lang.Exception
ActorRegistry, the already existing object is returned
and no new object is created. Otherwise, the method creates the proxy
object and registers it with the ActorRegistry
p - Properties list representing the proxy
java.lang.Exception
protected IShirakoPlugin getPlugin(AuthToken caller)
throws java.lang.Exception
SlicesPlugin for the actor with the specified
AuthToken
caller - AuthToken of the actor
java.lang.Exceptionprotected ResourceSet abstractCloneBroker(ResourceSet set)
protected ResourceSet abstractCloneAuthority(ResourceSet set)
public ResourceSet abstractCloneReturn(ResourceSet set)
public java.util.Properties query(java.util.Properties properties,
AuthToken caller)
throws java.lang.Exception
java.lang.Exception
public java.util.Properties save()
throws java.lang.Exception
save in interface ISerializejava.lang.Exception
public void save(java.util.Properties p)
throws java.lang.Exception
save in interface ISerializep - The output properties list
java.lang.Exception
public void reset(java.util.Properties p)
throws java.lang.Exception
reset in interface ISerializep -
java.lang.Exceptionpublic java.lang.String getType()
getType in interface IProxypublic java.lang.String getName()
IActorIdentity
getName in interface IActorIdentitypublic AuthToken getIdentity()
IActorIdentity
getIdentity in interface IActorIdentitypublic ID getGuid()
IActorIdentity
getGuid in interface IActorIdentity
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||