Class RemoteCall
java.lang.Object
org.palladiosimulator.protocom.framework.java.ee.protocol.RemoteCall
A RemoteCall object represents a remote method call.
-
Constructor Summary
ConstructorDescriptionConstructs a new RemoteCall object.RemoteCall
(String name) Constructs a new RemoteCall object. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Invokes the method represented by this remote call.static RemoteCall
Converts a serialized JSON remote call to a RemoteCall object.Class<?>[]
Gets the actual parameter types of the method.Object[]
Gets the arguments of the method call.Class<?>[]
Gets the formal parameter types of the method.getName()
Gets the name of the method.void
setActualTypes
(Class<?>[] actualTypes) Sets the actual parameter types of the method.void
setArguments
(Object[] arguments) Sets the arguments of the method call.void
setFormalTypes
(Class<?>[] formalTypes) Sets the formal parameter types of the method.void
Sets the name of the method.toJson()
Converts the remote call to JSON.
-
Constructor Details
-
RemoteCall
public RemoteCall()Constructs a new RemoteCall object. -
RemoteCall
Constructs a new RemoteCall object.- Parameters:
name
- the name of the method to invoke
-
-
Method Details
-
getName
Gets the name of the method.- Returns:
- the name of the method
-
setName
Sets the name of the method.- Parameters:
name
- the name of the method
-
getFormalTypes
Gets the formal parameter types of the method.- Returns:
- an array containing the formal parameters of the method
-
setFormalTypes
Sets the formal parameter types of the method.- Parameters:
formalTypes
- an array containing the formal parameters of the method
-
getActualTypes
Gets the actual parameter types of the method.- Returns:
- an array containing the actual parameter types of the method
-
setActualTypes
Sets the actual parameter types of the method.- Parameters:
actualTypes
- an array containing the actual parameter types
-
getArguments
Gets the arguments of the method call.- Returns:
- an array containing the arguments of the method call
-
setArguments
Sets the arguments of the method call.- Parameters:
arguments
- an array containing the arguments of the method call
-
dispatch
Invokes the method represented by this remote call.- Parameters:
target
- the invocation target
-
toJson
Converts the remote call to JSON.- Returns:
- a JSON object string representing the remote call
-
fromJson
Converts a serialized JSON remote call to a RemoteCall object.- Parameters:
serialized
- a JSON object string containing the remote call- Returns:
- the deserialized remote call
-