public abstract class ClientRequest extends Object implements SecureRequest, VersionedPortable
Modifier and Type | Field and Description |
---|---|
protected long |
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 |
---|---|
long |
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(long 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, wait
getRequiredPermission
getClassId, getFactoryId
protected volatile long 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 long getCallId()
public void setCallId(long callId)
public final void writePortable(PortableWriter writer) throws IOException
Portable
writePortable
in interface Portable
writer
- PortableWriterIOException
public void write(PortableWriter writer) throws IOException
IOException
public final void readPortable(PortableReader reader) throws IOException
Portable
readPortable
in interface Portable
reader
- PortableReaderIOException
public void read(PortableReader reader) throws IOException
IOException
public int getClassVersion()
This should be updated/incremented when serialization of a request changes.
getClassVersion
in interface VersionedPortable
public String getDistributedObjectType()
SecureRequest
SecurityInterceptor
getDistributedObjectType
in interface SecureRequest
public String getDistributedObjectName()
SecureRequest
SecurityInterceptor
getDistributedObjectName
in interface SecureRequest
public String getMethodName()
SecureRequest
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.getMethodName
in interface SecureRequest
public Object[] getParameters()
SecureRequest
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 lazilygetParameters
in interface SecureRequest
Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.