|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nl.chess.it.util.config.InstrumentedProperties
Simple adapter around Properties, used to keep track of which keys in the properties are used
during a given interval. The measuring starts when startInstrumenting()
is called, and
stopped with stopInstrumenting()
.
Constructor Summary | |
(package private) |
InstrumentedProperties(java.util.Properties properties)
|
Method Summary | |
void |
clearResult()
|
java.lang.String |
getLastUsedKey()
Returns the last used key (key in property file). |
java.lang.String |
getLastUsedValue()
Returns the last used value. |
java.util.Properties |
getProperties()
Allows direct access to underlying properties. |
java.lang.String |
getProperty(java.lang.String key)
|
java.util.Set |
getUsedKeys()
|
void |
startInstrumenting()
Start a session to instrument the property file. |
void |
stopInstrumenting()
Stops a session instrumenting the property file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
InstrumentedProperties(java.util.Properties properties)
Method Detail |
public java.lang.String getProperty(java.lang.String key)
public void startInstrumenting()
public void stopInstrumenting()
public java.util.Set getUsedKeys()
public java.util.Properties getProperties()
public java.lang.String getLastUsedKey()
null
if no key has been used since the last call to
clearResult()
.public java.lang.String getLastUsedValue()
null
if a value was really null
or if
no key has been used since the last call to clearResult()
.public void clearResult()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |