NASA World Wind

gov.nasa.worldwind.event
Class BulkRetrievalEvent

java.lang.Object
  extended by java.util.EventObject
      extended by gov.nasa.worldwind.event.WWEvent
          extended by gov.nasa.worldwind.event.BulkRetrievalEvent
All Implemented Interfaces:
Serializable

public class BulkRetrievalEvent
extends WWEvent

Notifies of bulk retrieval events.

See Also:
BulkRetrievable, Serialized Form

Field Summary
protected  String eventType
           
protected  String item
           
static String RETRIEVAL_FAILED
          Constant indicating retrieval failure.
static String RETRIEVAL_SUCCEEDED
          Constant indicating retrieval success.
 
Fields inherited from class gov.nasa.worldwind.event.WWEvent
consumed
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
BulkRetrievalEvent(BulkRetrievable source, String eventType, String item)
          Creates a new event.
 
Method Summary
 String getEventType()
          Returns the event type, one of RETRIEVAL_SUCCEEDED or RETRIEVAL_FAILED.
 String getItem()
          Returns the filestore location of the item whose retrieval succeeded or failed.
 BulkRetrievable getSource()
          Returns the event source.
 
Methods inherited from class gov.nasa.worldwind.event.WWEvent
consume, isConsumed
 
Methods inherited from class java.util.EventObject
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

eventType

protected String eventType

item

protected String item

RETRIEVAL_FAILED

public static String RETRIEVAL_FAILED
Constant indicating retrieval failure.


RETRIEVAL_SUCCEEDED

public static String RETRIEVAL_SUCCEEDED
Constant indicating retrieval success.

Constructor Detail

BulkRetrievalEvent

public BulkRetrievalEvent(BulkRetrievable source,
                          String eventType,
                          String item)
Creates a new event.

Parameters:
source - the event source, typically either a tiled image layer, elevation model or placename layer.
eventType - indicates success or failure. One of RETRIEVAL_SUCCEEDED or RETRIEVAL_FAILED.
item - the cache location of the item whose retrieval succeeded or failed.
See Also:
BulkRetrievable
Method Detail

getEventType

public String getEventType()
Returns the event type, one of RETRIEVAL_SUCCEEDED or RETRIEVAL_FAILED.

Returns:
the event type.

getItem

public String getItem()
Returns the filestore location of the item whose retrieval succeeded or failed.

Returns:
the filestore location of the item.

getSource

public BulkRetrievable getSource()
Returns the event source.

Overrides:
getSource in class EventObject
Returns:
the event source, typically either a tiled image layer, elevation model or placename layer.
See Also:
BulkRetrievable

NASA World Wind