|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openanzo.model.embedded.EmbeddedNotificationService
public class EmbeddedNotificationService
An Embedded version of the INotificationService which has a direct connection to the Anzo server.
| Constructor Summary | |
|---|---|
EmbeddedNotificationService(EmbeddedServiceBase baseService)
Get an instance of the EmbeddedNotificationService |
|
| Method Summary | |
|---|---|
void |
connect()
Connect to the Notification Server |
void |
disableNotification()
Disable notification |
void |
disconnect()
Disconnect from the Notification Server |
void |
enableNotification()
Enable notification |
static INotificationService |
getInstance(java.lang.Object parent,
java.util.Properties props)
Get an instance of the EmbeddedNotificationService |
java.lang.String |
getServicePassword()
Get the Password for the current thread |
java.lang.String |
getServiceUser()
Get the UserId for the current thread |
boolean |
isConnected()
Determine if the INotificationService is connected to the Notification Server |
boolean |
isNotificationEnabled()
Determine if if notification is enabled |
void |
registerNotificationListener(INotificationListener listener)
Register an INotificationListener with service |
void |
registerSelector(java.lang.String selector)
Register a message selector with NotificationServer |
void |
setServicePassword(java.lang.String password)
Set the password for the current thread's operations |
void |
setServiceUser(java.lang.String userId)
Set the UserID for the current thread's operations |
void |
setUsingNotification(boolean enableNotification)
Enable or disable notification |
void |
unregisterNotificationListener(INotificationListener listener)
Unregister an INotificationListener with service |
void |
unregisterSelector(java.lang.String selector)
Unregister a message selector from NotificationServer |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EmbeddedNotificationService(EmbeddedServiceBase baseService)
baseService - the base embedded service which this service is built upon| Method Detail |
|---|
public static INotificationService getInstance(java.lang.Object parent,
java.util.Properties props)
parent - The object creating this serviceprops - The configuration properties for this service
public void setUsingNotification(boolean enableNotification)
throws NotificationException
INotificationService
setUsingNotification in interface INotificationServiceenableNotification - state to set notification service
NotificationException - if enabling or disabling notification failspublic void connect()
INotificationService
connect in interface INotificationServicepublic void disableNotification()
public void disconnect()
INotificationService
disconnect in interface INotificationServicepublic void enableNotification()
public boolean isConnected()
INotificationService
isConnected in interface INotificationServicepublic boolean isNotificationEnabled()
INotificationService
isNotificationEnabled in interface INotificationServicepublic void registerNotificationListener(INotificationListener listener)
INotificationServiceINotificationListener with service
registerNotificationListener in interface INotificationServicelistener - to register
public void registerSelector(java.lang.String selector)
throws NotificationException
INotificationService
registerSelector in interface INotificationServiceselector - Message selector to register
NotificationException - if there was an error registering selector with the serverpublic void unregisterNotificationListener(INotificationListener listener)
INotificationServiceINotificationListener with service
unregisterNotificationListener in interface INotificationServicelistener - to unregister
public void unregisterSelector(java.lang.String selector)
throws NotificationException
INotificationService
unregisterSelector in interface INotificationServiceselector - Message selector to unregister
NotificationException - if there was an error unregistering selector from the serverpublic java.lang.String getServicePassword()
IService
getServicePassword in interface IServicepublic java.lang.String getServiceUser()
IService
getServiceUser in interface IServicepublic void setServicePassword(java.lang.String password)
IService
setServicePassword in interface IServicepassword - Password to use in current thread's operationspublic void setServiceUser(java.lang.String userId)
IService
setServiceUser in interface IServiceuserId - UserId to use in current thread's operations
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||