|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tensegrity.palojava.http.handlers.HttpHandler
com.tensegrity.palojava.http.handlers.HttpCellHandler
public class HttpCellHandler
This HttpHandler
is used for dealing with requests concerning
palo Cell
s.
Constructor Summary | |
---|---|
HttpCellHandler(HttpClient client)
Creates a new HttpCellHandler instance. |
Method Summary | |
---|---|
java.lang.String |
getValue(java.lang.String dbName,
java.lang.String cubeName,
java.lang.String[] dims,
java.lang.String[] elPath)
Receives the value at the given cube cell. |
java.lang.String[] |
getValues(java.lang.String dbName,
java.lang.String cubeName,
java.lang.String[] dims,
java.lang.String[][] elPaths)
Receives the values of multiple given cube cells. |
boolean |
setData(java.lang.String dbName,
java.lang.String cubeName,
java.lang.String[] dims,
java.lang.String[] elNames,
double value,
int splashMode)
Sets the double value of the given cube cell. |
boolean |
setData(java.lang.String dbName,
java.lang.String cubeName,
java.lang.String[] dims,
java.lang.String[] elNames,
java.lang.String value,
int splashMode)
Sets the String value of the given cube cell. |
boolean |
setDataBulk(java.lang.String dbName,
java.lang.String cubeName,
java.lang.String[] dims,
java.lang.String[][] elNames,
java.lang.Object[] values,
int splashMode)
Sets the values of multiple cube cells. |
Methods inherited from class com.tensegrity.palojava.http.handlers.HttpHandler |
---|
setSID |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HttpCellHandler(HttpClient client)
HttpCellHandler
instance. Requires a
HttpClient
for delegating all requests to the connected
palo server.
client
- the connection to the palo serverMethod Detail |
---|
public final java.lang.String getValue(java.lang.String dbName, java.lang.String cubeName, java.lang.String[] dims, java.lang.String[] elPath) throws java.io.IOException
dbName
- a valid database namecubeName
- a valid cube namedims
- the dimension names of the cubeelPath
- the element names which determines the cube cell
java.io.IOException
- if an I/O exception occurspublic final java.lang.String[] getValues(java.lang.String dbName, java.lang.String cubeName, java.lang.String[] dims, java.lang.String[][] elPaths) throws java.io.IOException
dbName
- a valid database namecubeName
- a valid cube namedims
- the dimension names of the cubeelPath
- the element names which determines the cube cell
java.io.IOException
- if an I/O exception occurspublic final boolean setData(java.lang.String dbName, java.lang.String cubeName, java.lang.String[] dims, java.lang.String[] elNames, java.lang.String value, int splashMode) throws java.io.IOException
String
value of the given cube cell. The cell is
determined by the element names which has to be specified in the same
order as their dimensions are. In case of consolidated elements the
splash mode determines how the value is distributed among its children.
dbName
- a valid database namecubeName
- a valid cube namedims
- the dimension names of the cubeelNames
- the element names which determines the cube cellvalue
- the new cell String
valuesplashMode
- the splash mode, please refer to
IConnection
java.io.IOException
- if an I/O exception occurspublic final boolean setData(java.lang.String dbName, java.lang.String cubeName, java.lang.String[] dims, java.lang.String[] elNames, double value, int splashMode) throws java.io.IOException
double
value of the given cube cell. The cell is
determined by the element names which has to be specified in the same
order as their dimensions are. In case of consolidated elements the
splash mode determines how the value is distributed among its children.
dbName
- a valid database namecubeName
- a valid cube namedims
- the dimension names of the cubeelNames
- the element names which determines the cube cellvalue
- the new cell String
valuesplashMode
- the splash mode, please refer to
IConnection
java.io.IOException
- if an I/O exception occurspublic final boolean setDataBulk(java.lang.String dbName, java.lang.String cubeName, java.lang.String[] dims, java.lang.String[][] elNames, java.lang.Object[] values, int splashMode) throws java.io.IOException
dbName
- a valid database namecubeName
- a valid cube namedims
- the dimension names of the cubeelNames
- 2 dimensional array of element names which determines the cube cellsvalues
- the new cell valuessplashMode
- the splash mode, please refer to
IConnection
java.io.IOException
- if an I/O exception occurs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |