| org.cougaar.core.service.PersistenceControlService
PersistenceControlService | public interface PersistenceControlService extends Service(Code) | | This service can be used to view and modify persistence
settings.
|
getControlNames | String[] getControlNames()(Code) | | Gets the names of all controls (operating modes). These are
controls over persistence as a whole, not media-specific.
an array of all control names |
getControlValues | OMCRangeList getControlValues(String controlName)(Code) | | Gets the (allowed) values of a given control. Values used to
set a control must be in the ranges specified by the return.
a list of ranges of values that are allowed for thenamed control. Parameters: controlName - the name of a persistence-wide control |
getMediaControlNames | String[] getMediaControlNames(String mediaName)(Code) | | Gets the names of the controls for the named media (plugin).
an array of all control names for the given media. Parameters: mediaName - the name of the media. |
getMediaControlValues | OMCRangeList getMediaControlValues(String mediaName, String controlName)(Code) | | Gets the allowed values of then named control for the named
media plugin. Values used to set a control must be in the
ranges specified by the return.
a list of ranges of values that are allowed for thenamed control. Parameters: mediaName - the name of the media having the control Parameters: controlName - the name of a media-specific control a list of the allowed value ranges. |
getMediaNames | String[] getMediaNames()(Code) | | Gets the names of the installed media plugins.
an array of the names of the installed media plugins. |
setControlValue | void setControlValue(String controlName, Comparable newValue)(Code) | | Sets the value for the named control. The value must be in the
list or ranges returned by
PersistenceControlService.getControlValues .
Parameters: controlName - the name of the control to set. Parameters: newValue - the new value for the control. Must be in theallowed ranges. |
setMediaControlValue | void setMediaControlValue(String mediaName, String controlName, Comparable newValue)(Code) | | Sets the value for the named control for the named media
plugin. The value must be in the list or ranges returned by
PersistenceControlService.getMediaControlValues .
Parameters: mediaName - the name of the media having the control Parameters: controlName - the name of the control to set. Parameters: newValue - the new value for the control. Must be in theallowed ranges. |
|
|