Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Request
intCache ID: Java-style hash code of the cache name

 

Response
CacheConfigurationSee below

...

CacheConfiguration
intLength of the configuration, in bytes
intCacheAtomicityMode, TRANSACTIONAL = 0, ATOMIC = 1
intBackups
intCacheMode, LOCAL = 0, REPLICATED = 1, PARTITIONED = 2
boolCopyOnRead
stringDataRegionName
boolEagerTtl
boolStatisticsEnabled
stringGroupName
boolinvalidate
longDefaultLockTimeout (milliseconds)
intMaxConcurrentAsyncOperations
intMaxQueryIterators
stringName
boolIsOnheapcacheEnabled
intPartitionLossPolicy, READ_ONLY_SAFE = 0, READ_ONLY_ALL = 1, READ_WRITE_SAFE = 2, READ_WRITE_ALL = 3, IGNORE = 4
intQueryDetailMetricsSize
intQueryParallelism
boolReadFromBackup
intRebalanceBatchSize
longRebalanceBatchesPrefetchCount
longRebalanceDelay (milliseconds)
intRebalanceMode, SYNC = 0, ASYNC = 1, NONE = 2
intRebalanceOrder
longRebalanceThrottle (milliseconds)
longRebalanceTimeout (milliseconds)
boolSqlEscapeAll
intSqlIndexInlineMaxSize
stringSqlSchema
intWriteSynchronizationMode, FULL_SYNC = 0, FULL_ASYNC = 1, PRIMARY_SYNC = 2
intCacheKeyConfiguration count
CacheKeyConfiguration * count
CacheKeyConfiguration
stringType name
stringAffinity key field name
intQueryEntity count
QueryEntity * count
QueryEntity
stringKey type name
stringValue type name
stringTable name
stringKey field name
stringValue field name
intQueryField count
QueryField * count
QueryField
stringName
stringType name
boolIs key field
boolIs NotNull constraint field
intAlias count
(string + string) * countField name aliases
intQueryIndex count
QueryIndex * count
QueryIndex
stringIndex name
byteIndex type, SORTED = 0, FULLTEXT = 1, GEOSPATIAL = 2
intInline size
intField count
(string + bool) * countFields (name + IsDescensing)


 

OP_CACHE_CREATE_WITH_CONFIGURATION = 34

 

Creates cache with provided configuration. Throws an exception if the name is already in use.

 

Request
CacheConfigurationCache config (see format above)

Empty response.


 

OP_CACHE_GET_OR_CREATE_WITH_CONFIGURATION = 35

 

Creates cache with provided configuration. Does nothing if the name is already in use. 

 

Request
CacheConfigurationCache config (see format above)

 

Empty response.

 



 

OP_QUERY_SQL = 36

 

Performs SQL query.

 

Request
intCache ID: Java-style hash code of the cache name
stringQuery entity type name
stringSQL
intArgument count
BinaryObject * countArguments
boolDistributed joins
boolLocal query
boolReplicated only
intCursor page size
longTimeout (milliseconds)

Response includes first page of results. If entire result set fits into the response, query cursor is closed automatically.

Response
longCursor id
intRow count for the first page
(Object + Object) * countCache entries, key + value
boolIndicates whether more results are available to be fetched with OP_QUERY_SQL_CURSOR_GET_PAGE




TODO: Other operations

Message Exchange Example

...