|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.palo.api.ConnectionEvent
public class ConnectionEvent
ConnectionEvent
Every action which alters the data of the palo server triggers an event. Therefore this class defines constants for different event types which describe the performed modification.
Field Summary | |
---|---|
static int |
CONNECTION_EVENT_ATTRIBUTES_ADDED
Signals adding of attributes. |
static int |
CONNECTION_EVENT_ATTRIBUTES_CHANGED
Signals changing of attributes. |
static int |
CONNECTION_EVENT_ATTRIBUTES_REMOVED
Signals removing of attributes. |
static int |
CONNECTION_EVENT_CONSOLIDATIONS_ADDED
Signals adding of consolidations. |
static int |
CONNECTION_EVENT_CONSOLIDATIONS_REMOVED
Signals removing of consolidations. |
static int |
CONNECTION_EVENT_CUBES_ADDED
Signals adding of cubes. |
static int |
CONNECTION_EVENT_CUBES_REMOVED
Signals removing of cubes. |
static int |
CONNECTION_EVENT_CUBES_RENAMED
Signals renaming of cubes. |
static int |
CONNECTION_EVENT_DATABASES_ADDED
Signals adding of databases. |
static int |
CONNECTION_EVENT_DATABASES_REMOVED
Signals removing of databases. |
static int |
CONNECTION_EVENT_DIMENSIONS_ADDED
Signals adding of dimensions. |
static int |
CONNECTION_EVENT_DIMENSIONS_REMOVED
Signals removing of dimensions. |
static int |
CONNECTION_EVENT_DIMENSIONS_RENAMED
Signals renaming of dimensions. |
static int |
CONNECTION_EVENT_ELEMENTS_ADDED
Signals adding of elements. |
static int |
CONNECTION_EVENT_ELEMENTS_REMOVED
Signals removing of elements. |
static int |
CONNECTION_EVENT_ELEMENTS_RENAMED
Signals renaming of elements. |
static int |
CONNECTION_EVENT_ELEMENTS_TYPE_CHANGED
Signals changing of elements types. |
static int |
CONNECTION_EVENT_RULES_ADDED
|
static int |
CONNECTION_EVENT_RULES_CHANGED
|
static int |
CONNECTION_EVENT_RULES_REMOVED
|
static int |
CONNECTION_EVENT_SERVER_DOWN
Signals that the palo server is currently not available. |
static int |
CONNECTION_EVENT_SERVER_STRUCTURE_CHANGED
Signals a structural change within the palo server which is raised by an external application. |
java.lang.Object |
oldValue
A general data field which holds a value before the connection event occurred. |
Constructor Summary | |
---|---|
ConnectionEvent(Connection source,
java.lang.Object parent,
int type,
java.lang.Object[] items)
Constructs a new ConnectionEvent with the given properties. |
Method Summary | |
---|---|
Attribute[] |
getAttributes()
Returns the affected Attribute s of the event
if the event is applicable to attributes, otherwise
null is returned. |
Consolidation[] |
getConsolidation()
Returns the affected Consolidation s of the event
if the event is applicable to consolidations, otherwise
null is returned. |
Cube[] |
getCubes()
Returns the affected Cube s of the event
if the event is applicable to cubes, otherwise
null is returned. |
Database[] |
getDatabases()
Returns the affected Database s of the event
if the event is applicable to databases, otherwise
null is returned. |
Dimension[] |
getDimensions()
Returns the affected Dimension s of the event
if the event is applicable to dimensions, otherwise
null is returned. |
Element[] |
getElements()
Returns the affected Element s of the event
if the event is applicable to elements, otherwise
null is returned. |
java.lang.Object |
getParent()
Returns the parent domain object of the event. |
Rule[] |
getRules()
Returns the affected Rule s of the event
if the event is applicable to rules, otherwise
null is returned. |
Connection |
getSource()
Returns the source Connection of the event. |
int |
getType()
Returns the type of the event as defined by the constants in this class. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int CONNECTION_EVENT_DATABASES_ADDED
getDatabases()
to obtain the
affected Database
s
public static final int CONNECTION_EVENT_DATABASES_REMOVED
getDatabases()
to obtain the
affected Database
s
public static final int CONNECTION_EVENT_DIMENSIONS_ADDED
getDimensions()
to obtain the
affected Dimension
s
public static final int CONNECTION_EVENT_DIMENSIONS_REMOVED
getDimensions()
to obtain
the affected Dimension
s
public static final int CONNECTION_EVENT_DIMENSIONS_RENAMED
getDimensions()
to obtain
the affected Dimension
s
public static final int CONNECTION_EVENT_ELEMENTS_ADDED
getElements()
to obtain the
affected Element
s
public static final int CONNECTION_EVENT_ELEMENTS_REMOVED
getElements()
to obtain the
affected Element
s
public static final int CONNECTION_EVENT_ELEMENTS_RENAMED
getElements()
to obtain the
affected Element
s
public static final int CONNECTION_EVENT_ELEMENTS_TYPE_CHANGED
getElements()
to obtain
the affected Element
s
public static final int CONNECTION_EVENT_CUBES_ADDED
getCubes()
to obtain the affected
Cube
s
public static final int CONNECTION_EVENT_CUBES_REMOVED
getCubes()
to obtain the affected
Cube
s
public static final int CONNECTION_EVENT_CONSOLIDATIONS_ADDED
getConsolidation()
to
obtain the affected Consolidation
s
public static final int CONNECTION_EVENT_CONSOLIDATIONS_REMOVED
getConsolidation()
to
obtain the affected Consolidation
s
public static final int CONNECTION_EVENT_SERVER_STRUCTURE_CHANGED
Database
,
Dimension
, Cube
or
Element
are altered, e.g. by deleting, adding or
renaming. Changing the values of cube cells will not raise such an event.
NOTE: This event is neither raised on changes of subset definitions nor on changes of cube views content, because internally subsets and views are stored in cube cells and the changing of cube cells do not raise an event by definition.
public static final int CONNECTION_EVENT_SERVER_DOWN
public static final int CONNECTION_EVENT_ATTRIBUTES_ADDED
getAttributes()
to obtain the
affected Attribute
s
public static final int CONNECTION_EVENT_ATTRIBUTES_REMOVED
getAttributes()
to obtain
the affected Attribute
s
public static final int CONNECTION_EVENT_ATTRIBUTES_CHANGED
getAttributes()
to obtain
the affected Attribute
s
public static final int CONNECTION_EVENT_CUBES_RENAMED
getCubes()
to obtain the
affected Cube
s
public static final int CONNECTION_EVENT_RULES_ADDED
public static final int CONNECTION_EVENT_RULES_REMOVED
public static final int CONNECTION_EVENT_RULES_CHANGED
public java.lang.Object oldValue
Constructor Detail |
---|
public ConnectionEvent(Connection source, java.lang.Object parent, int type, java.lang.Object[] items)
ConnectionEvent
with the given properties.
source
- the source Connection
of the event.parent
- the parent domain object of the event.type
- the type of the event.items
- the affected domain objects.Method Detail |
---|
public Connection getSource()
Connection
of the event.
Connection
of the event.public java.lang.Object getParent()
public int getType()
public Database[] getDatabases()
Database
s of the event
if the event is applicable to databases, otherwise
null
is returned.
Database
s.public Dimension[] getDimensions()
Dimension
s of the event
if the event is applicable to dimensions, otherwise
null
is returned.
Dimension
s.public Element[] getElements()
Element
s of the event
if the event is applicable to elements, otherwise
null
is returned.
Element
s.public Attribute[] getAttributes()
Attribute
s of the event
if the event is applicable to attributes, otherwise
null
is returned.
Attribute
s.public Consolidation[] getConsolidation()
Consolidation
s of the event
if the event is applicable to consolidations, otherwise
null
is returned.
Consolidation
s.public Cube[] getCubes()
Cube
s of the event
if the event is applicable to cubes, otherwise
null
is returned.
Cube
s.public final Rule[] getRules()
Rule
s of the event
if the event is applicable to rules, otherwise
null
is returned.
Rule
s.public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |