-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
… `gs configuration`, `gs sessionReport` commands added, `gs version` command expanded, `ol` commands refactored for use st api
- Loading branch information
1 parent
8b497aa
commit 922c174
Showing
42 changed files
with
421 additions
and
59 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
14 changes: 14 additions & 0 deletions
14
...ory/Tode-GemStone-Server-Core.package/TDGemStoneTool.class/instance/gsSessionReportOn..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,14 @@ | ||
as yet unclassified | ||
gsSessionReportOn: aStream | ||
System currentSessions | ||
do: [ :idx | | ||
| sessionArray | | ||
sessionArray := System descriptionOfSession: idx. | ||
aStream | ||
nextPutAll: idx asString , ': '; | ||
nextPutAll: 'User: ' , (sessionArray at: 1) userId; | ||
nextPutAll: ' | SerialNumber: ' , (sessionArray at: 9) asString; | ||
nextPutAll: ' | PID: ' , (sessionArray at: 2) asString; | ||
nextPutAll: ' | IP-Adr.: ' , (sessionArray at: 11) asString; | ||
nextPutAll: ' | RefOldestCR: ' , (sessionArray at: 8) asString; | ||
cr ] |
7 changes: 7 additions & 0 deletions
7
...itory/Tode-GemStone-Server-Core.package/TDGemStoneTool.class/instance/gsconfiguration..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,7 @@ | ||
as yet unclassified | ||
gsconfiguration: reportType | ||
reportType == #'gem' | ||
ifTrue: [ ^ System gemConfigurationReport ]. | ||
reportType == #'stone' | ||
ifTrue: [ ^ System stoneConfigurationReport ]. | ||
self error: 'Unknown reportType (#gem, #stone): ' , reportType printString |
22 changes: 22 additions & 0 deletions
22
...sitory/Tode-GemStone-Server-Core.package/TDGemStoneTool.class/instance/gsconfiguration.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,22 @@ | ||
as yet unclassified | ||
gsconfiguration | ||
" | ||
gs configuration [--gem|--stone] | ||
" | ||
|
||
| reportDict reportType | | ||
self | ||
getOptsMixedLongShort: | ||
{#('gem' nil #'none'). | ||
#('stone' nil #'none')}. | ||
self options | ||
at: 'gem' | ||
ifPresent: [ :ignored | reportType := #'gem' ] | ||
ifAbsent: [ | ||
self options | ||
at: 'stone' | ||
ifPresent: [ :ignored | reportType := #'stone' ] | ||
ifAbsent: [ reportType := #'stone' ] ]. | ||
reportDict := self gsconfiguration: reportType. | ||
reportDict edit: self topez. | ||
^ reportDict |
13 changes: 13 additions & 0 deletions
13
...sitory/Tode-GemStone-Server-Core.package/TDGemStoneTool.class/instance/gssessionReport.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,13 @@ | ||
as yet unclassified | ||
gssessionReport | ||
" | ||
gs sessionReport | ||
" | ||
|
||
| aStream report | | ||
self getOptsMixedLongShort: {}. | ||
aStream := WriteStream on: String new. | ||
self gsSessionReportOn: aStream. | ||
report := aStream contents. | ||
report edit: self topez. | ||
^ report |
11 changes: 11 additions & 0 deletions
11
repository/Tode-GemStone-Server-Core.package/TDGemStoneTool.class/instance/gsversion..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,11 @@ | ||
as yet unclassified | ||
gsversion: reportType | ||
reportType == #'client' | ||
ifTrue: [ ^ System clientVersionReport ]. | ||
reportType == #'gem' | ||
ifTrue: [ ^ System gemVersionReport ]. | ||
reportType == #'stone' | ||
ifTrue: [ ^ System stoneVersionReport ]. | ||
self | ||
error: | ||
'Unknown reportType (#client, #gem, #stone): ' , reportType printString |
27 changes: 24 additions & 3 deletions
27
repository/Tode-GemStone-Server-Core.package/TDGemStoneTool.class/instance/gsversion.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,27 @@ | ||
as yet unclassified | ||
gsversion | ||
"gs version" | ||
" | ||
gs version [--client|--gem|--stone] | ||
" | ||
|
||
^ System gemVersionReport | ||
editUsing: (TDEditorSpec topez: topez editorAspect: #'edit') | ||
| reportDict reportType | | ||
self | ||
getOptsMixedLongShort: | ||
{#('client' nil #'none'). | ||
#('gem' nil #'none'). | ||
#('stone' nil #'none')}. | ||
self options | ||
at: 'client' | ||
ifPresent: [ :ignored | reportType := #'client' ] | ||
ifAbsent: [ | ||
self options | ||
at: 'gem' | ||
ifPresent: [ :ignored | reportType := #'gem' ] | ||
ifAbsent: [ | ||
self options | ||
at: 'stone' | ||
ifPresent: [ :ignored | reportType := #'stone' ] | ||
ifAbsent: [ reportType := #'stone' ] ] ]. | ||
reportDict := self gsversion: reportType. | ||
reportDict edit: self topez. | ||
^ reportDict |
3 changes: 3 additions & 0 deletions
3
repository/Tode-GemStone-Server-Core.package/TDGemStoneTool.class/instance/olClear..2.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,3 @@ | ||
ol | ||
olClear | ||
^ self olClear: #() age: nil |
14 changes: 14 additions & 0 deletions
14
repository/Tode-GemStone-Server-Core.package/TDGemStoneTool.class/instance/olClear..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,14 @@ | ||
ol | ||
olClear: priorities | ||
"priorities: | ||
debug | ||
error | ||
fatal | ||
info | ||
interaction | ||
trace | ||
transcript | ||
warn | ||
" | ||
|
||
^ self olClear: priorities age: nil |
29 changes: 29 additions & 0 deletions
29
repository/Tode-GemStone-Server-Core.package/TDGemStoneTool.class/instance/olClear.age..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,29 @@ | ||
ol | ||
olClear: priorities age: aDateAndTimeOrNil | ||
"priorities: | ||
debug | ||
error | ||
fatal | ||
info | ||
interaction | ||
trace | ||
transcript | ||
warn | ||
" | ||
|
||
| objectLog | | ||
priorities isEmpty | ||
ifTrue: [ | ||
"clear all - most efficient to simply reset the collections" | ||
ObjectLogEntry initialize. | ||
^ true ]. | ||
objectLog := ObjectLogEntry objectLog. | ||
objectLog copy | ||
do: [ :entry | | ||
(priorities includes: entry priority) | ||
ifTrue: [ | ||
aDateAndTimeOrNil | ||
ifNil: [ objectLog remove: entry ] | ||
ifNotNil: [ | ||
objectLog stamp < aDateAndTimeOrNil | ||
ifTrue: [ objectLog remove: entry ] ] ] ] |
8 changes: 8 additions & 0 deletions
8
repository/Tode-GemStone-Server-Core.package/TDGemStoneTool.class/instance/olView..2.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 @@ | ||
ol | ||
olView | ||
^ self | ||
olView: [ | ||
System commitTransaction. | ||
ObjectLogEntry objectLog ] | ||
reversed: false | ||
label: 'Object log' |
8 changes: 8 additions & 0 deletions
8
...Tode-GemStone-Server-Core.package/TDGemStoneTool.class/instance/olView.reversed.label..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 @@ | ||
ol | ||
olView: objectLogBlock reversed: reversed label: label | ||
^ (TDObjectLogEntryBrowser new | ||
topez: self topez; | ||
reversed: reversed; | ||
objectLogBlock: objectLogBlock; | ||
windowLabel: label; | ||
yourself) open |
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
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/Tode-GemStone-Server-Core.package/monticello.meta/version
Large diffs are not rendered by default.
Oops, something went wrong.
6 changes: 6 additions & 0 deletions
6
...ore.package/TDClientSourceElementBuilder.class/instance/editItMenuAction.selectedText..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,6 @@ | ||
menu actions | ||
editItMenuAction: listElement selectedText: selectedString | ||
| result | | ||
result := self evaluateString: selectedString. | ||
result edit: listElement topez. | ||
^ 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
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
6 changes: 6 additions & 0 deletions
6
....package/TDGemToolsMenuBar.class/instance/doitChangedPackagesAndMethods.selectedIndex..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,6 @@ | ||
menu actions | ||
doitChangedPackagesAndMethods: listElement selectedIndex: index | ||
| projectTool | | ||
projectTool := self topez toolInstanceFor: 'project'. | ||
projectTool projectsummary. | ||
^ true |
6 changes: 6 additions & 0 deletions
6
...Server-Core.package/TDGemToolsMenuBar.class/instance/doitClearObjectLog.selectedIndex..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,6 @@ | ||
menu actions | ||
doitClearObjectLog: listElement selectedIndex: index | ||
| gsTool | | ||
gsTool := self topez toolInstanceFor: 'gs'. | ||
gsTool olClear. | ||
^ true |
6 changes: 6 additions & 0 deletions
6
...r-Core.package/TDGemToolsMenuBar.class/instance/doitClientVersionReport.selectedIndex..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,6 @@ | ||
menu actions | ||
doitClientVersionReport: listElement selectedIndex: index | ||
| gsTool | | ||
gsTool := self topez toolInstanceFor: 'gs'. | ||
(gsTool gsversion: #'client') edit: listElement topez. | ||
^ true |
6 changes: 6 additions & 0 deletions
6
...Server-Core.package/TDGemToolsMenuBar.class/instance/doitFileSizeReport.selectedIndex..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,6 @@ | ||
menu actions | ||
doitFileSizeReport: listElement selectedIndex: index | ||
| gsTool | | ||
gsTool := self topez toolInstanceFor: 'gs'. | ||
gsTool gsfileSizeReport edit: listElement topez. | ||
^ true |
6 changes: 6 additions & 0 deletions
6
...erver-Core.package/TDGemToolsMenuBar.class/instance/doitGemConfigReport.selectedIndex..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,6 @@ | ||
menu actions | ||
doitGemConfigReport: listElement selectedIndex: index | ||
| gsTool | | ||
gsTool := self topez toolInstanceFor: 'gs'. | ||
(gsTool gsconfiguration: #'gem') edit: listElement topez. | ||
^ true |
6 changes: 6 additions & 0 deletions
6
...rver-Core.package/TDGemToolsMenuBar.class/instance/doitGemVersionReport.selectedIndex..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,6 @@ | ||
menu actions | ||
doitGemVersionReport: listElement selectedIndex: index | ||
| gsTool | | ||
gsTool := self topez toolInstanceFor: 'gs'. | ||
(gsTool gsversion: #'gem') edit: listElement topez. | ||
^ true |
6 changes: 6 additions & 0 deletions
6
...-Server-Core.package/TDGemToolsMenuBar.class/instance/doitSessionReport.selectedIndex..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,6 @@ | ||
menu actions | ||
doitSessionReport: listElement selectedIndex: index | ||
| gsTool | | ||
gsTool := self topez toolInstanceFor: 'gs'. | ||
gsTool gssessionReport. | ||
^ true |
6 changes: 6 additions & 0 deletions
6
...ver-Core.package/TDGemToolsMenuBar.class/instance/doitStoneConfigReport.selectedIndex..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,6 @@ | ||
menu actions | ||
doitStoneConfigReport: listElement selectedIndex: index | ||
| gsTool | | ||
gsTool := self topez toolInstanceFor: 'gs'. | ||
(gsTool gsconfiguration: #'stone') edit: listElement topez. | ||
^ true |
Oops, something went wrong.