1 Grid
Class Ax.Grid
A DBStudio database grid is a collection of databases. Each database can be located in any database server.
Constructor Summary
Method
Description
JSGrid(Ax.text.String name)
Creates a new grid instance given the nme of an available grid.
Method Summary
Modifier and Type
Method
Description
execute(Ax.text.String sql)
execute(Ax.text.String source,Ax.text.String reduce)
executeQuery(Ax.text.String sql)
executeQuery(Ax.text.String source,Ax.text.String reduce)
double
Ax.text.String
Returns the hashing algorithm the grid is using.
Ax.text.String
getNodeOf(Ax.text.String key)
Ax.text.String
getRing()
Returns the "ring" of the consistent hash as a ResultSet.
Ax.text.String
list()
Returns the list of available grids.
Ax.Grid
setTimeout(int timeout)
Sets the grid timeout.
warmUp()
You can warm up a grid to ensure database pols have fresh active connections ready to be used.
Constructor Detail
Ax.Grid.JSGrid
-
Ax.Grid.JSGrid( string name )
- Info:
-
Creates a new grid instance given the nme of an available grid. - Parameters:
- name - name of an available grid
Method Detail
Ax.Grid.execute
-
object Ax.Grid.execute( string sql )
- Parameters:
- sql -
- Returns:
- object
Ax.Grid.execute
-
object Ax.Grid.execute( string source, string reduce )
- Parameters:
- source -
- reduce -
- Returns:
- object
Ax.Grid.executeQuery
-
resultset Ax.Grid.executeQuery( string sql )
- Parameters:
- sql -
- Returns:
- resultset
Ax.Grid.executeQuery
-
resultset Ax.Grid.executeQuery( string source, string reduce )
- Parameters:
- source -
- reduce -
- Returns:
- resultset
Ax.Grid.getAccuracy
-
double Ax.Grid.getAccuracy()
- Returns:
- double
Ax.Grid.getAlgorithm
-
string Ax.Grid.getAlgorithm()
- Info:
-
Returns the hashing algorithm the grid is using. - Returns:
- string
Ax.Grid.getNodeOf
-
string Ax.Grid.getNodeOf( string key )
- Parameters:
- key -
- Returns:
- string
Ax.Grid.getNodeOf
-
string Ax.Grid.getNodeOf( object[] key )
- Parameters:
- key -
- Returns:
- string
Ax.Grid.getRing
-
resultset Ax.Grid.getRing()
- Info:
-
Returns the "ring" of the consistent hash as a ResultSet. - Returns:
- resultset
Ax.Grid.getStatistics
-
resultset Ax.Grid.getStatistics()
- Returns:
- resultset
Ax.Grid.getTempTable
-
string Ax.Grid.getTempTable()
- Returns:
- string
Ax.Grid.list
-
array Ax.Grid.list()
- Info:
-
Returns the list of available grids. - Returns:
- array
Ax.Grid.setTimeout
-
object Ax.Grid.setTimeout( smallint timeout )
- Info:
-
Sets the grid timeout. - Parameters:
- timeout - the timeout in seconds
- Returns:
- object
Ax.Grid.warmUp
-
resultset Ax.Grid.warmUp()
- Info:
-
You can warm up a grid to ensure database pols have fresh active connections ready to be used. It can also lets you know all nodes are operational. Returns a ResultSet. - Returns:
- resultset