ch.syabru.nagios.broker.impl
Class ScheduleServiceCheckCommandFactory

java.lang.Object
  extended by ch.syabru.nagios.broker.impl.ScheduleServiceCheckCommandFactory
All Implemented Interfaces:
ExternalCommandFactory

public class ScheduleServiceCheckCommandFactory
extends Object
implements ExternalCommandFactory

Schedule service check command factory.

Author:
Felix Roethenbacher

Constructor Summary
ScheduleServiceCheckCommandFactory(String hostName, String serviceDescription, Date checkTime, int delaySeconds)
          C'tor.
 
Method Summary
 ExternalCommand createCommand()
          Create external command.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScheduleServiceCheckCommandFactory

public ScheduleServiceCheckCommandFactory(String hostName,
                                          String serviceDescription,
                                          Date checkTime,
                                          int delaySeconds)
C'tor.

Parameters:
hostName - Host name.
serviceDescription - Service description.
checkTime - Absolute check time, set to null for current time.
delaySeconds - Delay in seconds. Set to 0 for immediate check.
Method Detail

createCommand

public ExternalCommand createCommand()
Description copied from interface: ExternalCommandFactory
Create external command.

Specified by:
createCommand in interface ExternalCommandFactory
Returns:
External command.


Copyright © 2010-2011 Syabru. All Rights Reserved.