com.groundwork.collage
Interface CollageServiceQuery


public interface CollageServiceQuery

Provides access to the Services defined (in the ServiceStatus table) in the Collage databse.

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

Method Summary
 ServiceStatus getService(java.lang.String serviceName)
          Returns the Service with the given name.
 ServiceStatus getService(java.lang.String serviceName, java.lang.String hostName)
          Returns a ServiceStatus with the given name that belongs to the Host specified.
 java.util.Collection getServices()
          Returns all Services in the system.
 

Method Detail

getService

public ServiceStatus getService(java.lang.String serviceName,
                                java.lang.String hostName)
                         throws CollageException
Returns a ServiceStatus with the given name that belongs to the Host specified.

Parameters:
serviceName - Name of the Service.
hostName - Name of the Host.
Returns:
a ServiceStatus that matches the criteria provided.
Throws:
CollageException

getService

public ServiceStatus getService(java.lang.String serviceName)
                         throws CollageException
Returns the Service with the given name.

Parameters:
serviceName - Name of the Service.
Returns:
a ServiceStatus that matches the criteria provided.
Throws:
CollageException

getServices

public java.util.Collection getServices()
                                 throws CollageException
Returns all Services in the system. The returned Collection contains an ordered Collection of ServiceStatus

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


Copyright © 2005 IT Groundwork. All Rights Reserved.