|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openanzo.services.NotificationProperties
public class NotificationProperties
Configuration properties for the INotificationService.
| Field Summary | |
|---|---|
static java.lang.String |
KEY_NOTIFICATION_CLASS
Key for property "org.openanzo.notification.notificationClass" Class name for implementation of INotificationService Server:The class name for the implementation of INotificationService that the server services will use in order to connect to the notification server. Client:The class name for the implementation of INotificationService that the client will use in order to connect to the notification server. Embedded:See client Examples: org.openanzo.services.impl.JMSNotificationService |
static java.lang.String |
KEY_NOTIFICATION_CONTROLQUEUE
Key for property "org.openanzo.notification.controlQueue" Queue name that control messages are passed over. |
static java.lang.String |
KEY_NOTIFICATION_ENABLED
Key for property "org.openanzo.notification.enabled" Should the notification the notification service be enabled Server:Should services be able to use notification messages to keep in synch. Client:Should the client connect to the notification server in order to retrieve update messages. Embedded:Should the client connect to the notification server in order to retrieve update messages.Note: A notification server will need to be running in order for an embedded client to connect to it, it does not provide its own notification server. Examples: Server:Should be true in most cases Client:true if the client is going to be using notifications Embedded:true if the client is going to be using notifications and there is notification server running |
static java.lang.String |
KEY_NOTIFICATION_HOST
Key for property "org.openanzo.notification.host" Hostname/IP Address or connection URL for the notification/jms server Server:The hostname/IP address or connection URL of the notification server for which the server services will use in order to connect to the notification server. Client:The hostname/IP Address or connection URL of the notification server for which the client will use in order to connect to the notification server. Embedded:See client Examples: Server:localhost,tcp://localhost or if running in the same JVM as the JMS server, vm://localhost Client:localhost or tcp://localhost Embedded:localhost or tcp://localhost |
static java.lang.String |
KEY_NOTIFICATION_JNDI_CONNECTIONFACTORY
Key for property "org.openanzo.notification.jndi.connectionFactoryName" JNDI lookup name for JMS connection factory.Note: Not currently used. |
static java.lang.String |
KEY_NOTIFICATION_JNDI_CONTROLQUEUE
Key for property "org.openanzo.notification.jndi.controlQueueName" JNDI lookup name for controlQueue. |
static java.lang.String |
KEY_NOTIFICATION_JNDI_UPDATEQUEUE
Key for property "org.openanzo.notification.jndi.updateQueueName" JNDI lookup name for updateQueue.Note: Not currently used. |
static java.lang.String |
KEY_NOTIFICATION_PASSWORD
Key for property "org.openanzo.notification.password" Password for notification/jms server. |
static java.lang.String |
KEY_NOTIFICATION_PORT
Key for property "org.openanzo.notification.port" Port for notification/jms server Server:The notification server's listening port that the server services will use in order to connect to the notification server. Client:The notification server's listening port that the client will use in order to connect to the notification server. Embedded:See client Examples: 61616 |
static java.lang.String |
KEY_NOTIFICATION_PROVIDER_CLASS
Key for property "org.openanzo.notification.jmsProviderClass" The Class name of the underlying JMS provider implementation that will be used to connect to the notification server. |
static java.lang.String |
KEY_NOTIFICATION_UPDATESQUEUE
Key for property "org.openanzo.notification.updatesQueue" Queue name that is used to update messages within the notification server. |
static java.lang.String |
KEY_NOTIFICATION_USER
Key for property "org.openanzo.notification.user" Login id for notification/jms server. |
| Constructor Summary | |
|---|---|
NotificationProperties()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
getControlQueue(java.util.Properties properties,
java.lang.String defaultValue)
Get KEY_NOTIFICATION_CONTROLQUEUE property from properties |
static boolean |
getEnabled(java.util.Properties properties,
boolean defaultValue)
Get KEY_NOTIFICATION_ENABLED property from properties |
static java.lang.String |
getHost(java.util.Properties properties,
java.lang.String defaultValue)
Get KEY_NOTIFICATION_HOST property from properties |
static java.lang.String |
getJmsProviderClass(java.util.Properties properties,
java.lang.String defaultValue)
Get KEY_NOTIFICATION_PROVIDER_CLASS property from properties |
static java.lang.String |
getJndiConnectionFactoryName(java.util.Properties properties,
java.lang.String defaultValue)
Get KEY_NOTIFICATION_JNDI_CONNECTIONFACTORY property from properties |
static java.lang.String |
getJndiControlQueueName(java.util.Properties properties,
java.lang.String defaultValue)
Get KEY_NOTIFICATION_JNDI_CONTROLQUEUE property from properties |
static java.lang.String |
getJndiUpdateQueueName(java.util.Properties properties,
java.lang.String defaultValue)
Get KEY_NOTIFICATION_JNDI_UPDATEQUEUE property from properties |
static java.lang.String |
getNotificationClass(java.util.Properties properties,
java.lang.String defaultValue)
Get KEY_NOTIFICATION_CLASS property from properties |
static java.lang.String |
getPassword(java.util.Properties properties,
java.lang.String defaultValue)
Get KEY_NOTIFICATION_PASSWORD property from properties |
static java.lang.String |
getPort(java.util.Properties properties,
java.lang.String defaultValue)
Get KEY_NOTIFICATION_PORT property from properties |
static java.lang.String |
getUpdatesQueue(java.util.Properties properties,
java.lang.String defaultValue)
Get KEY_NOTIFICATION_UPDATESQUEUE property from properties |
static java.lang.String |
getUser(java.util.Properties properties,
java.lang.String defaultValue)
Get KEY_NOTIFICATION_USER property from properties |
static void |
setControlQueue(java.util.Properties properties,
java.lang.String controlQueue)
Set KEY_NOTIFICATION_CONTROLQUEUE property to controlQueue in properties |
static void |
setEnabled(java.util.Properties properties,
boolean enabled)
Set KEY_NOTIFICATION_ENABLED property to enabled in properties |
static void |
setHost(java.util.Properties properties,
java.lang.String host)
Set KEY_NOTIFICATION_HOST property to host in properties |
static void |
setJmsProviderClass(java.util.Properties properties,
java.lang.String jmsProviderClass)
Set KEY_NOTIFICATION_PROVIDER_CLASS property to jmsProviderClass in properties |
static void |
setJndiConnectionFactoryName(java.util.Properties properties,
java.lang.String jndiConnectionFactoryName)
Set KEY_NOTIFICATION_JNDI_CONNECTIONFACTORY property to jndi.connectionFactoryName in properties |
static void |
setJndiControlQueueName(java.util.Properties properties,
java.lang.String jndiControlQueueName)
Set KEY_NOTIFICATION_JNDI_CONTROLQUEUE property to jndi.controlQueueName in properties |
static void |
setJndiUpdateQueueName(java.util.Properties properties,
java.lang.String jndiUpdateQueueName)
Set KEY_NOTIFICATION_JNDI_UPDATEQUEUE property to jndi.updateQueueName in properties |
static void |
setNotificationClass(java.util.Properties properties,
java.lang.String notificationClass)
Set KEY_NOTIFICATION_CLASS property to notificationClass in properties |
static void |
setPassword(java.util.Properties properties,
java.lang.String password)
Set KEY_NOTIFICATION_PASSWORD property to password in properties |
static void |
setPort(java.util.Properties properties,
java.lang.String port)
Set KEY_NOTIFICATION_PORT property to port in properties |
static void |
setUpdatesQueue(java.util.Properties properties,
java.lang.String updatesQueue)
Set KEY_NOTIFICATION_UPDATESQUEUE property to updatesQueue in properties |
static void |
setUser(java.util.Properties properties,
java.lang.String user)
Set KEY_NOTIFICATION_USER property to user in properties |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String KEY_NOTIFICATION_ENABLED
public static final java.lang.String KEY_NOTIFICATION_PROVIDER_CLASS
public static final java.lang.String KEY_NOTIFICATION_HOST
public static final java.lang.String KEY_NOTIFICATION_PORT
public static final java.lang.String KEY_NOTIFICATION_USER
public static final java.lang.String KEY_NOTIFICATION_PASSWORD
public static final java.lang.String KEY_NOTIFICATION_CLASS
public static final java.lang.String KEY_NOTIFICATION_CONTROLQUEUE
public static final java.lang.String KEY_NOTIFICATION_UPDATESQUEUE
public static final java.lang.String KEY_NOTIFICATION_JNDI_CONTROLQUEUE
public static final java.lang.String KEY_NOTIFICATION_JNDI_UPDATEQUEUE
public static final java.lang.String KEY_NOTIFICATION_JNDI_CONNECTIONFACTORY
| Constructor Detail |
|---|
public NotificationProperties()
| Method Detail |
|---|
public static boolean getEnabled(java.util.Properties properties,
boolean defaultValue)
KEY_NOTIFICATION_ENABLED property from properties
properties - containing configuration datadefaultValue - defaultValue for enabled
KEY_NOTIFICATION_ENABLEDor defaultValue if not present
public static void setEnabled(java.util.Properties properties,
boolean enabled)
KEY_NOTIFICATION_ENABLED property to enabled in properties
properties - containing configuration dataenabled - value for enabled
public static java.lang.String getJmsProviderClass(java.util.Properties properties,
java.lang.String defaultValue)
KEY_NOTIFICATION_PROVIDER_CLASS property from properties
properties - containing configuration datadefaultValue - defaultValue for jmsProviderClass
KEY_NOTIFICATION_PROVIDER_CLASSor defaultValue if not present
public static void setJmsProviderClass(java.util.Properties properties,
java.lang.String jmsProviderClass)
KEY_NOTIFICATION_PROVIDER_CLASS property to jmsProviderClass in properties
properties - containing configuration datajmsProviderClass - value for jmsProviderClass
public static java.lang.String getHost(java.util.Properties properties,
java.lang.String defaultValue)
KEY_NOTIFICATION_HOST property from properties
properties - containing configuration datadefaultValue - defaultValue for host
KEY_NOTIFICATION_HOSTor defaultValue if not present
public static void setHost(java.util.Properties properties,
java.lang.String host)
KEY_NOTIFICATION_HOST property to host in properties
properties - containing configuration datahost - value for host
public static java.lang.String getPort(java.util.Properties properties,
java.lang.String defaultValue)
KEY_NOTIFICATION_PORT property from properties
properties - containing configuration datadefaultValue - defaultValue for port
KEY_NOTIFICATION_PORTor defaultValue if not present
public static void setPort(java.util.Properties properties,
java.lang.String port)
KEY_NOTIFICATION_PORT property to port in properties
properties - containing configuration dataport - value for port
public static java.lang.String getUser(java.util.Properties properties,
java.lang.String defaultValue)
KEY_NOTIFICATION_USER property from properties
properties - containing configuration datadefaultValue - defaultValue for user
KEY_NOTIFICATION_USERor defaultValue if not present
public static void setUser(java.util.Properties properties,
java.lang.String user)
KEY_NOTIFICATION_USER property to user in properties
properties - containing configuration datauser - value for user
public static java.lang.String getPassword(java.util.Properties properties,
java.lang.String defaultValue)
KEY_NOTIFICATION_PASSWORD property from properties
properties - containing configuration datadefaultValue - defaultValue for password
KEY_NOTIFICATION_PASSWORDor defaultValue if not present
public static void setPassword(java.util.Properties properties,
java.lang.String password)
KEY_NOTIFICATION_PASSWORD property to password in properties
properties - containing configuration datapassword - value for password
public static java.lang.String getNotificationClass(java.util.Properties properties,
java.lang.String defaultValue)
KEY_NOTIFICATION_CLASS property from properties
properties - containing configuration datadefaultValue - defaultValue for notificationClass
KEY_NOTIFICATION_CLASSor defaultValue if not present
public static void setNotificationClass(java.util.Properties properties,
java.lang.String notificationClass)
KEY_NOTIFICATION_CLASS property to notificationClass in properties
properties - containing configuration datanotificationClass - value for notificationClass
public static java.lang.String getControlQueue(java.util.Properties properties,
java.lang.String defaultValue)
KEY_NOTIFICATION_CONTROLQUEUE property from properties
properties - containing configuration datadefaultValue - defaultValue for controlQueue
KEY_NOTIFICATION_CONTROLQUEUEor defaultValue if not present
public static void setControlQueue(java.util.Properties properties,
java.lang.String controlQueue)
KEY_NOTIFICATION_CONTROLQUEUE property to controlQueue in properties
properties - containing configuration datacontrolQueue - value for controlQueue
public static java.lang.String getUpdatesQueue(java.util.Properties properties,
java.lang.String defaultValue)
KEY_NOTIFICATION_UPDATESQUEUE property from properties
properties - containing configuration datadefaultValue - defaultValue for updatesQueue
KEY_NOTIFICATION_UPDATESQUEUEor defaultValue if not present
public static void setUpdatesQueue(java.util.Properties properties,
java.lang.String updatesQueue)
KEY_NOTIFICATION_UPDATESQUEUE property to updatesQueue in properties
properties - containing configuration dataupdatesQueue - value for updatesQueue
public static java.lang.String getJndiControlQueueName(java.util.Properties properties,
java.lang.String defaultValue)
KEY_NOTIFICATION_JNDI_CONTROLQUEUE property from properties
properties - containing configuration datadefaultValue - defaultValue for jndi.controlQueueName
KEY_NOTIFICATION_JNDI_CONTROLQUEUEor defaultValue if not present
public static void setJndiControlQueueName(java.util.Properties properties,
java.lang.String jndiControlQueueName)
KEY_NOTIFICATION_JNDI_CONTROLQUEUE property to jndi.controlQueueName in properties
properties - containing configuration datajndiControlQueueName - value for jndi.controlQueueName
public static java.lang.String getJndiUpdateQueueName(java.util.Properties properties,
java.lang.String defaultValue)
KEY_NOTIFICATION_JNDI_UPDATEQUEUE property from properties
properties - containing configuration datadefaultValue - defaultValue for jndi.updateQueueName
KEY_NOTIFICATION_JNDI_UPDATEQUEUEor defaultValue if not present
public static void setJndiUpdateQueueName(java.util.Properties properties,
java.lang.String jndiUpdateQueueName)
KEY_NOTIFICATION_JNDI_UPDATEQUEUE property to jndi.updateQueueName in properties
properties - containing configuration datajndiUpdateQueueName - value for jndi.updateQueueName
public static java.lang.String getJndiConnectionFactoryName(java.util.Properties properties,
java.lang.String defaultValue)
KEY_NOTIFICATION_JNDI_CONNECTIONFACTORY property from properties
properties - containing configuration datadefaultValue - defaultValue for jndi.connectionFactoryName
KEY_NOTIFICATION_JNDI_CONNECTIONFACTORYor defaultValue if not present
public static void setJndiConnectionFactoryName(java.util.Properties properties,
java.lang.String jndiConnectionFactoryName)
KEY_NOTIFICATION_JNDI_CONNECTIONFACTORY property to jndi.connectionFactoryName in properties
properties - containing configuration datajndiConnectionFactoryName - value for jndi.connectionFactoryName
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||