|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object mondrian.spi.impl.DataSourceChangeListenerImpl2
public class DataSourceChangeListenerImpl2
Default implementation of a data source change listener that always returns that the datasource is changed. A change listener can be specified in the connection string. It is used to ask what is changed in the datasource (e.g. database). Everytime mondrian has to decide whether it will use data from cache, it will call the change listener. When the change listener tells mondrian the datasource has changed for a dimension, cube, ... then mondrian will flush the cache and read from database again. It is specified in the connection string, like this:
Jdbc=jdbc:odbc:MondrianFoodMart; JdbcUser=ziggy; JdbcPassword=stardust; DataSourceChangeListener=com.acme.MyChangeListener;
This class should be called in mondrian before any data is read, so
even before cache is build. This way, the plugin is able to register
the first timestamp mondrian tries to read the datasource.
Constructor Summary | |
---|---|
DataSourceChangeListenerImpl2()
Creates a new instance of DataSourceChangeListenerImpl2 |
Method Summary | |
---|---|
String |
getTableName(RolapHierarchy hierarchy)
|
boolean |
isAggregationChanged(Aggregation aggregation)
Checks if the given aggregation has changed since the previous time this function was called. |
boolean |
isHierarchyChanged(RolapHierarchy hierarchy)
Checks if the given hierarchy has changed since the previous time this function was called. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DataSourceChangeListenerImpl2()
Method Detail |
---|
public boolean isHierarchyChanged(RolapHierarchy hierarchy)
DataSourceChangeListener
isHierarchyChanged
in interface DataSourceChangeListener
public boolean isAggregationChanged(Aggregation aggregation)
DataSourceChangeListener
isAggregationChanged
in interface DataSourceChangeListener
public String getTableName(RolapHierarchy hierarchy)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |