com.sun.jini.compat.harness
Interface BasicServiceAdmin
- All Superinterfaces:
- BasicAdmin
- All Known Implementing Classes:
- DefaultServiceAdmin, ExecServiceAdmin, FiddlerAdmin, MahaloAdmin, MercuryAdmin, NormAdmin, OutriggerAdmin, ReggieAdmin, ReggieServiceAdmin, ServiceStarterAdmin, TransientServiceAdmin
- public interface BasicServiceAdmin
- extends BasicAdmin
An interface for basic administration of a service. Developers
wishing to automate the testing of their service should write
a class that implements this interface and provides appropriate
method implementations for the service it administers. The
BasicServiceAdmin
implementation class is expected
to have a constructor that either takes no arguments or takes
a String
as an argument.
Field Summary |
static java.lang.String |
CATEGORY
|
Method Summary |
ServiceTemplate |
getTemplate()
Return a ServiceTemplate that can be used to identify
the service. |
ServiceItem |
pickService(ServiceItem[] services)
Given an array of service proxy objects, this method
should return the service associated with this admin. |
CATEGORY
public static final java.lang.String CATEGORY
- See Also:
- Constant Field Values
pickService
public ServiceItem pickService(ServiceItem[] services)
throws java.rmi.RemoteException
- Given an array of service proxy objects, this method
should return the service associated with this admin. If the
associated service is not found in the
services
array, then this method should return null
.
- Parameters:
services
- the array of ServiceItem
objects
from which to choose
- Returns:
- the
ServiceItem
for the service being tested,
or null
- Throws:
java.rmi.RemoteException
getTemplate
public ServiceTemplate getTemplate()
throws java.rmi.RemoteException
- Return a
ServiceTemplate
that can be used to identify
the service. This helps to filter out unnecessary notifications.
- Returns:
- the template that best matches the service being tested
- Throws:
java.rmi.RemoteException
Copyright 2005, Sun Microsystems, Inc.
Licensed under the Apache License, Version 2.0.