Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
AW: [geclipse-dev] Testing Services

Hi George,

> From the Grid project view I need the following:
> 1) Ability to contribute actions to items included in the VO resources
> 2) Perhaps the ability to mark unavailable resource (by modifying the
> icon)

In principle your idea sounds good to me. From the point of the model I
would recommend a slightly different approach. Since all these services
inherit from IGridService I would like to introduce two further methods
to this interface:

/**
 * Validates the service, i.e. performs some service specific tests
 * in order to prove its accessibility.
 *
 * @throws GridException If the validation failed. The exception 
 * gives further information about the reason why any of the performed
 * validity checks failed.
 */
public void validate() throws GridException;

/**
 * Get the result of the last validation process.
 *
 * @return True if the last call to #validate() returned without
 * throwing an exception, false otherwise.
 */
public boolean isValid();

The first method could be bound to an appropriate action in the Grid
project view's context menu. The second method could be used by the Grid
project view in order to mark a service as invalid. The advantage of
this approach would also be that further service implementations (i.e.
for other middlewares) would automatically be integrated in the test
procedure.

Cheers, Mathias


Back to the top