Index - All Packages - All Categories - All Classes

Class IDSpace

A space of IDs, which can generate globally unique IDs.

Implementation note:
myBackend - the identifier of the Server which generated this space. If nil, then it was generated by the current Server (unless mySpaceNumber is -1, in which case it is the single global IDSpace shared by all Servers.
mySpaceNumber - identifies which space this is. If -1, then it is the global ID space, and myBackend must be nil.

Package: Udanax-Gold
All Superclasses: Object Heaper CoordinateSpace
Protocols: Object
Categories: Xanadu-Spaces-Unordered

Class Methods

global

Return the global ID space.

iDFilterSpace

The coordinate space of filters on IDRegions.

import: data

Essential. Take some information describing an IDSpace and create the IDSpace it was exported from.

infostProtocol



Overrides: CoordinateSpace class

make: identifier with: number


make: identifier with: number with: counter


makeRcvr: rcvr


openIDFilter


unique

Essential. Create a new globally unique space of IDs

Instance Methods

actualHashForEqual



Overrides: CoordinateSpace

backend

Essential. The Server which created this IDSpace

create: backend with: number with: counter



Overrides: CoordinateSpace

export

Essential. Produce an array which can be handed to Server::importIDSpace on any Server to get back the same IDSpace

fetchBackend


fetchIDSpace

nil if this is the global IDSpace, self otherwise

finishCreation


identifier

A Sequence uniquely identifying this IDSpace, so that
FeServer::current ()->oldIDSpace (this->identifier ())
->isEqual (this)

iDsFromServer: identifier

Essential. The Region of IDs in this space which might be genrated by the given Server

isEqual: other



Overrides: CoordinateSpace

newID

Essential. A new ID guaranteed to be different from every other newID generated by this IDSpace or any IDSpace isEqual to it, on any Server. (Although of course IDs generated using this->oldID () may conflict if the right numbers happen to have been supplied.)

newIDs: count

A region containing a finite number of globally unique IDs. See newID for uniqueness guarantees.

oldID: identifier

Recreate an ID from its identifier.

oldIDs: backend with: numbers

Recreate a region of IDs from information that was stored outside the Server

printOn: oo



Overrides: Object

sendIDSpaceTo: xmtr


sendSelfTo: xmtr


spaceNumber

Essential. Identifies this particular space among all those generated by the same Server.


Index - All Packages - All Categories - All Classes