i3.dragos.gm.core.event
Class GraphPoolEvent

java.lang.Object
  extended by java.util.EventObject
      extended by i3.dragos.core.services.events.DragosEvent
          extended by i3.dragos.gm.core.event.GraphPoolEvent
All Implemented Interfaces:
java.io.Serializable

public class GraphPoolEvent
extends DragosEvent

A GraphPoolEvent is triggered for graph pool related actions such as opening, closing, or deleting a graph pool. The source of this event is the DataSourceURL, not the GraphPool, because GraphPool is not Serializable.

Author:
Boris Boehlen <boehlen@cs.rwth-aachen.de>, Thorsten Hermes <thermes@i3.informatik.rwth-aachen.de>
See Also:
Serialized Form

Field Summary
static int CLOSE
          Event type constant: Identifies that a graph pool has been closed.
static int CREATE
          Event type constant: Identifies the creation of a graph pool.
static int DATA_CLEAR
          Event type constant: Identifies that the graph pool content has been cleared.
static int DESTROY
          Event type constant: Identifies the destruction of a graph pool.
static int OPEN
          Event type constant: Identifies that a graph pool has been opened.
static int SCHEMA_CLEAR
          Event type constant: Identifies that the graph pool schema has been cleared.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
GraphPoolEvent(DataSourceURL dataSourceURL, int eventType)
          Constructs a new event.
 
Method Summary
 DataSourceURL getDataSourceURL()
          Returns the datasource URL of the affected graph pool.
 
Methods inherited from class i3.dragos.core.services.events.DragosEvent
getEventClass, getEventType, toString
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CREATE

public static final int CREATE
Event type constant: Identifies the creation of a graph pool.

See Also:
Constant Field Values

OPEN

public static final int OPEN
Event type constant: Identifies that a graph pool has been opened.

See Also:
Constant Field Values

CLOSE

public static final int CLOSE
Event type constant: Identifies that a graph pool has been closed.

See Also:
Constant Field Values

DESTROY

public static final int DESTROY
Event type constant: Identifies the destruction of a graph pool.

See Also:
Constant Field Values

DATA_CLEAR

public static final int DATA_CLEAR
Event type constant: Identifies that the graph pool content has been cleared.

See Also:
Constant Field Values

SCHEMA_CLEAR

public static final int SCHEMA_CLEAR
Event type constant: Identifies that the graph pool schema has been cleared.

See Also:
Constant Field Values
Constructor Detail

GraphPoolEvent

public GraphPoolEvent(DataSourceURL dataSourceURL,
                      int eventType)
Constructs a new event.

Parameters:
dataSourceURL - The data source URL of the pool.
eventType - The type of event.
Method Detail

getDataSourceURL

public final DataSourceURL getDataSourceURL()
Returns the datasource URL of the affected graph pool. This is just a convenience to avoid casting the result of getSource().

Returns:
the datasource URL of the affected graph pool.


Copyright © 2002-2008 RWTH Aachen, Department of Computer Science 3 (Software Engineering). All Rights Reserved.