Produced by Araxis Merge on 6/9/2017 3:50:04 PM Eastern Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | Fri Jun 9 19:50:04 2017 UTC | ||
| 2 | eHealth_Exch (eHealth Exchange Enhancements) Build 3 docs & code_May_2017.zip\VAP_CIF_CODE0502.zip\VAP_CIF_CODE0502\VAP_CIF_CODE0502\nvap-env\src\main\python | startdomainservers.py | Fri Apr 21 20:03:26 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 0 | 0 |
| Changed | 0 | 0 |
| Inserted | 1 | 63 |
| Removed | 0 | 0 |
| Whitespace | |
|---|---|
| Character case | Differences in character case are significant |
| Line endings | Differences in line endings (CR and LF characters) are ignored |
| CR/LF characters | Not shown in the comparison detail |
No regular expressions were active.
| 1 | import sys | |||||
| 2 | import os | |||||
| 3 | from util import par ams | |||||
| 4 | from util import dom ainconfig | |||||
| 5 | from util. propertyhe lp import PropertyHe lper | |||||
| 6 | ||||||
| 7 | print "[WL ST] ------ ---------- ---------- ---------- ---------- ---------- ---------- ------" | |||||
| 8 | print "[WL ST] " | |||||
| 9 | print "[WL ST] Starti ng WebLogi c Servers for Domain " | |||||
| 10 | print "[WL ST] " | |||||
| 11 | ||||||
| 12 | try: | |||||
| 13 | print "[WLST] -- ---------- ---------- ---------- ---------- ---------- ---------- ---------- " | |||||
| 14 | print "[WLST] " | |||||
| 15 | print "[WLST] Lo ading Scri pt Paramet ers" | |||||
| 16 | print "[WLST] " | |||||
| 17 | ||||||
| 18 | params = params. getScriptP arameters( sys.argv) | |||||
| 19 | propHe lp = Prope rtyHelper( params['pr ops.file'] ) | |||||
| 20 | attrs = propHelp .getAdminS erverAttri butes() | |||||
| 21 | domain Directory = propHelp .getDomain sDirectory (propHelp. getAdminSe rverAttrib utes()['ma chine']) + "/" + pro pHelp.getD omainName( ) | |||||
| 22 | ||||||
| 23 | print "[WLST] -- ---------- ---------- ---------- ---------- ---------- ---------- ---------- " | |||||
| 24 | print "[WLST] " | |||||
| 25 | print "[WLST] St arting Dom ain Admin Server" | |||||
| 26 | print "[WLST] " | |||||
| 27 | ||||||
| 28 | # TODO : Determin e whether to use nod emanager t o start ad min server or not. S hould it b e a config uration op tion? | |||||
| 29 | ||||||
| 30 | # TODO : If the r estart fla g is prese nt and the server is up, shut it down fi rst and re start. | |||||
| 31 | if(par ams.get('r estart') = = 'true'): | |||||
| 32 | h ideDisplay () | |||||
| 33 | h ideDumpSta ck("true") | |||||
| 34 | ||||||
| 35 | # try conne cting to a running s erver if i t is alrea dy running ... | |||||
| 36 | i f(connecte d=="false" ): | |||||
| 37 | try: | |||||
| 38 | conn ect(attrs[ 'username' ], attrs[' password'] , attrs['u rl']) | |||||
| 39 | except W LSTExcepti on: | |||||
| 40 | prin t 'No serv er is runn ing at '+a dminServer ['url']+', the scrip t will sta rt a new s erver' | |||||
| 41 | ||||||
| 42 | h ideDumpSta ck("false" ) | |||||
| 43 | ||||||
| 44 | print "Domain Di rectory: " + domainD irectory | |||||
| 45 | # star t the serv er now | |||||
| 46 | startS erver(attr s['name'], propHelp. getDomainN ame(), att rs['url'], attrs['us ername'], attrs['pas sword'], d omainDirec tory, jvmA rgs=attrs[ 'jvmargs'] ) | |||||
| 47 | ||||||
| 48 | # TODO : Add logi c for star ting manag ed servers | |||||
| 49 | ||||||
| 50 | except : | |||||
| 51 | print "[WLST] -- ---------- ---------- ---------- ---------- ---------- ---------- ---------- " | |||||
| 52 | print "[WLST] " | |||||
| 53 | print "[WLST] Un expected E rror Occur red: ", s ys.exc_inf o()[1] | |||||
| 54 | print "[WLST] ", sys.exc_i nfo() | |||||
| 55 | print "[WLST] " | |||||
| 56 | print "[WLST] -- ---------- ---------- ---------- ---------- ---------- ---------- ---------- " | |||||
| 57 | sys.ex it(-1) | |||||
| 58 | ||||||
| 59 | print "[WL ST] ------ ---------- ---------- ---------- ---------- ---------- ---------- ------" | |||||
| 60 | print "[WL ST] " | |||||
| 61 | print "[WL ST] Finish ed Startin g Servers" | |||||
| 62 | print "[WL ST] " | |||||
| 63 | print "[WL ST] ------ ---------- ---------- ---------- ---------- ---------- ---------- ------" |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.