|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.hazelcast.client.impl.protocol.task.AbstractMessageTask<P>
public abstract class AbstractMessageTask<P>
Base Message task
| Field Summary | |
|---|---|
protected ClientEngineImpl |
clientEngine
|
protected ClientMessage |
clientMessage
|
protected Connection |
connection
|
protected ClientEndpoint |
endpoint
|
protected ClientEndpointManager |
endpointManager
|
protected ILogger |
logger
|
protected NodeEngineImpl |
nodeEngine
|
protected P |
parameters
|
protected SerializationService |
serializationService
|
| Constructor Summary | |
|---|---|
protected |
AbstractMessageTask(ClientMessage clientMessage,
Node node,
Connection connection)
|
| Method Summary | ||
|---|---|---|
protected abstract P |
decodeClientMessage(ClientMessage clientMessage)
|
|
abstract String |
getDistributedObjectName()
Used for SecurityInterceptor |
|
String |
getDistributedObjectType()
Used for SecurityInterceptor |
|
protected ClientEndpoint |
getEndpoint()
|
|
abstract 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. |
|
abstract 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 |
|
int |
getPartitionId()
Returns the partition-id. |
|
|
getService(String serviceName)
|
|
abstract String |
getServiceName()
|
|
protected abstract void |
processMessage()
|
|
void |
run()
|
|
protected void |
sendClientMessage(ClientMessage resultClientMessage)
|
|
protected void |
sendClientMessage(Object key,
ClientMessage resultClientMessage)
|
|
protected void |
sendClientMessage(Throwable throwable)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.hazelcast.client.impl.client.SecureRequest |
|---|
getRequiredPermission |
| Field Detail |
|---|
protected final P parameters
protected final ClientMessage clientMessage
protected final Connection connection
protected final ClientEndpoint endpoint
protected final NodeEngineImpl nodeEngine
protected final SerializationService serializationService
protected final ILogger logger
protected final ClientEndpointManager endpointManager
protected final ClientEngineImpl clientEngine
| Constructor Detail |
|---|
protected AbstractMessageTask(ClientMessage clientMessage,
Node node,
Connection connection)
| Method Detail |
|---|
public <S> S getService(String serviceName)
protected ClientEndpoint getEndpoint()
protected abstract P decodeClientMessage(ClientMessage clientMessage)
public int getPartitionId()
PartitionSpecificRunnable
getPartitionId in interface PartitionSpecificRunnablepublic void run()
run in interface Runnableprotected abstract void processMessage()
protected void sendClientMessage(ClientMessage resultClientMessage)
protected void sendClientMessage(Object key,
ClientMessage resultClientMessage)
protected void sendClientMessage(Throwable throwable)
public abstract String getServiceName()
public final String getDistributedObjectType()
SecureRequestSecurityInterceptor
getDistributedObjectType in interface SecureRequestpublic abstract String getDistributedObjectName()
SecureRequestSecurityInterceptor
getDistributedObjectName in interface SecureRequestpublic abstract 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 abstract 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 lazily
getParameters in interface SecureRequest
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||