-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #4: create session description ... looks kosher
- Loading branch information
1 parent
56e19e9
commit ba7961b
Showing
15 changed files
with
36 additions
and
77 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,4 +10,4 @@ RwSimpleProjectLoadComponentV2 { | |
'GsDevKit_stones-Core' | ||
], | ||
#comment : '' | ||
} | ||
} |
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: 0 additions & 6 deletions
6
src/GsDevKit_stones-Core.package/GDKStoneDirectorySpec.class/instance/backupsDir.st
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
src/GsDevKit_stones-Core.package/GDKStoneDirectorySpec.class/instance/binDir.st
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
src/GsDevKit_stones-Core.package/GDKStoneDirectorySpec.class/instance/extentsDir.st
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
src/GsDevKit_stones-Core.package/GDKStoneDirectorySpec.class/instance/productDir.st
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
src/GsDevKit_stones-Core.package/GDKStoneDirectorySpec.class/instance/snapshotsDir.st
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
src/GsDevKit_stones-Core.package/GDKStoneDirectorySpec.class/instance/statsDir.st
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
src/GsDevKit_stones-Core.package/GDKStoneDirectorySpec.class/instance/tranlogsDir.st
This file was deleted.
Oops, something went wrong.
23 changes: 19 additions & 4 deletions
23
..._stones-Core.package/GDKhomeStoneDirectorySpec.class/instance/createSessionDescripton..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,21 @@ | ||
stone creation | ||
createSessionDescripton: stoneSpec | ||
| sessionDescriptionFile | | ||
sessionDescriptionFile := stoneSpec todeSharedDirectory asFileReference / 'sessions' | ||
/ stoneSpec stoneName. | ||
sessionDescriptionFile ensureCreateFile | ||
| sessionDescriptionFile description localHostName | | ||
sessionDescriptionFile := stoneSpec todeSharedDirectory asFileReference | ||
/ 'sessions' / stoneSpec stoneName. | ||
localHostName := System hostname. | ||
description := TDSessionDescription new | ||
name: stoneSpec stoneName; | ||
gemstoneVersion: stoneSpec gemstoneVersionString; | ||
stoneHost: localHostName; | ||
stoneName: stoneSpec stoneName; | ||
gemHost: localHostName; | ||
netLDI: stoneSpec stoneName , '_ldi'; | ||
netLDIPort: self netldiPort asString; | ||
gemTask: 'gemnetobject'; | ||
userId: stoneSpec userId; | ||
password: stoneSpec password; | ||
backupDirectory: (stoneSpec rootDir / self backups) pathString; | ||
snapshotDirectory: (stoneSpec rootDir / self snapshots) pathString; | ||
yourself. | ||
description exportTo: sessionDescriptionFile |
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
5 changes: 3 additions & 2 deletions
5
src/GsDevKit_stones-Tode.package/TDSessionDescription.class/instance/exportTo..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,3 +1,4 @@ | ||
accessing | ||
exportTo: filepath | ||
self exportTo: filepath extension: '' | ||
exportTo: fileRef | ||
fileRef | ||
writeStreamDo: [ :fileStream | STON put: self onStreamPretty: fileStream ] |
12 changes: 0 additions & 12 deletions
12
src/GsDevKit_stones-Tode.package/TDSessionDescription.class/instance/exportTo.extension..st
This file was deleted.
Oops, something went wrong.
5 changes: 1 addition & 4 deletions
5
src/GsDevKit_stones-Tode.package/TDSessionDescription.class/instance/gemstoneVersion..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,7 +1,4 @@ | ||
accessing | ||
gemstoneVersion: aString | ||
| tokens | | ||
tokens := aString findTokens: '.'. | ||
tokens size <= 2 | ||
ifTrue: [ self error: 'GemStone version must have a minimum of three version fields: ''3.2.0''' ]. | ||
aString asRwGemStoneVersionNumber. "validate that is a proper GemStone version" | ||
gemstoneVersion := aString |
15 changes: 10 additions & 5 deletions
15
src/GsDevKit_stones-Tode.package/TDSessionDescription.class/instance/stonOn..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,7 +1,12 @@ | ||
ston | ||
stonOn: stonWriter | ||
stonWriter | ||
writeObject: self | ||
streamMap: [ :dictionary | | ||
self stonInstVarNames | ||
do: [ :each | dictionary at: each asSymbol put: (self instVarNamed: each) ] ] | ||
| allInstanceVariableNames | | ||
allInstanceVariableNames := self class allInstVarNames. | ||
stonWriter | ||
writeObject: self | ||
streamMap: [ :dictionary | | ||
self stonInstVarNames | ||
do: [ :each | | ||
dictionary | ||
at: each asSymbol | ||
put: (self instVarAt: (allInstanceVariableNames indexOf: each asSymbol)) ] ] |