public abstract class ClientRequest extends Object implements SecureRequest, VersionedPortable
| Modifier and Type | Field and Description |
|---|---|
protected int |
callId |
protected ClientEngineImpl |
clientEngine |
protected ClientEndpoint |
endpoint |
protected OperationService |
operationService |
protected SerializationService |
serializationService |
protected Object |
service |
| Constructor and Description |
|---|
ClientRequest() |
| Modifier and Type | Method and Description |
|---|---|
int |
getCallId() |
int |
getClassVersion()
Version for internal requests.
|
ClientEngine |
getClientEngine() |
String |
getDistributedObjectName()
Used for
SecurityInterceptor |
String |
getDistributedObjectType()
Used for
SecurityInterceptor |
ClientEndpoint |
getEndpoint() |
String |
getMethodName()
Used for
SecurityInterceptor
Method name which called via a distributedObject
for map.put, methodName will be 'put'
For requests which do not produced via a distributedObject should return null, for example internal client. |
Object[] |
getParameters()
Used for
SecurityInterceptor
Parameters passed to the method by a distributedObject
for map.put(key, value) parameters should be 'key' and 'value'
parameters can be in binary or object form, underlying implementation will de-serialize lazily |
<S> S |
getService() |
abstract String |
getServiceName() |
abstract void |
process() |
void |
read(PortableReader reader) |
void |
readPortable(PortableReader reader)
Read portable fields using PortableReader
|
void |
setCallId(int callId) |
void |
setClientEngine(ClientEngineImpl clientEngine) |
void |
setEndpoint(ClientEndpoint endpoint) |
void |
setOperationService(OperationService operationService) |
void |
setSerializationService(SerializationService serializationService) |
void |
setService(Object service) |
void |
write(PortableWriter writer) |
void |
writePortable(PortableWriter writer)
Serialize this portable object using PortableWriter
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRequiredPermissiongetClassId, getFactoryIdprotected volatile int callId
protected transient ClientEngineImpl clientEngine
protected transient OperationService operationService
protected transient SerializationService serializationService
protected transient Object service
protected transient ClientEndpoint endpoint
public void setOperationService(OperationService operationService)
public void setSerializationService(SerializationService serializationService)
public ClientEngine getClientEngine()
public final void setClientEngine(ClientEngineImpl clientEngine)
public <S> S getService()
public final void setService(Object service)
public ClientEndpoint getEndpoint()
public final void setEndpoint(ClientEndpoint endpoint)
public abstract String getServiceName()
public int getCallId()
public void setCallId(int callId)
public final void writePortable(PortableWriter writer) throws IOException
PortablewritePortable in interface Portablewriter - PortableWriterIOExceptionpublic void write(PortableWriter writer) throws IOException
IOExceptionpublic final void readPortable(PortableReader reader) throws IOException
PortablereadPortable in interface Portablereader - PortableReaderIOExceptionpublic void read(PortableReader reader) throws IOException
IOExceptionpublic int getClassVersion()
This should be updated/incremented when serialization of a request changes.
getClassVersion in interface VersionedPortablepublic String getDistributedObjectType()
SecureRequestSecurityInterceptorgetDistributedObjectType in interface SecureRequestpublic String getDistributedObjectName()
SecureRequestSecurityInterceptorgetDistributedObjectName in interface SecureRequestpublic String getMethodName()
SecureRequestSecurityInterceptor
Method name which called via a distributedObject
for map.put, methodName will be 'put'
For requests which do not produced via a distributedObject should return null, for example internal client.getMethodName in interface SecureRequestpublic Object[] getParameters()
SecureRequestSecurityInterceptor
Parameters passed to the method by a distributedObject
for map.put(key, value) parameters should be 'key' and 'value'
parameters can be in binary or object form, underlying implementation will de-serialize lazilygetParameters in interface SecureRequestCopyright © 2015 Hazelcast, Inc.. All Rights Reserved.