Package org.openspaces.remoting
Class EventDrivenSpaceRemotingEntry
java.lang.Object
org.openspaces.remoting.EventDrivenSpaceRemotingEntry
- All Implemented Interfaces:
SmartExternalizable,Externalizable,Serializable,Cloneable,SpaceRemotingEntry,SpaceRemotingInvocation,SpaceRemotingResult
- Direct Known Subclasses:
EventDrivenSpaceRemotingFifoEntry,HashedEventDrivenSpaceRemotingEntry
public class EventDrivenSpaceRemotingEntry
extends Object
implements SpaceRemotingEntry, SmartExternalizable
Default implementation of a remoting entry that acts both as a remote invocation and a remote
result.
- Author:
- kimchy
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildInvocation(String lookupName, String methodName, Object[] arguments) buildResult(Object result) clone()Object[]The arguments for the service method execution.An exception that occured during the remote invocation.The cluster instance id this result was executed on.The lookup name of the service.Object[]Meta arguments that can be passed as part of the invocation.The method name of the service that will be executed.The result of the remote invocation.Routing field controls the partition the invocation will be directed to when working with a partitioned space.getUid()voidprotected voidsetArguments(Object[] arguments) protected voidsetException(Throwable exception) voidsetInstanceId(Integer instanceId) voidsetInvocation(Boolean invocation) voidsetLookupName(String lookupName) voidsetMetaArguments(Object[] metaArguments) protected voidsetMethodName(String methodName) voidprotected voidvoidsetRouting(Integer routing) voidsetRouting(Object routing) voidtoString()voidMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.gigaspaces.serialization.SmartExternalizable
enabledSmartExternalizableWithReference
-
Constructor Details
-
EventDrivenSpaceRemotingEntry
public EventDrivenSpaceRemotingEntry()Constructs a new Async remoting entry. By default a transient one witn that does not return a lease. Also, by default, this is an invocation entry.
-
-
Method Details
-
getUid
-
setUid
-
setInvocation
- Specified by:
setInvocationin interfaceSpaceRemotingEntry
-
getLookupName
Description copied from interface:SpaceRemotingInvocationThe lookup name of the service. Usually the actual interface class name that is proxied on the client side and implemented on the server side.- Specified by:
getLookupNamein interfaceSpaceRemotingInvocation
-
setLookupName
- Specified by:
setLookupNamein interfaceSpaceRemotingEntry
-
getMethodName
Description copied from interface:SpaceRemotingInvocationThe method name of the service that will be executed.- Specified by:
getMethodNamein interfaceSpaceRemotingInvocation
-
setMethodName
-
getArguments
Description copied from interface:SpaceRemotingInvocationThe arguments for the service method execution.- Specified by:
getArgumentsin interfaceSpaceRemotingInvocation
-
setArguments
-
getMetaArguments
Description copied from interface:SpaceRemotingInvocationMeta arguments that can be passed as part of the invocation. This arguments are not used to invoke the method, but can be used to control ceratin pluggable invocation "aspects".- Specified by:
getMetaArgumentsin interfaceSpaceRemotingInvocation
-
setMetaArguments
- Specified by:
setMetaArgumentsin interfaceSpaceRemotingEntry
-
getOneWay
- Specified by:
getOneWayin interfaceSpaceRemotingEntry
-
setOneWay
- Specified by:
setOneWayin interfaceSpaceRemotingEntry
-
getRouting
Description copied from interface:SpaceRemotingInvocationRouting field controls the partition the invocation will be directed to when working with a partitioned space.- Specified by:
getRoutingin interfaceSpaceRemotingInvocation- Specified by:
getRoutingin interfaceSpaceRemotingResult
-
setRouting
-
setRouting
- Specified by:
setRoutingin interfaceSpaceRemotingEntry
-
getResult
Description copied from interface:SpaceRemotingResultThe result of the remote invocation. Note,nullvalue might mean that remote service returned null/void, but it also might means that there might be anSpaceRemotingResult.getException().- Specified by:
getResultin interfaceSpaceRemotingResult
-
setResult
-
getException
Description copied from interface:SpaceRemotingResultAn exception that occured during the remote invocation.nullvalue means there was no exception.- Specified by:
getExceptionin interfaceSpaceRemotingResult
-
setException
-
getInstanceId
Description copied from interface:SpaceRemotingResultThe cluster instance id this result was executed on.- Specified by:
getInstanceIdin interfaceSpaceRemotingResult
-
setInstanceId
- Specified by:
setInstanceIdin interfaceSpaceRemotingEntry
-
buildInvocation
-
buildResultTemplate
- Specified by:
buildResultTemplatein interfaceSpaceRemotingEntry
-
buildResult
- Specified by:
buildResultin interfaceSpaceRemotingEntry
-
buildResult
- Specified by:
buildResultin interfaceSpaceRemotingEntry
-
clone
- Specified by:
clonein interfaceSpaceRemotingEntry- Overrides:
clonein classObject- Throws:
CloneNotSupportedException
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
toString
-