org.apache.lokahi.core.agent
Class TMCAgent

java.lang.Object
  extended by org.apache.lokahi.core.agent.TMCAgent

public class TMCAgent
extends java.lang.Object

Main thread that controls the Agent's sub threads.

Version:
$Id: TMCAgent.java,v 1.1 2006/03/02 19:19:44 drtobes Exp $
Author:
Stephen Toback

Method Summary
static void destroy()
          Stops all services and threads needed for the agent to run.
static void init()
          Starts all services and threads needed for the agent to run.
static void main(java.lang.String[] args)
          Starts the main thread for either stopping or starting the Agent.
 
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)
                 throws java.lang.Exception
Starts the main thread for either stopping or starting the Agent.

Parameters:
args - first argument should be either 'start' or 'stop'. All other will cause a help message to display.
Throws:
java.lang.Exception

init

public static void init()
                 throws java.lang.Exception
Starts all services and threads needed for the agent to run.

Throws:
java.io.IOException - if the socket can't be opened or a property file can't be opened.
java.lang.Exception

destroy

public static void destroy()
Stops all services and threads needed for the agent to run.