public class EJBRequest extends java.lang.Object implements ClusterableRequest
| Modifier and Type | Class and Description |
|---|---|
static class |
EJBRequest.Body |
| Modifier and Type | Field and Description |
|---|---|
static int |
ENTITY_BM_PERSISTENCE |
static int |
ENTITY_CM_PERSISTENCE |
static int |
SESSION_BEAN_STATEFUL |
static int |
SESSION_BEAN_STATELESS |
| Constructor and Description |
|---|
EJBRequest() |
EJBRequest(RequestMethodCode requestMethod,
EJBMetaDataImpl ejb,
java.lang.reflect.Method method,
java.lang.Object[] args,
java.lang.Object primaryKey,
EJBDSerializer serializer) |
| Modifier and Type | Method and Description |
|---|---|
EJBRequest.Body |
getBody() |
java.lang.Object |
getClientIdentity() |
int |
getDeploymentCode() |
java.lang.String |
getDeploymentId() |
EJBMetaDataImpl |
getEjbMetaData() |
java.lang.Class |
getInterfaceClass() |
java.lang.reflect.Method |
getMethodInstance() |
java.lang.String |
getMethodName() |
java.lang.Object[] |
getMethodParameters() |
java.lang.Class[] |
getMethodParamTypes() |
java.lang.Object |
getPrimaryKey() |
RequestMethodCode |
getRequestMethod() |
RequestType |
getRequestType() |
int |
getServerHash() |
byte |
getVersion() |
void |
readExternal(java.io.ObjectInput in)
Changes to this method must observe the optional
metaData version
When the Request externalizes itself, it will reset
the appropriate values so that this instance can be used again. |
void |
setBody(EJBRequest.Body body) |
void |
setClientIdentity(java.lang.Object clientIdentity) |
void |
setDeploymentCode(int deploymentCode) |
void |
setDeploymentId(java.lang.String deploymentId) |
void |
setMetaData(ProtocolMetaData metaData)
Set the protocol metadata that can be used for versioned requests
|
void |
setMethodInstance(java.lang.reflect.Method methodInstance) |
void |
setMethodParameters(java.lang.Object[] methodParameters) |
void |
setPrimaryKey(java.lang.Object primaryKey) |
void |
setRequestMethod(RequestMethodCode requestMethod) |
void |
setSerializer(EJBDSerializer serializer) |
void |
setServerHash(int serverHash) |
java.lang.String |
toString() |
void |
writeExternal(java.io.ObjectOutput out)
Write to server.
|
public static final int SESSION_BEAN_STATELESS
public static final int SESSION_BEAN_STATEFUL
public static final int ENTITY_BM_PERSISTENCE
public static final int ENTITY_CM_PERSISTENCE
public EJBRequest()
public EJBRequest(RequestMethodCode requestMethod, EJBMetaDataImpl ejb, java.lang.reflect.Method method, java.lang.Object[] args, java.lang.Object primaryKey, EJBDSerializer serializer)
public void setMetaData(ProtocolMetaData metaData)
RequestsetMetaData in interface RequestmetaData - ProtocolMetaDatapublic EJBMetaDataImpl getEjbMetaData()
public java.lang.Class getInterfaceClass()
public java.lang.reflect.Method getMethodInstance()
public java.lang.String getMethodName()
public java.lang.Object[] getMethodParameters()
public java.lang.Class[] getMethodParamTypes()
public java.lang.Object getPrimaryKey()
public void setMethodInstance(java.lang.reflect.Method methodInstance)
public void setMethodParameters(java.lang.Object[] methodParameters)
public void setPrimaryKey(java.lang.Object primaryKey)
public EJBRequest.Body getBody()
public void setBody(EJBRequest.Body body)
public byte getVersion()
public void setSerializer(EJBDSerializer serializer)
public RequestType getRequestType()
getRequestType in interface Requestpublic RequestMethodCode getRequestMethod()
public java.lang.Object getClientIdentity()
public java.lang.String getDeploymentId()
public int getDeploymentCode()
public void setRequestMethod(RequestMethodCode requestMethod)
public void setClientIdentity(java.lang.Object clientIdentity)
public void setDeploymentId(java.lang.String deploymentId)
public void setDeploymentCode(int deploymentCode)
public void setServerHash(int serverHash)
setServerHash in interface ClusterableRequestpublic int getServerHash()
getServerHash in interface ClusterableRequestpublic java.lang.String toString()
toString in class java.lang.Objectpublic void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
metaData version
When the Request externalizes itself, it will reset
the appropriate values so that this instance can be used again.
There will be one request instance for each handlerreadExternal in interface java.io.ExternalizablereadExternal in interface Requestjava.io.IOExceptionjava.lang.ClassNotFoundExceptionpublic void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
EJBRequest.Body.writeExternal(java.io.ObjectOutput)writeExternal in interface java.io.ExternalizablewriteExternal in interface Requestout - ObjectOutputjava.io.IOException