com.sas.services.webapp
Class Bootstrap
java.lang.Object
|
+--com.sas.services.webapp.Bootstrap
- public class Bootstrap
- extends Object
This singleton bootstraps platform services.
- instantiates a
DiscoveryService
- calls
ServiceLoader to deploy local services and
to lookup and bind to remote services
- sets system level properties read from a file
Bootstrap
public Bootstrap()
getInstance
public static Bootstrap getInstance()
- Returns:
- the singleton instance
reset
public void reset()
- resets object to initial state, destroys and creates a new DiscoveryService
execute
public void execute(Properties localProps,
Properties remoteProps)
throws Exception
- makes calls to deploy local services and
obtain reference to remote services
loads and sets optional local system properties
- Parameters:
localProps - local metadata source propertiesremoteProps - remote metadata source properties
if this is blank, or does not exists,
then the deployment will be local only
isInitialized
public boolean isInitialized()
toString
public String toString()
- Overrides:
toString in class Object
destroy
public void destroy()
enableSystemProps
public void enableSystemProps(ServletContext context,
List systemPropFileList)
- This method will set system properties read from a file.
It prepends file set in command line parm -Dsas.web.config=path-to-system-properties-file
as the first system property file in the to search.
It appends local system properties file as the last one in the list to search.
the first unique property found will be used,
other attempts to set the same property will be ignored
- Parameters:
context - List - systemPropsFileList a List of file names pointing to system properties configuation files
main
public static void main(String[] argv)
throws Exception
- run as standalone
creates singleton Bootstrap instance
calls execute
- Parameters:
argv[0] - = local metadata source properties fileargv[1] - = remote metadata source properties file- Throws:
Exception -
Copyright © 2005 SAS Institute Inc. All Rights Reserved.
javadoc generated Fri, 10 Feb 2006 17:05:13