|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.invocation.Invocation
org.jboss.invocation.MarshalledInvocation
org.jboss.invocation.pooled.interfaces.PooledMarshalledInvocation
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
Revisions:
2001120 marc fleury:
20020113 Sacha Labourey:
20020911 Bill Burke:
Field Summary |
Fields inherited from class org.jboss.invocation.MarshalledInvocation |
marshalledArgs, methodHash, methodMap, tpc |
Fields inherited from class org.jboss.invocation.Invocation |
args, as_is_payload, invocationContext, invocationType, INVOKE_SIGNATURE, method, objectName, payload, transient_payload |
Constructor Summary | |
PooledMarshalledInvocation()
|
|
PooledMarshalledInvocation(Invocation invocation)
|
|
PooledMarshalledInvocation(Object id,
Method m,
Object[] args,
Transaction tx,
Principal identity,
Object credential)
|
Method Summary | |
Object[] |
getArguments()
|
Object |
getCredential()
|
Object |
getEnterpriseContext()
|
Object |
getId()
|
Principal |
getPrincipal()
|
Transaction |
getTransaction()
get the transaction. |
void |
readExternal(ObjectInput in)
|
void |
setCredential(Object credential)
Change the security credentials of this invocation. |
void |
setEnterpriseContext(Object enterpriseContext)
|
void |
setId(Object id)
Return the invocation target ID. |
void |
setPrincipal(Principal principal)
Change the security identity of this invocation. |
void |
setTransaction(Transaction tx)
set the transaction. |
void |
writeExternal(ObjectOutput out)
|
Methods inherited from class org.jboss.invocation.MarshalledInvocation |
calculateHash, getFullInterfaceHashes, getInterfaceHashes, getMethod, getPayloadValue, getTransactionPropagationContext, getUseFullHashMode, getValue, methodToHashesMap, removeHashes, setMethodMap, setTransactionPropagationContext, setUseFullHashMode |
Methods inherited from class org.jboss.invocation.Invocation |
getAsIsPayload, getAsIsValue, getInvocationContext, getObjectName, getPayload, getTransientPayload, getTransientValue, getType, isLocal, setArguments, setInvocationContext, setMethod, setObjectName, setType, setValue, setValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PooledMarshalledInvocation()
public PooledMarshalledInvocation(Invocation invocation)
public PooledMarshalledInvocation(Object id, Method m, Object[] args, Transaction tx, Principal identity, Object credential)
Method Detail |
public Object getEnterpriseContext()
getEnterpriseContext
in class Invocation
public void setEnterpriseContext(Object enterpriseContext)
setEnterpriseContext
in class Invocation
public Object getId()
getId
in class Invocation
public void setId(Object id)
Invocation
setId
in class Invocation
public void setTransaction(Transaction tx)
Invocation
setTransaction
in class Invocation
public Transaction getTransaction()
Invocation
getTransaction
in class Invocation
public Object getCredential()
getCredential
in class Invocation
public void setCredential(Object credential)
Invocation
setCredential
in class Invocation
public Principal getPrincipal()
getPrincipal
in class Invocation
public void setPrincipal(Principal principal)
Invocation
setPrincipal
in class Invocation
public Object[] getArguments()
getArguments
in class MarshalledInvocation
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class MarshalledInvocation
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class MarshalledInvocation
IOException
ClassNotFoundException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |