Community
Participate
Working Groups
*/
public String getUUID();
public void processCommandLine(String argv[]);
}
private native int sendEventNotifications0(ICommandFragment cmd);
private native int addEventListener0(String eventsIID, int listenerID, int replyDest, int replyContext);
private native void processCommandLine0(String[] argv);
public BaseAgent(String name)
{
else
_isInitialized = true;
System.out.println("Agent initialized");
catch(Exception e)
public void processCommandLine(String[] argv) {
try {
processCommandLine0(argv);
catch(Exception e){
// /**
// * Called by the native implementation to indicate that the agent
// * is now registered with the Agent Controller.
/* Register agent */
try
{ jAgent.processCommandLine(args);
jAgent.register();
catch(Exception e){e.printStackTrace();}
Thread thread = new Thread(jAgent);
thread.start();
public void processCommand(ICommandFragment cmd)
super.processCommand(cmd);
while(running)
try { Thread.sleep(1000); } catch (Exception e) {}
/* Deregister agent */
this.deregister();