Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…ass>>clearStaleTopezReferences and TDStandardTool class>>initializeTools; #249 create and use TDDirectoryNode>>_addBasicChildNode: to create child nodes without initliazing topez that is bound to be stale; add TDDirectoryNodeTopezCleaner for traversing and cleaning out stale topez refs in persistent TDDirectory structure ..
- Loading branch information
1 parent
8dc5ade
commit 4e15e51
Showing
49 changed files
with
185 additions
and
79 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
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
repository/Topez-Server-Core.package/TDDirectoryNode.class/instance/_addBasicChildNode..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 @@ | ||
as yet unclassified | ||
_addBasicChildNode: aNode | ||
"use in very restricted circumstances --- topez not set properly in aNode" | ||
|
||
aNode parent: self. | ||
self basicContents at: aNode name put: aNode |
3 changes: 1 addition & 2 deletions
3
repository/Topez-Server-Core.package/TDDirectoryNode.class/instance/addChildNode..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,6 @@ | ||
as yet unclassified | ||
addChildNode: aNode | ||
aNode parent: self. | ||
self basicContents at: aNode name put: aNode. | ||
self _addBasicChildNode: aNode. | ||
^ aNode | ||
topez: self topez; | ||
yourself |
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
Empty file.
3 changes: 3 additions & 0 deletions
3
...rver-Core.package/TDDirectoryNodeTopezCleaner.class/class/cleanDirectoryNodesRootedAt..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 @@ | ||
instance creation | ||
cleanDirectoryNodesRootedAt: aDirectoryNode | ||
^ self new cleanDirectoryNodesRootedAt: aDirectoryNode |
4 changes: 4 additions & 0 deletions
4
...ez-Server-Core.package/TDDirectoryNodeTopezCleaner.class/instance/acceptDirectoryNode..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,4 @@ | ||
visitor-double dispatching | ||
acceptDirectoryNode: aTDDirectoryNode | ||
super acceptDirectoryNode: aTDDirectoryNode. | ||
aTDDirectoryNode topez ifNotNil: [ dNodes add: aTDDirectoryNode ] |
4 changes: 4 additions & 0 deletions
4
...age/TDDirectoryNodeTopezCleaner.class/instance/acceptFileSystemDirectoryDirectoryNode..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,4 @@ | ||
visitor-double dispatching | ||
acceptFileSystemDirectoryDirectoryNode: aTDFileSystemDirectoryDirectoryNode | ||
aTDFileSystemDirectoryDirectoryNode topez | ||
ifNotNil: [ dNodes add: aTDFileSystemDirectoryDirectoryNode ] |
3 changes: 3 additions & 0 deletions
3
...opez-Server-Core.package/TDDirectoryNodeTopezCleaner.class/instance/acceptGatewayNode..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 @@ | ||
visitor-double dispatching | ||
acceptGatewayNode: aTDGatewayNode | ||
aTDGatewayNode topez ifNotNil: [ dNodes add: aTDGatewayNode ] |
3 changes: 3 additions & 0 deletions
3
...y/Topez-Server-Core.package/TDDirectoryNodeTopezCleaner.class/instance/acceptLeafNode..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 @@ | ||
visitor-double dispatching | ||
acceptLeafNode: aTDLeafNode | ||
aTDLeafNode topez ifNotNil: [ dNodes add: aTDLeafNode ] |
3 changes: 3 additions & 0 deletions
3
...Topez-Server-Core.package/TDDirectoryNodeTopezCleaner.class/instance/acceptObjectNode..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 @@ | ||
visitor-double dispatching | ||
acceptObjectNode: aTDObjectNode | ||
aTDObjectNode topez ifNotNil: [ dNodes add: aTDObjectNode ] |
3 changes: 3 additions & 0 deletions
3
...ez-Server-Core.package/TDDirectoryNodeTopezCleaner.class/instance/acceptPluggableNode..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 @@ | ||
visitor-double dispatching | ||
acceptPluggableNode: aTDPluggableNode | ||
self acceptDirectoryNode: aTDPluggableNode |
3 changes: 3 additions & 0 deletions
3
...z-Server-Core.package/TDDirectoryNodeTopezCleaner.class/instance/acceptScriptLeafNode..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 @@ | ||
visitor-leaves | ||
acceptScriptLeafNode: aTDScriptLeafNode | ||
self acceptLeafNode: aTDScriptLeafNode |
3 changes: 3 additions & 0 deletions
3
...-Server-Core.package/TDDirectoryNodeTopezCleaner.class/instance/acceptSessionTempNode..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 @@ | ||
visitor-double dispatching | ||
acceptSessionTempNode: aTDSessionTempNode | ||
aTDSessionTempNode topez ifNotNil: [ dNodes add: aTDSessionTempNode ] |
3 changes: 3 additions & 0 deletions
3
...erver-Core.package/TDDirectoryNodeTopezCleaner.class/instance/acceptSmalltalkLeafNode..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 @@ | ||
visitor-leaves | ||
acceptSmalltalkLeafNode: aTDSmalltalkLeafNode | ||
self acceptLeafNode: aTDSmalltalkLeafNode |
3 changes: 3 additions & 0 deletions
3
...z-Server-Core.package/TDDirectoryNodeTopezCleaner.class/instance/acceptStringLeafNode..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 @@ | ||
visitor-leaves | ||
acceptStringLeafNode: aTDStringLeafNode | ||
self acceptLeafNode: aTDStringLeafNode |
3 changes: 3 additions & 0 deletions
3
...ez-Server-Core.package/TDDirectoryNodeTopezCleaner.class/instance/acceptTopezLeafNode..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 @@ | ||
visitor-leaves | ||
acceptTopezLeafNode: aTDTopezLeafNode | ||
self acceptLeafNode: aTDTopezLeafNode |
3 changes: 3 additions & 0 deletions
3
...opez-Server-Core.package/TDDirectoryNodeTopezCleaner.class/instance/acceptTxtLeafNode..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 @@ | ||
visitor-leaves | ||
acceptTxtLeafNode: aTDTxtLeafNode | ||
self acceptLeafNode: aTDTxtLeafNode |
5 changes: 5 additions & 0 deletions
5
...r-Core.package/TDDirectoryNodeTopezCleaner.class/instance/cleanDirectoryNodesRootedAt..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,5 @@ | ||
cleaning | ||
cleanDirectoryNodesRootedAt: aDirectoryNode | ||
dNodes := {}. | ||
self visitNode: aDirectoryNode. | ||
^ dNodes |
17 changes: 17 additions & 0 deletions
17
repository/Topez-Server-Core.package/TDDirectoryNodeTopezCleaner.class/methodProperties.json
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 @@ | ||
{ | ||
"class" : { | ||
"cleanDirectoryNodesRootedAt:" : "dkh 03/25/2016 15:00" }, | ||
"instance" : { | ||
"acceptDirectoryNode:" : "dkh 03/25/2016 17:32", | ||
"acceptFileSystemDirectoryDirectoryNode:" : "dkh 03/25/2016 15:17", | ||
"acceptGatewayNode:" : "dkh 03/25/2016 15:17", | ||
"acceptLeafNode:" : "dkh 03/25/2016 17:32", | ||
"acceptObjectNode:" : "dkh 03/25/2016 15:31", | ||
"acceptPluggableNode:" : "dkh 03/25/2016 17:25", | ||
"acceptScriptLeafNode:" : "dkh 03/25/2016 17:19", | ||
"acceptSessionTempNode:" : "dkh 03/25/2016 15:28", | ||
"acceptSmalltalkLeafNode:" : "dkh 03/25/2016 17:19", | ||
"acceptStringLeafNode:" : "dkh 03/25/2016 17:19", | ||
"acceptTopezLeafNode:" : "dkh 03/25/2016 17:20", | ||
"acceptTxtLeafNode:" : "dkh 03/25/2016 17:20", | ||
"cleanDirectoryNodesRootedAt:" : "dkh 03/25/2016 15:16" } } |
14 changes: 14 additions & 0 deletions
14
repository/Topez-Server-Core.package/TDDirectoryNodeTopezCleaner.class/properties.json
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 @@ | ||
{ | ||
"category" : "Topez-Server-Core", | ||
"classinstvars" : [ | ||
], | ||
"classvars" : [ | ||
], | ||
"commentStamp" : "", | ||
"instvars" : [ | ||
"dNodes" ], | ||
"name" : "TDDirectoryNodeTopezCleaner", | ||
"pools" : [ | ||
], | ||
"super" : "TDNodeVisitor", | ||
"type" : "normal" } |
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
repository/Topez-Server-Core.package/TDNodeVisitor.class/instance/acceptPluggableNode..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 @@ | ||
visitor-double dispatching | ||
acceptPluggableNode: aTDPluggableNode | ||
aTDPluggableNode | ||
childrenDo: [ :child | | ||
child topez: self topez. | ||
self visitNode: child ] |
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
3 changes: 3 additions & 0 deletions
3
repository/Topez-Server-Core.package/TDPluggableNode.class/instance/acceptVisitor..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 @@ | ||
visiting | ||
acceptVisitor: aTDNodeVisitor | ||
aTDNodeVisitor acceptPluggableNode: self |
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
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
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
9 changes: 9 additions & 0 deletions
9
repository/Topez-Server-Core.package/TDTopezServer.class/class/clearStaleTopezReferences.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,9 @@ | ||
accessing | ||
clearStaleTopezReferences | ||
"self clearStaleTopezReferences" | ||
|
||
| nodes | | ||
nodes := TDDirectoryNodeTopezCleaner | ||
cleanDirectoryNodesRootedAt: self rootNode. | ||
nodes do: [ :node | node topez: nil ]. | ||
^ nodes |
Oops, something went wrong.