com.BobCo.communication
Class SrvTaskAsynch

java.lang.Object
  extended bycom.BobCo.communication.SrvTaskAsynch
All Implemented Interfaces:
com.tivoli.twg.libs.CommandCompleteListener

public class SrvTaskAsynch
extends java.lang.Object
implements com.tivoli.twg.libs.CommandCompleteListener

SrvTaskAsynch demonstrates how a server task can communicate with a agent program. SrvTaskAsynch sends a message asynchronously to the msglogr program, waits for the return code and prints a completion message.


Method Summary
 void CommandComplete(com.tivoli.twg.libs.Command c)
          Command complete method which overrides the method in the Command class.
static void main(java.lang.String[] args)
          Main method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

main

public static void main(java.lang.String[] args)
Main method. Creates a service node. Creates a message. Sends the message and waits for command complete. Closes service node after command complete is received.


CommandComplete

public void CommandComplete(com.tivoli.twg.libs.Command c)
Command complete method which overrides the method in the Command class. (Since we want to print our own messages.)

Specified by:
CommandComplete in interface com.tivoli.twg.libs.CommandCompleteListener