stella.net
Class TelescopeClient.Test

java.lang.Object
  extended by stella.net.TelescopeClient.Test
Enclosing class:
TelescopeClient

public static final class TelescopeClient.Test
extends Object

For simple testing of the telescope client functionality. A random telescope command is generated and sent to the server.


Constructor Summary
TelescopeClient.Test()
           
 
Method Summary
private static CommandEvent generateRandomCommand(Object src, int random)
          Generates one random command out of a list of possible command.
static void main(String[] arg)
          For testing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TelescopeClient.Test

public TelescopeClient.Test()
Method Detail

generateRandomCommand

private static final CommandEvent generateRandomCommand(Object src,
                                                        int random)
Generates one random command out of a list of possible command. This part is hard-coded but only meant for testing.


main

public static void main(String[] arg)
                 throws RemoteException
For testing. First command line argument is the name of the receiver. If the receiver was successfully register test commands are sent to it. Between individual command this thread sleeps for an arbitrary period of up to 10 sec.

Throws:
RemoteException