org.openanzo.services
Class NotificationListenerAdapter

java.lang.Object
  extended by org.openanzo.serialization.handlers.HandlerAdapter
      extended by org.openanzo.services.NotificationListenerAdapter
All Implemented Interfaces:
IRepositoryHandler, INotificationListener
Direct Known Subclasses:
AtomCacheEventListener, CacheEventListener, NotificationListener

public class NotificationListenerAdapter
extends HandlerAdapter
implements INotificationListener

Adapter that extends the RepositoryHandlerAdapter to add the callbacks from INotificationListener

Author:
Matthew Roy ( mroy@cambridgesemantics.com )

Field Summary
 
Fields inherited from interface org.openanzo.services.INotificationListener
CONNECTED, CONNECTIONFAILED, DISCONNECTED
 
Constructor Summary
NotificationListenerAdapter()
           
 
Method Summary
 void connectionStateChanged(int state)
          Event about the state of the INotificationService's connection to the NotificationServer
 void noticiationException(AnzoException exception)
          Exception was thrown within the INotificationService
 
Methods inherited from class org.openanzo.serialization.handlers.HandlerAdapter
handleAci, handleAcl, handleCommandEnd, handleCommandStart, handleEndDocument, handleError, handleNamedGraph, handleNode, handleReset, handleRole, handleStartDocument, handleStatement, handleSubRoleOf, handleTransactionEnd, handleTransactionStart, handleUser, handleUserInRole
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.openanzo.serialization.IRepositoryHandler
handleAci, handleAcl, handleCommandEnd, handleCommandStart, handleEndDocument, handleError, handleNamedGraph, handleNode, handleReset, handleRole, handleStartDocument, handleStatement, handleSubRoleOf, handleTransactionEnd, handleTransactionStart, handleUser, handleUserInRole
 

Constructor Detail

NotificationListenerAdapter

public NotificationListenerAdapter()
Method Detail

connectionStateChanged

public void connectionStateChanged(int state)
Description copied from interface: INotificationListener
Event about the state of the INotificationService's connection to the NotificationServer

Specified by:
connectionStateChanged in interface INotificationListener
Parameters:
state - current state of the connection
See Also:
INotificationListener.CONNECTED, INotificationListener.DISCONNECTED, INotificationListener.CONNECTIONFAILED

noticiationException

public void noticiationException(AnzoException exception)
Description copied from interface: INotificationListener
Exception was thrown within the INotificationService

Specified by:
noticiationException in interface INotificationListener
Parameters:
exception - which was thrown within the service


Copyright © 2007 Cambridge Semantics Inc.. All Rights Reserved.