|
||||||||||
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.HttpDatabaseHandler
public class HttpDatabaseHandler
This HttpHandler
is used for dealing with requests concerning
palo Database
s.
Constructor Summary | |
---|---|
HttpDatabaseHandler(HttpClient client)
Creates a new HttpDatabaseHandler instance. |
Method Summary | |
---|---|
java.lang.String |
createDatabase(java.lang.String name)
Creates a new Database on the Palo Server and returns the id of it |
boolean |
deleteDatabase(java.lang.String name)
Deletes the specified database |
void |
fillCubeCache(java.util.Map cache,
java.lang.String dbName)
Internal method to fill up the cube name-identifier mapper of the given database |
void |
fillDimensionCache(java.util.Map cache,
java.lang.String dbName)
Internal method to fill up the dimension name-identifier mapper of the given database |
java.lang.String[] |
getCubes(java.lang.String dbName)
Returns the names of the cubes the specified database contains |
java.lang.String[] |
getDimensions(java.lang.String dbName)
Returns the names of the dimensions the specified database contains |
java.lang.String[] |
getInfos(java.lang.String name)
Returns information about the specified database. |
java.util.Map |
getMap()
Returns the database name-identifier mapper |
boolean |
loadDatabase(java.lang.String name)
Loads the specified database |
boolean |
save(java.lang.String name)
Saves the specified database |
boolean |
unloadDatabase(java.lang.String name)
Unloads the specified database |
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 HttpDatabaseHandler(HttpClient client)
HttpDatabaseHandler
instance. Requires a
HttpClient
for delegating all requests to the connected
palo server.
client
- the connection to the palo serverMethod Detail |
---|
public final java.util.Map getMap()
public final java.lang.String[] getInfos(java.lang.String name) throws java.io.IOException
name
- a valid database name
String
array containing information about the
database
java.io.IOException
- if an I/O exception occurspublic final boolean save(java.lang.String name) throws java.io.IOException
name
- the name of the database
java.io.IOException
- if an I/O exception occurspublic final java.lang.String[] getDimensions(java.lang.String dbName) throws java.io.IOException
dbName
- a valid database name
String
array containing the dimension names
java.io.IOException
- if an I/O exception occurspublic final java.lang.String[] getCubes(java.lang.String dbName) throws java.io.IOException
dbName
- a valid database name
String
array containing the cube names
java.io.IOException
- if an I/O exception occurspublic final boolean loadDatabase(java.lang.String name) throws java.io.IOException
name
- the name of the database
java.io.IOException
- if an I/O exception occurspublic final boolean unloadDatabase(java.lang.String name) throws java.io.IOException
name
- the name of the database
java.io.IOException
- if an I/O exception occurspublic final java.lang.String createDatabase(java.lang.String name) throws java.io.IOException
name
- the name of the new database
java.io.IOException
- if an I/O exception occurspublic final boolean deleteDatabase(java.lang.String name) throws java.io.IOException
name
- the name of the database
java.io.IOException
- if an I/O exception occurspublic final void fillDimensionCache(java.util.Map cache, java.lang.String dbName) throws java.io.IOException
cache
- an element name-identifier mapdbName
- a valid database name
java.io.IOException
- if an I/O exception occurspublic final void fillCubeCache(java.util.Map cache, java.lang.String dbName) throws java.io.IOException
cache
- an element name-identifier mapdbName
- a valid database name
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 |