com.groundwork.collage
Interface CollageHostQuery


public interface CollageHostQuery

Provides access to Hosts stored in the CollageDatabase. Allows retrieval of all information pertaining to Hosts.

Version:
$Id: CollageHostQuery.java,v 1.8 2005/07/27 21:32:37 rogerrut Exp $
Author:
Robin Dandridge

Method Summary
 Device getDeviceForHost(java.lang.String host)
          Get the device for a Host
 java.util.Collection getHosts()
          Returns all Hosts currently in the system.
 HostStatus getHostStatusForHost(java.lang.String host)
          Get the HostStatus for a given host
 java.util.Collection getServicesForHost(java.lang.String host)
          Returns all Services for the given Host.
 

Method Detail

getServicesForHost

public java.util.Collection getServicesForHost(java.lang.String host)
                                        throws CollageException
Returns all Services for the given Host. The returned Collection contains an ordered Collection of ServiceStatus.

Parameters:
host - Name of the Host. Limit the query to filter by this Host's name.
Returns:
a Collection of ServiceStatus objects for the given host.
Throws:
CollageException

getHosts

public java.util.Collection getHosts()
                              throws CollageException
Returns all Hosts currently in the system. The returned Collection contains an ordered Collection of Host

Returns:
a Collection of all Host objects in the system
Throws:
CollageException

getHostStatusForHost

public HostStatus getHostStatusForHost(java.lang.String host)
                                throws CollageException
Get the HostStatus for a given host

Parameters:
host - Name of the host
Returns:
HostStatus
Throws:
CollageException

getDeviceForHost

public Device getDeviceForHost(java.lang.String host)
                        throws CollageException
Get the device for a Host

Parameters:
host - Name of the Host
Returns:
Device
Throws:
CollageException


Copyright © 2005 IT Groundwork. All Rights Reserved.