org.gridlab.gat
Class AdaptorInfo

java.lang.Object
  extended by org.gridlab.gat.AdaptorInfo

public class AdaptorInfo
extends Object

An object that can hold information about a specific adaptor. This object contains the full and short name of the adaptor, the type (for instance File, ResourceBroker, etc.), a description in text, the preferences that are supported by this adaptor and which methods it implements (the capabilities of the adaptor).

Author:
rkemp

Constructor Summary
AdaptorInfo(String fullname, String shortname, String type, Preferences supportedPreferences, Map<String,Boolean> capabilities, String description)
          Constructs an AdaptorInfo object.
 
Method Summary
 String getDescription()
          Returns the text description of this adaptor, with additional information.
 String getShortName()
          Returns the short name of this adaptor.
 Map<String,Boolean> getSupportedCapabilities()
          Returns a Map<String, Boolean> where the keys are the method names and the values boolean indicating whether the method is implemented.
 Preferences getSupportedPreferences()
          Returns a Preferences object where the keys are supported by this adaptor, and the values are the default values for the corresponding keys.
 String toString()
          Returns a String representation of this object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AdaptorInfo

public AdaptorInfo(String fullname,
                   String shortname,
                   String type,
                   Preferences supportedPreferences,
                   Map<String,Boolean> capabilities,
                   String description)
Constructs an AdaptorInfo object.

Parameters:
fullname - the full name of this adaptor (for instance org.gridlab.gat.resources.cpi.globus.GlobusResourceBrokerAdaptor)
shortname - the short name of this adaptor (for instance GlobusResourceBrokerAdaptor)
type - the type of this adaptor (for instance ResourceBroker)
supportedPreferences - a Preferences object that contains all the keys that are supported by this adaptor, the values are the default values
capabilities - A Map where the keys are method names and the values a boolean indicating whether this method is implemented.
description - A text description of this adaptor, with additional information about this adaptor
Method Detail

toString

public String toString()
Returns a String representation of this object.

Overrides:
toString in class Object
Returns:
The String representation of this object.

getSupportedPreferences

public Preferences getSupportedPreferences()
Returns a Preferences object where the keys are supported by this adaptor, and the values are the default values for the corresponding keys.

Returns:
a Preferences object where the keys are supported by this adaptor, and the values are the default values for the corresponding keys.

getShortName

public String getShortName()
Returns the short name of this adaptor.

Returns:
the short name of this adaptor.

getSupportedCapabilities

public Map<String,Boolean> getSupportedCapabilities()
Returns a Map<String, Boolean> where the keys are the method names and the values boolean indicating whether the method is implemented.

Returns:
a Map<String, Boolean> where the keys are the method names and the values boolean indicating whether the method is implemented.

getDescription

public String getDescription()
Returns the text description of this adaptor, with additional information.

Returns:
the text description of this adaptor, with additional information.