com.sun.jini.tool.envcheck.plugins
Class CheckConfig.GetGroupsTask

java.lang.Object
  extended by com.sun.jini.tool.envcheck.plugins.CheckConfig.GetGroupsTask
All Implemented Interfaces:
SubVMTask
Enclosing class:
CheckConfig

public static class CheckConfig.GetGroupsTask
extends Object
implements SubVMTask

Subtask which obtains all initialLookupGroups entries and returns them in an array of GroupInfo objects.


Constructor Summary
CheckConfig.GetGroupsTask()
           
 
Method Summary
private  Object getGroups(Configuration conf)
          Search for all entries named initialLookupGroups in the configuration and return the array of GroupInfo objects containing the full entry name and associated groups
 Object run(String[] args)
          Instantiate the configuration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CheckConfig.GetGroupsTask

public CheckConfig.GetGroupsTask()
Method Detail

run

public Object run(String[] args)
Instantiate the configuration. args is stripped of its first value, which is the name of this task. The remaining args are used to instantiate the configuration. This operation should never fail since the configuration will have been instantiated previous in an identical way. Once instantiated, search for an ALL_GROUPS definition.

Specified by:
run in interface SubVMTask
Parameters:
args - the args used to start this VM
Returns:
a Boolean(false) if no entries named initialLookupGroups, or the value of initialLookupGroups (a String[]) if the entry is found.

getGroups

private Object getGroups(Configuration conf)
Search for all entries named initialLookupGroups in the configuration and return the array of GroupInfo objects containing the full entry name and associated groups

Parameters:
conf - the configuration to examine
Returns:
the GroupInfo array


Copyright 2007-2010, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.