com.ibm.tspaces.examples.services
Class TstClient
java.lang.Object
|
+--com.ibm.tspaces.examples.services.TstClient
- public class TstClient
- extends java.lang.Object
- implements java.lang.Runnable
TstClient will just send requests to TstServer at some
random interval.
A client that wants to use the services needs to only do the following
TupleSpace servers = new TupleSpace("Services",servicehost);
servers.write(TService.OTHER, name,"text msg",new Long(ack);
- Author:
- John Thomas
- See Also:
TupleSpace
|
Method Summary |
static void |
main(java.lang.String[] argv)
Test the Service Client. |
void |
run()
|
static void |
testit(java.lang.String text)
|
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
TstClient
public TstClient()
run
public void run()
- Specified by:
- run in interface java.lang.Runnable
testit
public static void testit(java.lang.String text)
throws TupleSpaceException
main
public static void main(java.lang.String[] argv)
- Test the Service Client.
Syntax:
java ...TstClient -D -h host name
host - TSpaces server.
name = Name to be used to contact server