com.ibm.retail.si.mgmt.svc
Class ManagementAgentService

java.lang.Object
  |
  +--com.ibm.retail.si.mgmt.svc.ManagementAgentService

public class ManagementAgentService
extends java.lang.Object

Class that runs a MgmtAgent instance as a service by executing a simple health task in a Timer

Version:
1.0
Author:
Chris Arrington

Constructor Summary
ManagementAgentService(com.ibm.retail.si.mgmt.MgmtAgent agent)
           
 
Method Summary
 long getTaskFrequency()
           
 void setTaskFrequency(long l)
           
 void start()
          Starts the timer with the agent health task
 void stop()
          Cancels the health task timer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ManagementAgentService

public ManagementAgentService(com.ibm.retail.si.mgmt.MgmtAgent agent)
                       throws MgmtException
Method Detail

start

public void start()
Starts the timer with the agent health task


stop

public void stop()
Cancels the health task timer


getTaskFrequency

public long getTaskFrequency()
Returns:
long The time (in ms) between execution of each agent health task

setTaskFrequency

public void setTaskFrequency(long l)
Parameters:
l - New task frequency (in ms). Service must be restarted for changes to take effect
See Also:
getTaskFrequency()


Copyright © 2004 IBM. All Rights Reserved.
Generated: July 19 2004