|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.invocation.Invocation org.jboss.invocation.MarshalledInvocation
The MarshalledInvocation is an invocation that travels. As such it serializes its payload because of lack of ClassLoader visibility. As such it contains Marshalled data representing the byte[] of the Invocation object it extends Besides handling the specifics of "marshalling" the payload, which could be done at the Invocation level the Marshalled Invocation can hold optimization and needed code for distribution for example the TransactionPropagationContext which is a serialization of the TX for distribution purposes as well as the "hash" for the methods that we send, as opposed to sending Method objects. Serialization "optimizations" should be coded here in the externalization implementation of the class
Field Summary | |
protected MarshalledValue |
marshalledArgs
|
protected long |
methodHash
|
protected Map |
methodMap
The Map of methods used by this Invocation |
protected Object |
tpc
The Transaction Propagation Context for distribution |
Fields inherited from class org.jboss.invocation.Invocation |
args, as_is_payload, invocationContext, invocationType, INVOKE_SIGNATURE, method, objectName, payload, transient_payload |
Constructor Summary | |
MarshalledInvocation()
|
|
MarshalledInvocation(Invocation invocation)
|
|
MarshalledInvocation(Object id,
Method m,
Object[] args,
Transaction tx,
Principal identity,
Object credential)
|
Method Summary | |
static long |
calculateHash(Method method)
|
Object[] |
getArguments()
|
static Map |
getFullInterfaceHashes(Class intf)
Calculate method full hashes. |
static Map |
getInterfaceHashes(Class intf)
Calculate method hashes. |
Method |
getMethod()
get on method Return the invocation method. |
Object |
getPayloadValue(Object key)
A Marshalled invocation has serialized data in the form of MarshalledValue objects. |
Object |
getTransactionPropagationContext()
|
static boolean |
getUseFullHashMode()
Get the full hash mode flag. |
Object |
getValue(Object key)
A Marshalled invocation has serialized data in the form of MarshalledValue objects. |
static Map |
methodToHashesMap(Class c)
Calculate method hashes. |
void |
readExternal(ObjectInput in)
|
static void |
removeHashes(Class declaringClass)
Remove all method hashes for the declaring class |
void |
setMethodMap(Map methods)
|
void |
setTransactionPropagationContext(Object tpc)
|
static void |
setUseFullHashMode(boolean flag)
Set the full hash mode flag. |
void |
writeExternal(ObjectOutput out)
|
Methods inherited from class org.jboss.invocation.Invocation |
getAsIsPayload, getAsIsValue, getCredential, getEnterpriseContext, getId, getInvocationContext, getObjectName, getPayload, getPrincipal, getTransaction, getTransientPayload, getTransientValue, getType, isLocal, performCall, setArguments, setCredential, setEnterpriseContext, setId, setInvocationContext, setMethod, setObjectName, setPrincipal, setTransaction, setType, setValue, setValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Object tpc
protected transient Map methodMap
protected transient long methodHash
protected transient MarshalledValue marshalledArgs
Constructor Detail |
public MarshalledInvocation()
public MarshalledInvocation(Invocation invocation)
public MarshalledInvocation(Object id, Method m, Object[] args, Transaction tx, Principal identity, Object credential)
Method Detail |
public static boolean getUseFullHashMode()
public static void setUseFullHashMode(boolean flag)
flag
- the full method hash calculation mode flag.public static Map getInterfaceHashes(Class intf)
intf
- - the class/interface to calculate method hashes for.
public static Map getFullInterfaceHashes(Class intf)
intf
- - the class/interface to calculate method hashes for.
public static Map methodToHashesMap(Class c)
c
- the class/interface to calculate method hashes for.
public static long calculateHash(Method method)
public static void removeHashes(Class declaringClass)
declaringClass
- a class for which a calculateHash(Method) was calledpublic Method getMethod()
Invocation
getMethod
in class Invocation
public void setMethodMap(Map methods)
public void setTransactionPropagationContext(Object tpc)
public Object getTransactionPropagationContext()
public Object getValue(Object key)
getValue
in class Invocation
public Object getPayloadValue(Object key)
getPayloadValue
in class Invocation
public Object[] getArguments()
getArguments
in class Invocation
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |