forked from dalehenrich/gsApplicationTools
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
52 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...ory/GsApplicationTools-Server.package/GemServer.class/instance/executeStartGemCommand..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
server specialization | ||
executeStartGemCommand: portOrResourceName | ||
| commandLine | | ||
commandLine := self startScriptPath , ' ' , self name , ' ' | ||
, portOrResourceName asString , ' "' , self exeConfPath , '"'. | ||
commandLine := self startScriptPath , ' ' , self name , ' "' | ||
, portOrResourceName printString , '" "' , self exeConfPath , '"'. | ||
self performOnServer: commandLine |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
repository/GsApplicationTools-Server.package/GemServer.class/instance/waitForStartGems..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
service instance-control | ||
waitForStartGems: timeOutSeconds | ||
| pidList count | | ||
pidList := ''. | ||
count := 0. | ||
self logControlEvent: 'Wait for Gems: ' , self name. | ||
self portOrResourceNameList | ||
do: [ :portOrResourceName | | ||
| pidFilePath file | | ||
pidFilePath := self gemPidFileName: portOrResourceName. | ||
[ GsFile existsOnServer: pidFilePath ] | ||
whileFalse: [ | ||
(Delay forSeconds: 1) wait. | ||
count := count + 1. | ||
count > timeOutSeconds | ||
ifTrue: [ ^ false ] ] ]. | ||
^ true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
repository/GsApplicationTools-Server.package/monticello.meta/version
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 1 addition & 3 deletions
4
...sitory/GsApplicationTools-Test.package/GemServerRemoteVMTests.class/instance/stopGems..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
private | ||
stopGems: gemServer | ||
self staticRemoteServer | ||
ifFalse: [ | ||
gemServer stopGems. | ||
(Delay forSeconds: 3) wait ] | ||
ifFalse: [ gemServer stopGems ] |
8 changes: 8 additions & 0 deletions
8
...tionTools-Test.package/GemServerRemoteVMTests.class/instance/waitForGemServer.message..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
private | ||
waitForGemServer: gemServer message: message | ||
(gemServer waitForStartGems: 20) | ||
ifFalse: [ | ||
Transcript | ||
cr; | ||
show: message. | ||
self assert: false ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
repository/GsApplicationTools-Test.package/MockGemServer.class/instance/useEventLog..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
accessing | ||
useEventLog: anObject | ||
|
||
useEventLog := anObject | ||
useEventLog := anObject |
2 changes: 1 addition & 1 deletion
2
repository/GsApplicationTools-Test.package/monticello.meta/version
Large diffs are not rendered by default.
Oops, something went wrong.