|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.load.Installer
Loads required base data into an empty Windchill database.
Supported API: true
Field Summary | |
private static boolean |
All
|
(package private) static String |
CLASSNAME
|
private static String |
LINE_SEPARATOR
|
private static String |
LOAD_FILE_DIR
|
private static int |
MAX_WAIT_TIME
|
private static int |
NUM_STEPS
|
private static int |
PING_DELAY
|
private static String |
RESOURCE
|
private static Vector |
services
|
private static ServerMonitors |
sm
|
private static int |
START_WAIT
|
private static String |
SYS_ADMIN_USERS
|
private static String |
TOP_CLASSNAME
|
private static String |
USERADMINNAME
|
private static String |
versionID
|
private static String |
WT_HOME
|
Constructor Summary | |
Installer()
|
Method Summary | |
static void |
authenticateAsAdmin()
Authenticate the current session by prompting for Web Server ID and password. |
private static void |
changeWtProperty(String property_name,
String property_value,
String comment)
|
private static void |
checkServiceStartup()
checkServiceStartup does most of the setup a pre-configuration before going into a timing loop periodically waking up and checking for completion of the services startup. |
static void |
loadRequired(Hashtable cmd_line)
Prompt for and load the required base data for a fresh database. |
static void |
main(String[] args)
Command line interface for loading the required base data for a fresh database. |
private static void |
pause(String msg)
Pause, waiting for user response. |
private static void |
printHeader(int stepNumber)
|
static boolean |
promptForYesNo(String verb)
Prompt for a yes or no response on the supplied string. |
static void |
restartServerManager()
Restart the Server Manager and Method Server. |
static void |
runFileLoader(String purpose,
String user,
String method,
String data_file,
Hashtable cmd_line,
boolean prompt)
Prompt the user yes/no to run a load from a file. |
static void |
runFileLoader(String purpose,
String delimeter,
String user,
String method,
String map_file,
String data_file,
Hashtable cmd_line)
Prompt the user yes/no to run a load from a file. |
static void |
runFileLoader(String purpose,
String delimiter,
String user,
String method,
String map_file,
String data_file,
Hashtable cmd_line,
boolean prompt)
Prompt the user yes/no to run a load from a file. |
static void |
runUnAttended()
Run as unattended operation. |
static void |
startServerManager()
Start the server manager and method server. |
private static boolean |
startupComplete(int size)
Mehtod which tests to see if configured services have completed thier startup these are services which are not childern of StandardSeviceManager such as foreground and background metheservers etc. |
static void |
stopServerManager()
Stop the Server Manager and Method Server. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static String LINE_SEPARATOR
private static final String versionID
private static final String RESOURCE
static final String CLASSNAME
private static final String TOP_CLASSNAME
private static final String USERADMINNAME
private static final int PING_DELAY
private static final int NUM_STEPS
private static final int MAX_WAIT_TIME
private static final String LOAD_FILE_DIR
private static final String WT_HOME
private static final int START_WAIT
private static final String SYS_ADMIN_USERS
private static ServerMonitors sm
private static Vector services
private static boolean All
Constructor Detail |
public Installer()
Method Detail |
public static void main(String[] args) throws Exception
args
- Not used anymore, ignored.
Exception
private static void printHeader(int stepNumber)
public static void loadRequired(Hashtable cmd_line) throws Exception
Exception
public static void authenticateAsAdmin() throws WTException
WTException
private static void changeWtProperty(String property_name, String property_value, String comment) throws StructConfManagerException
StructConfManagerException
private static void pause(String msg)
public static boolean promptForYesNo(String verb) throws WTException
verb
- Text that will be used for prompting the user with in the yes/no dialog box.
WTException
public static void runUnAttended()
public static void startServerManager() throws Exception
Exception
public static void stopServerManager() throws Exception
Exception
public static void restartServerManager() throws Exception
Exception
public static void runFileLoader(String purpose, String delimeter, String user, String method, String map_file, String data_file, Hashtable cmd_line) throws Exception
purpose
- Text that is added to the yes/no dialog.delimeter
- The token used to delimit fields of data in the data file.user
- The user to execute the method, if no user is given in the line from the data file.method
- A string used with the object name (the first field) from the data file to key into the mapdata file. The line in the map data file will then contain the method name to pass this information to and the ordered list of fieldnames to match with the line in the data file.
Exception
public static void runFileLoader(String purpose, String user, String method, String data_file, Hashtable cmd_line, boolean prompt) throws Exception
purpose
- Text that is added to the yes/no dialog.user
- The user to execute the method, if no user is given in the line from the data file.method
- A string used with the object name (the first field) from the data file to key into the mapdata file. The line in the map data file will then contain the method name to pass this information to and the ordered list of fieldnames to match with the line in the data file.prompt
- Prompt the user with the purpose. If false, the load will occur immediately.
Exception
public static void runFileLoader(String purpose, String delimiter, String user, String method, String map_file, String data_file, Hashtable cmd_line, boolean prompt) throws Exception
purpose
- Text that is added to the yes/no dialog.user
- The user to execute the method, if no user is given in the line from the data file.method
- A string used with the object name (the first field) from the data file to key into the mapdata file. The line in the map data file will then contain the method name to pass this information to and the ordered list of fieldnames to match with the line in the data file.prompt
- Prompt the user with the purpose. If false, the load will occur immediately.
Exception
private static boolean startupComplete(int size) throws RemoteException
RemoteException
private static void checkServiceStartup() throws Exception
Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |