ch.syabru.nagios.broker.impl
Class ProcessServiceCheckResultCommand

java.lang.Object
  extended by ch.syabru.nagios.broker.impl.ProcessServiceCheckResultCommand
All Implemented Interfaces:
ExternalCommand

public class ProcessServiceCheckResultCommand
extends Object
implements ExternalCommand

Process service check result external command.

Author:
Felix Roethenbacher

Field Summary
 
Fields inherited from interface ch.syabru.nagios.broker.ExternalCommand
STATE_CRITICAL, STATE_OK, STATE_UNKNOWN, STATE_WARNING
 
Constructor Summary
ProcessServiceCheckResultCommand(String hostName, String serviceDescription, int returnCode, String pluginOutput)
          C'tor.
 
Method Summary
 String getHostName()
           
 String getPluginOutput()
           
 int getReturnCode()
           
 String getServiceDescription()
           
 void writeCommand(Writer writer)
          Write external command to writer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProcessServiceCheckResultCommand

public ProcessServiceCheckResultCommand(String hostName,
                                        String serviceDescription,
                                        int returnCode,
                                        String pluginOutput)
C'tor.

Parameters:
hostName - Host name.
serviceDescription - Service description.
returnCode - Return code.
pluginOutput - Plugin output.
Method Detail

writeCommand

public void writeCommand(Writer writer)
                  throws IOException
Description copied from interface: ExternalCommand
Write external command to writer.

Specified by:
writeCommand in interface ExternalCommand
Parameters:
writer - Writer.
Throws:
IOException - XX.

getHostName

public String getHostName()

getServiceDescription

public String getServiceDescription()

getReturnCode

public int getReturnCode()

getPluginOutput

public String getPluginOutput()


Copyright © 2010-2011 Syabru. All Rights Reserved.