|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.jini.tool.envcheck.AbstractPlugin
com.sun.jini.tool.envcheck.plugins.CheckPersistence
public class CheckPersistence
Check that the persistence directory supplied by any
SharedActivatableServiceDescriptor
s are either non-existant or
empty. Check is performed in a subtask VM started identically to how the
activation system would have started it. The first entry in the service
configuration named persistenceDirectory
is checked. Doesn't
work correctly if multiple services share a configuration. Don't know how to
handle this.
Nested Class Summary | |
---|---|
static class |
CheckPersistence.CheckDirTask
Perform directory check with an active security policy in place. |
static class |
CheckPersistence.GetEntriesTask
The subtask which obtains the list of persistence directory entries. |
Field Summary | |
---|---|
(package private) EnvCheck |
envCheck
|
Constructor Summary | |
---|---|
CheckPersistence()
|
Method Summary | |
---|---|
private Object |
checkDir(String dir,
SharedActivatableServiceDescriptor d)
Perform a check on the given persistence directory. |
private void |
checkDirectory(SharedActivatableServiceDescriptor d)
Launch a subtask for the given descriptor to obtain all the persistenceDirectory entries. |
private void |
checkEntries(String[] entries,
SharedActivatableServiceDescriptor d,
String source)
Check entries for validity. |
void |
run(EnvCheck envCheck)
Check the persistence directory for every SharedActivatableServiceDescriptor in the starter
configuration. |
Methods inherited from class com.sun.jini.tool.envcheck.AbstractPlugin |
---|
getBundle, getString, getString, getString, getString, handleUnexpectedSubtaskReturn, isPluginOption, taskName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
EnvCheck envCheck
Constructor Detail |
---|
public CheckPersistence()
Method Detail |
---|
public void run(EnvCheck envCheck)
SharedActivatableServiceDescriptor
in the starter
configuration.
envCheck
- the plugin containerprivate void checkDirectory(SharedActivatableServiceDescriptor d)
persistenceDirectory
entries. Check each
entry found for validity.
d
- the descriptor to check, which must be a
SharedActivatableServiceDescriptor
private void checkEntries(String[] entries, SharedActivatableServiceDescriptor d, String source)
entries
for validity. entries
contains a collection of pairs, the first being the fully
qualified name of the persistenceDirectory
entry,
and the second being its value.
entries
- the array of entry/value pairsd
- the descriptorsource
- the source descriptive textprivate Object checkDir(String dir, SharedActivatableServiceDescriptor d)
dir
- the name of the directory to checkd
- the service descriptor
null
if the specified directory is empty
or non-existant (i.e. OK). Otherwise returns an error message
or Throwable
returned by the subtask.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |