org.openanzo.services.impl
Class NotificationListenerConnection

java.lang.Object
  extended by org.openanzo.services.impl.NotificationListenerConnection
Direct Known Subclasses:
AuthenticationProvider

public class NotificationListenerConnection
extends java.lang.Object

Author:
Matthew Roy ( mroy@cambridgesemantics.com )

Constructor Summary
NotificationListenerConnection(java.util.Properties properties)
          Create new NotificationListenerConnection with given configuration properties
 
Method Summary
 void close()
          Close the connection to the notification server
 void connect()
          Connect to the notification server
 JMSNotificationService getNotificationService()
          Get the notification service for this connection
 boolean isConnected()
          Determine if connected to the notification server
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NotificationListenerConnection

public NotificationListenerConnection(java.util.Properties properties)
Create new NotificationListenerConnection with given configuration properties

Parameters:
properties - Configuration properties used to create service
Method Detail

getNotificationService

public JMSNotificationService getNotificationService()
Get the notification service for this connection

Returns:
the notification service for this connection

connect

public void connect()
Connect to the notification server


close

public void close()
           throws AnzoException
Close the connection to the notification server

Throws:
AnzoException - if there was an error disconnecting

isConnected

public boolean isConnected()
Determine if connected to the notification server

Returns:
true if connected to the notification server


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