java.lang.Object
org.palladiosimulator.protocom.framework.java.ee.protocol.RemoteCall

public class RemoteCall extends Object
A RemoteCall object represents a remote method call.
  • Constructor Details

    • RemoteCall

      public RemoteCall()
      Constructs a new RemoteCall object.
    • RemoteCall

      public RemoteCall(String name)
      Constructs a new RemoteCall object.
      Parameters:
      name - the name of the method to invoke
  • Method Details

    • getName

      public String getName()
      Gets the name of the method.
      Returns:
      the name of the method
    • setName

      public void setName(String name)
      Sets the name of the method.
      Parameters:
      name - the name of the method
    • getFormalTypes

      public Class<?>[] getFormalTypes()
      Gets the formal parameter types of the method.
      Returns:
      an array containing the formal parameters of the method
    • setFormalTypes

      public void setFormalTypes(Class<?>[] formalTypes)
      Sets the formal parameter types of the method.
      Parameters:
      formalTypes - an array containing the formal parameters of the method
    • getActualTypes

      public Class<?>[] getActualTypes()
      Gets the actual parameter types of the method.
      Returns:
      an array containing the actual parameter types of the method
    • setActualTypes

      public void setActualTypes(Class<?>[] actualTypes)
      Sets the actual parameter types of the method.
      Parameters:
      actualTypes - an array containing the actual parameter types
    • getArguments

      public Object[] getArguments()
      Gets the arguments of the method call.
      Returns:
      an array containing the arguments of the method call
    • setArguments

      public void setArguments(Object[] arguments)
      Sets the arguments of the method call.
      Parameters:
      arguments - an array containing the arguments of the method call
    • dispatch

      public void dispatch(Object target)
      Invokes the method represented by this remote call.
      Parameters:
      target - the invocation target
    • toJson

      public String toJson()
      Converts the remote call to JSON.
      Returns:
      a JSON object string representing the remote call
    • fromJson

      public static RemoteCall fromJson(String serialized)
      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