info.aduna.gee.publication.net
Interface IOListener

All Known Implementing Classes:
InputHandler, Navigator, OutputHandler

public interface IOListener

Listener interface for receiving store updates. Updates partly apply to explicit store requests and partly to the state of the database which is stored among multiple ZPad components (i.e. Transport Applet, Cover Applet etc...).


Field Summary
static int CACHE_UPDATE
          The cache has been updated
static int LOGIN_ADDED
          A new identity has been verified
static int PASSWORD_ERROR
          A previously valid password now failed
static int QUEUE_UPDATE
          The queue has been updated
static int SHOW_OBJECT
          Show a particular object
static int STORE_DONE
          Your store request has finished
static int STORE_STARTED
          The store you requested has been started
 
Method Summary
 void ioStateChanged(WURL location, int info, String filename, Object arg)
          Called when there is info about how a store request is proceeding or about the state of an object in cache.
 void onException(WURL location, Exception e, String filename)
          Called when the store requested encountered an io exception.
 

Field Detail

STORE_STARTED

static final int STORE_STARTED
The store you requested has been started

See Also:
Constant Field Values

STORE_DONE

static final int STORE_DONE
Your store request has finished

See Also:
Constant Field Values

CACHE_UPDATE

static final int CACHE_UPDATE
The cache has been updated

See Also:
Constant Field Values

QUEUE_UPDATE

static final int QUEUE_UPDATE
The queue has been updated

See Also:
Constant Field Values

SHOW_OBJECT

static final int SHOW_OBJECT
Show a particular object

See Also:
Constant Field Values

PASSWORD_ERROR

static final int PASSWORD_ERROR
A previously valid password now failed

See Also:
Constant Field Values

LOGIN_ADDED

static final int LOGIN_ADDED
A new identity has been verified

See Also:
Constant Field Values
Method Detail

ioStateChanged

void ioStateChanged(WURL location,
                    int info,
                    String filename,
                    Object arg)
Called when there is info about how a store request is proceeding or about the state of an object in cache.

Parameters:
location - the location
info - one of the constants listed below.
filename - the name of the file the info is about.
arg - an optional argument that (e.g.) contains extra information

onException

void onException(WURL location,
                 Exception e,
                 String filename)
Called when the store requested encountered an io exception.

Parameters:
location - the location
e - the encountered exception.
filename - the name of the file the info is about.


Copyright © 1997-2008 Aduna. All Rights Reserved.