Voyager ORB

com.objectspace.voyager.message
Class OneWay

java.lang.Object
  |
  +--com.objectspace.voyager.message.OneWay

public class OneWay
extends java.lang.Object

A OneWay message spawns a new thread to invoke a method and returns immediately. The result of the method invocation is discarded.

Version:
3.0

Method Summary
static void invoke(java.lang.Object object, java.lang.String signature, java.lang.Object[] args)
          Spawn a thread to invoke a method on the specified object and return immediately.
static void invoke(java.lang.String classname, java.lang.String signature, java.lang.Object[] args, java.lang.String url)
          Spawn a thread to invoke a static method on the specified class and return immediately.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

invoke

public static void invoke(java.lang.Object object,
                          java.lang.String signature,
                          java.lang.Object[] args)
                   throws java.lang.NoSuchMethodException
Spawn a thread to invoke a method on the specified object and return immediately.
Parameters:
object - The destination object, which can be a regular Java reference or a proxy.
signature - The simple name or the full method signature.
args - Either null (no arguments) or an array of arguments with primitives wrapped in their object equivalents.
Throws:
java.lang.NoSuchMethodException - if a matching method is not found.

invoke

public static void invoke(java.lang.String classname,
                          java.lang.String signature,
                          java.lang.Object[] args,
                          java.lang.String url)
                   throws java.lang.NoSuchMethodException
Spawn a thread to invoke a static method on the specified class and return immediately.
Parameters:
classname - The full name of the destination class.
signature - The simple name or the full method signature.
args - Either null (no arguments) or an array of arguments with primitives wrapped in their object equivalents.
url - The URL of the remote VM.
Throws:
java.lang.NoSuchMethodException - if a matching method is not found.

ObjectSpace Inc.

(c) Copyright 1997-1999 ObjectSpace, Inc.
14850 Quorum Drive, Suite 500
Dallas, Texas 75240