org.jdesktop.wonderland.server.wfs.exporter
Class CellExporter

java.lang.Object
  extended by org.jdesktop.wonderland.server.wfs.exporter.CellExporter
All Implemented Interfaces:
java.io.Serializable, CellExportManager.CellExportListener, CellExportManager.SnapshotCreationListener

public class CellExporter
extends java.lang.Object
implements java.io.Serializable, CellExportManager.SnapshotCreationListener, CellExportManager.CellExportListener

The CellImporter class is responsible for loading a WFS from the HTTP-based WFS service.

Author:
Jordan Slott
See Also:
Serialized Form

Constructor Summary
CellExporter()
          Default Constructor
 
Method Summary
 void export(java.lang.String name)
          Export all the cells in the current world to a snapshot with the given name.
 void exportResult(java.util.Map<CellID,CellExportManager.CellExportResult> results)
          Notification of the result of cell export
 void snapshotCreated(WorldRoot worldRoot)
          Notification that a snapshot has been created successfully
 void snapshotFailed(java.lang.String reason, java.lang.Throwable cause)
          Notification that snapshot creation has failed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CellExporter

public CellExporter()
Default Constructor

Method Detail

export

public void export(java.lang.String name)
Export all the cells in the current world to a snapshot with the given name. Use null to create a snapshot with a default name

Parameters:
name - the name or null

snapshotCreated

public void snapshotCreated(WorldRoot worldRoot)
Description copied from interface: CellExportManager.SnapshotCreationListener
Notification that a snapshot has been created successfully

Specified by:
snapshotCreated in interface CellExportManager.SnapshotCreationListener
Parameters:
worldRoot - the world root that was created

snapshotFailed

public void snapshotFailed(java.lang.String reason,
                           java.lang.Throwable cause)
Description copied from interface: CellExportManager.SnapshotCreationListener
Notification that snapshot creation has failed.

Specified by:
snapshotFailed in interface CellExportManager.SnapshotCreationListener
Parameters:
reason - a String describing the reason for failure
cause - an exception that caused the failure.

exportResult

public void exportResult(java.util.Map<CellID,CellExportManager.CellExportResult> results)
Description copied from interface: CellExportManager.CellExportListener
Notification of the result of cell export

Specified by:
exportResult in interface CellExportManager.CellExportListener
Parameters:
results - a Map from CellIDs in the request to results for the export of that cell.


Open Wonderland - http://openwonderland.org