Core DataCloud namespace. Contains all the classes and methods related to building and interacting with the data cloud. Data cloud objects are shared among multiple consumers across the network and are kept synchronised by the Olympe Orchestrator. Subscribing to such an object will get you notifications when one of its properties changes.
The core classes in this namespace are:
See Introduction to the Data Cloud for an overview of these classes and how they interact with each other.
Classes
- BurstTransaction
- CloudObject
- DBView
- FileServiceManager
- GraphDef
- ListDef
- ListDefBuilder
- Manager
- Message
- ModelInfo
- ModuleInfo
- ProcessorCollection
- Reference
- Transaction
Namespaces
Members
-
<static> Config :string
-
DataCloud config
Type:
- string
Properties:
Name Type Default Description DEBUGstring dc.debug SUBSCRIBE_ALLstring dc.subscribeAll DEFAULT_SOURCEstring dc.defaultSource FILE_CACHEstring dc.fileCache ERROR_ABSTRACTstring dc.errorOnAbstractInstantiation -
<static> Direction :string
-
Relation directions. A direction is said to be 'left' or 'right' depending on whether it ends or originates from the object.
Example: If an object A as String as a model, the relation is depicted as follows:
A -[model]-> StringBoth A & String are connected via this relation, but it is a 'Right' relation for 'A' while it is a 'Left' relation for 'String'.
Type:
- string
Properties:
Name Type Default Description ORIGINstring < DESTINATIONstring > -
<static, readonly> GraphDefOperation :number
-
Operations on GraphDefs.
Type:
- number
Properties:
Name Type Default Description SUBSCRIBEnumber 0 Fetch data of the graphdef and subscribe to any update of it. Push the results in the local database.
PULLnumber 1 Fetch data and push it in the local database.
QUERYnumber 2 Fetch data but don't push to the local database.
SUBSCRIPTIONnumber 0 GETnumber 1 -
<static> InstanceProperty :string
-
Primitive hardcoded instance properties (that is properties that are not instances of "models.Property")
Type:
- string
Properties:
Name Type Default Description VERSIONstring @v SOURCEstring @s -
<static> InstancePropertyType :string
-
Instance special properties types
Type:
- string
Properties:
Name Type Default Description DEFAULTstring ? -
<static> RelationType :string
-
Primitive relation types.
Type:
- string
Properties:
Name Type Default Description MODELstring ff022000000000000000 EXTENDstring ff02200000000000000e CONTAINSstring ff02200000000000000f -
<static> SourceEvent :string
-
Source events.
Type:
- string
Properties:
Name Type Default Description ONLINEstring online OFFLINEstring offline INVALIDATEstring invalidate -
<static> SourceType :string
-
Source types.
Type:
- string
Properties:
Name Type Default Description SELFstring self SERVERstring server PEERstring peer DEFAULTstring server -
<static> Svc :string
-
DataCloud services
Type:
- string
Properties:
Name Type Default Description MANAGERstring dc.Manager GRAPHstring dc.Graph DBVIEWstring dc.DBView LOGGERstring dc.Logger TRANSACTION_LOGGERstring dc.TransactionLogger FILE_MANAGERstring dc.FileServiceManager ROUTERstring dc.Router -
<static> Sync
-
- Deprecated:
-
- Sync is now just an alias for CloudObject
Methods
-
<static> dbView()
-
Return the database view singleton to get data directly from the graph database.
Returns:
- Type
- olympe.dc.DBView
-
<static> defineInverseRelation(relation)
-
Define and return a new relation which is the same as the specified one with the opposite direction.
Parameters:
Name Type Description relationolympe.dc.registry.Relation Returns:
-
<static> defineProperty(tag, type)
-
Define and return a new property associated to the specified tag.
Parameters:
Name Type Description tagolympe.dc.Tag typefunction Returns:
-
<static> defineRelation(tag [, originOrDirection], destination [, direction])
-
Define and return a new relation associated to the specified tag, with the origin and destination types.
Parameters:
Name Type Argument Description tagolympe.dc.Tag originOrDirectionfunction | olympe.dc.Direction <optional>
destinationfunction directionolympe.dc.Direction <optional>
Returns:
-
<static> getDatabaseManager()
-
Returns:
-
<static> getFileManager()
-
Returns:
-
<static> getManager()
-
Returns:
- Type
- olympe.dc.Manager
-
<static> getQueryManager()
-
Returns:
-
<static> getSyncManager()
-
Returns:
-
<static> getTransactionManager()
-
Returns:
-
<static> instanceToTag(instanceOrConstructor)
-
Gets a tag from the specified InstanceTag or Sync constructor.
Parameters:
Name Type Description instanceOrConstructorolympe.dc.InstanceTag The instance, string or type.
Returns:
The tag, or an empty string if none found.
- Type
- string
-
<static> register(tag, ctr)
-
Register the specified constructor as the class associated to the tag.
Parameters:
Name Type Description tagolympe.dc.Tag ctrfunction
Type Definitions
-
InstanceTag
-
- Deprecated:
-
- Yes
-
<non-null> Tag()
-
Olympe SDK