com.sun.jini.tool.envcheck.plugins
Class CheckCodebase
java.lang.Object
  
com.sun.jini.tool.envcheck.AbstractPlugin
      
com.sun.jini.tool.envcheck.plugins.CheckCodebase
- All Implemented Interfaces: 
 - Plugin
 
public class CheckCodebase
- extends AbstractPlugin
 
Plugin which performs a variety of checks on codebase components.  If not
 configured to perform service starter checks, the codebase is expected to be
 defined by the java.rmi.server.codebase system
 property. Otherwise, all of the codebases contained in the service
 descriptors of the service starter Configuration are examined
 (excepting SharedActivationGroupDescriptors, which do not have a
 codebase). First, an existence check is performed; the codebase string must
 be non-null and have length > 0 after white space is trimmed. Non-existence
 is reported as an error. Then the codebase is decomposed into tokens (URL
 strings). Each component in a codebase is checked for the following:
 
 - check for a valid URL. As a special case, an httpmd URL which
     is invalid because the necessary protocol handler was not loaded
     will result in the generation of an appropriate error message
     and explanation. Further checks are not done for invalid URLs.
 
 - check that the host name is expressed using a fully qualified domain name
 
 - check for the use of md5 hashes in httpmd URLs
 
 - check the ability to resolve the host name to an address
 
 - check for a host name of 'localhost'
 
 - check for the ability to access (connect to) the URL
 
 
 Failure of the first or last checks are displayed as errors. Failure of
 the other checks are displayed as warnings.
 
 
| 
Method Summary | 
 void | 
run(EnvCheck envCheck)
 
          Depending on whether service start checks are configured,
 either check the codebase system property or all of the
 ServiceDescriptors that are instanceof
 NonActivatableServiceDescriptor. | 
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
CheckCodebase
public CheckCodebase()
run
public void run(EnvCheck envCheck)
- Depending on whether service start checks are configured,
 either check the codebase system property or all of the
 
ServiceDescriptors that are instanceof
 NonActivatableServiceDescriptor.
- Parameters:
 envCheck - a reference to the driver instance.
 
 
Copyright © GigaSpaces.