|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.globus.wsrf.NotificationConsumerManager
| Field Summary | |
protected java.util.Map |
consumers
|
private static org.globus.util.I18n |
i18n
|
private static org.apache.commons.logging.Log |
logger
|
protected NotificationConsumerHome |
notificationConsumerHome
|
| Constructor Summary | |
protected |
NotificationConsumerManager()
|
| Method Summary | |
org.apache.axis.message.addressing.EndpointReferenceType |
createNotificationConsumer()
Create a notification consumer resource with no registered callbacks (incoming notifications will be ignored unless you manually register callbacks). |
org.apache.axis.message.addressing.EndpointReferenceType |
createNotificationConsumer(java.util.List[] topicPaths,
NotifyCallback[] callbacks)
Create a notification consumer resource with the given callbacks. |
org.apache.axis.message.addressing.EndpointReferenceType |
createNotificationConsumer(java.util.List[] topicPaths,
NotifyCallback[] callbacks,
ResourceSecurityDescriptor desc)
Create a notification consumer resource with the given parameters. |
org.apache.axis.message.addressing.EndpointReferenceType |
createNotificationConsumer(java.util.List topicPath,
NotifyCallback callback)
Create a notification consumer resource with the given callback. |
org.apache.axis.message.addressing.EndpointReferenceType |
createNotificationConsumer(java.util.List topicPath,
NotifyCallback callback,
ResourceSecurityDescriptor desc)
Create a notification consumer resource with the given callback. |
org.apache.axis.message.addressing.EndpointReferenceType |
createNotificationConsumer(NotifyCallback callback)
Create a notification consumer resource with the given callback. |
org.apache.axis.message.addressing.EndpointReferenceType |
createNotificationConsumer(NotifyCallback callback,
ResourceSecurityDescriptor desc)
Create a notification consumer resource with the given callback. |
static NotificationConsumerManager |
getInstance()
Returns an instance of NotificationConsumerManager. |
static NotificationConsumerManager |
getInstance(java.util.Map properties)
Returns an instance of NotificationConsumerManager. |
private ResourceKey |
getKey(org.apache.axis.message.addressing.EndpointReferenceType consumerEndpointReference)
|
NotificationConsumerCallbackManager |
getNotificationConsumerCallbackManager(org.apache.axis.message.addressing.EndpointReferenceType consumerEndpointReference)
Get the callback manager for a given notification consumer endpoint reference |
protected java.lang.String |
getNotificationConsumerServiceName()
Get the name of the default notification consumer service |
abstract java.net.URL |
getURL()
Returns the base URL of the container in which the notification consumer service is running in. |
protected void |
initializeConsumerHome()
|
abstract boolean |
isListening()
Is the notification consumer service started? |
private static boolean |
isServerSide()
|
void |
removeNotificationConsumer(org.apache.axis.message.addressing.EndpointReferenceType consumerEndpointReference)
Destroy a notification consumer resource |
protected void |
removeNotificationConsumers()
Removes all notification consumer resources associated with this NotificationConsumerManager. |
abstract void |
startListening()
Start the notification consumer service |
abstract void |
stopListening()
Stop the notification consumer service |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static org.apache.commons.logging.Log logger
private static org.globus.util.I18n i18n
protected NotificationConsumerHome notificationConsumerHome
protected java.util.Map consumers
| Constructor Detail |
protected NotificationConsumerManager()
| Method Detail |
public static NotificationConsumerManager getInstance()
NotificationConsumerManager.
public static NotificationConsumerManager getInstance(java.util.Map properties)
NotificationConsumerManager.
private static boolean isServerSide()
protected void initializeConsumerHome()
throws ContainerException
ContainerException
public abstract void startListening()
throws ContainerException
ContainerException
public abstract void stopListening()
throws ContainerException
ContainerExceptionpublic abstract boolean isListening()
public abstract java.net.URL getURL()
public org.apache.axis.message.addressing.EndpointReferenceType createNotificationConsumer(java.util.List[] topicPaths,
NotifyCallback[] callbacks)
throws ResourceException
topicPaths - A array of concrete topic pathscallbacks - A array of callbacks corresponding to the topics in the
topic path array. A individual callback will be called
when the notification consumer services receives a
notification message on the topic corresponding to the
callback.
ResourceException
public org.apache.axis.message.addressing.EndpointReferenceType createNotificationConsumer(java.util.List[] topicPaths,
NotifyCallback[] callbacks,
ResourceSecurityDescriptor desc)
throws ResourceException
topicPaths - A array of concrete topic pathscallbacks - A array of callbacks corresponding to the topics in the
topic path array. A individual callback will be called
when the notification consumer services receives a
notification message on the topic corresponding to the
callback.desc - The resource security descriptor to set on the created
notification consumer resource.
ResourceException
public org.apache.axis.message.addressing.EndpointReferenceType createNotificationConsumer(NotifyCallback callback)
throws ResourceException
callback - The callback to be called for incoming notifications
ResourceException
public org.apache.axis.message.addressing.EndpointReferenceType createNotificationConsumer(NotifyCallback callback,
ResourceSecurityDescriptor desc)
throws ResourceException
callback - The callback to call upon receipt of a notification on
the aboce topicdesc - The resource security descriptor to set on the created
notification consumer resource.
ResourceException
public org.apache.axis.message.addressing.EndpointReferenceType createNotificationConsumer(java.util.List topicPath,
NotifyCallback callback)
throws ResourceException
topicPath - The concrete topic for which the callback will be
calledcallback - The callback to call upon receipt of a notification on
the aboce topic
ResourceException
public org.apache.axis.message.addressing.EndpointReferenceType createNotificationConsumer(java.util.List topicPath,
NotifyCallback callback,
ResourceSecurityDescriptor desc)
throws ResourceException
topicPath - The concrete topic for which the callback will be
calledcallback - The callback to call upon receipt of a notification on
the aboce topicdesc - The resource security descriptor to set on the created
notification consumer resource.
ResourceException
public org.apache.axis.message.addressing.EndpointReferenceType createNotificationConsumer()
throws ResourceException
ResourceException
private ResourceKey getKey(org.apache.axis.message.addressing.EndpointReferenceType consumerEndpointReference)
throws InvalidResourceKeyException
InvalidResourceKeyException
public NotificationConsumerCallbackManager getNotificationConsumerCallbackManager(org.apache.axis.message.addressing.EndpointReferenceType consumerEndpointReference)
throws ResourceException
consumerEndpointReference - The EPR for which to retrieve the
callback manager
ResourceException
public void removeNotificationConsumer(org.apache.axis.message.addressing.EndpointReferenceType consumerEndpointReference)
throws ResourceException
consumerEndpointReference - The endpoint reference of the resource
to remove
ResourceExceptionprotected java.lang.String getNotificationConsumerServiceName()
protected void removeNotificationConsumers()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||