org.myurc.uch
Interface IUCHStore

All Known Implementing Classes:
UCHStore

public interface IUCHStore

In some cases two different modules (UIPMs, TDMs, TAs) may wish to share data with each other. For this purpose, a shared Map is provided by the UCH, called "local UCH store”. Modules may store data as key-value pairs in the local UCH store, which may be accessed by other (related) modules that know the corresponding keys. It is recommended that keys are used that will likely not conflict with data written by other modules at runtime. Manufacturers of modules should use their domain name as a prefix for their keys, and use dots as delimiter between key subcomponents. Example: "example.com.uipm.607.portno”. Note that the local UCH store is not a safe place for communicating sensitive information such as authorization keys, since it can be read by all UIPMs, TDMs and TAs.

Version:
$Revision: 1.4 $
Author:
Parikshit Thakur & Team, Trace R&D Center

Method Summary
 Object getValue(String key)
          Get a stored value from the local UCH store
 void setValue(String key, Object value)
          Set a (new) value for the given key.
 

Method Detail

getValue

Object getValue(String key)
Get a stored value from the local UCH store

Parameters:
key - a String value
Returns:
stored Object for the corresponding value

setValue

void setValue(String key,
              Object value)
Set a (new) value for the given key. If the key doesn’t exist in the map before, it will be created. If the key is already existing, the map stores the new value under the key, and the old value is removed.

Parameters:
key - a String value
value - an Object value to be stored


Copyright © 2006-2008 Trace R&D Center, University of Wisconsin-Madison. All Rights Reserved.