Class Invocation

java.lang.Object
dev.getelements.elements.rt.remote.Invocation
All Implemented Interfaces:
Serializable

public class Invocation extends Object implements Serializable
Represents a remote invocation. This contains enough information to invoke the method remotely.
See Also:
  • Constructor Details

    • Invocation

      public Invocation()
  • Method Details

    • getType

      public String getType()
      Gets the string representing the type of the remote object to invoke.
      Returns:
      the type
    • setType

      public void setType(String type)
      Sets the string representing the type of the remote object to invoke.
      Parameters:
      type - the type
    • getName

      public String getName()
      Gets the name of the remote object to invoke. .
      Returns:
      the name
    • setName

      public void setName(String name)
      Sets the name of the remote object to invoke. .
      Parameters:
      name - the name
    • getMethod

      public String getMethod()
      Gets the name of the remote method to invoke. .
      Returns:
      the name
    • setMethod

      public void setMethod(String method)
      Sets the name of the remote method to invoke. .
      Parameters:
      method - the method name
    • getParameters

      public List<String> getParameters()
      Gets a listing of the names of the method parameters. Each parameter is named for the Class<?> it represents.
      Returns:
      the List<String> of parameters
    • setParameters

      public void setParameters(List<String> parameters)
      Sets a listing of the names of the method parameters. Each parameter is named for the Class<?> it represents.
      Parameters:
      parameters - the List<String> of parameters
    • getArguments

      public List<Object> getArguments()
      Gets the arguments to pass to the remote method when invoking. .
      Returns:
      a List<Object> containing the arguments to pass to the remote method
    • setArguments

      public void setArguments(List<Object> arguments)
      Sets the arguments to pass to the remote method when invoking. .
      Parameters:
      arguments - List<Object> containing the arguments to pass to the remote method
    • getDispatchType

      public Dispatch.Type getDispatchType()
      Indicates the Dispatch.Type used to send this invocation. This can be used to hint how the invocation can be routed.
      Returns:
      the Dispatch.Type
    • setDispatchType

      public void setDispatchType(Dispatch.Type dispatchType)
      Sets the Dispatch.Type used to send this invocation. This can be used to hint how the invocation can be routed.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object