org.globus.wsrf.impl.notification
Class SubscriptionHome

java.lang.Object
  extended byorg.globus.wsrf.impl.ResourceHomeImpl
      extended byorg.globus.wsrf.impl.notification.SubscriptionHome
All Implemented Interfaces:
Initializable, ResourceHome

public class SubscriptionHome
extends ResourceHomeImpl


Nested Class Summary
 
Nested classes inherited from class org.globus.wsrf.impl.ResourceHomeImpl
 
Field Summary
private static org.globus.util.I18n i18n
           
private static org.apache.commons.logging.Log logger
           
private  java.lang.reflect.Constructor resourceConstructor
           
 
Fields inherited from class org.globus.wsrf.impl.ResourceHomeImpl
keyTypeClass, keyTypeName, lockManager, resourceClass, resources
 
Constructor Summary
SubscriptionHome()
           
 
Method Summary
 ResourceKey create(org.apache.axis.message.addressing.EndpointReferenceType consumerReference, org.apache.axis.message.addressing.EndpointReferenceType producerReference, java.util.Calendar initialTerminationTime, java.lang.Object subscriptionPolicy, QueryExpressionType precondition, QueryExpressionType selector, ResourceKey producerKey, java.lang.String producerHomeLocation, TopicExpressionType topicPathExpression, boolean useNotify, ClientSecurityDescriptor notificationSecurityDescriptor, ResourceSecurityDescriptor resourceSecurityDescriptor)
          Create a subscription resource
 ResourceKey create(org.apache.axis.message.addressing.EndpointReferenceType consumerReference, org.apache.axis.message.addressing.EndpointReferenceType producerReference, java.util.Calendar initialTerminationTime, java.lang.Object subscriptionPolicy, QueryExpressionType precondition, QueryExpressionType selector, ResourceKey producerKey, java.lang.String producerHomeLocation, TopicExpressionType topicPathExpression, boolean useNotify, ClientSecurityDescriptor notificationSecurityDescriptor, ResourceSecurityDescriptor resourceSecurityDescriptor, NotifyCallback callback)
          Create a subscription resource
protected  Subscription createSubscription(org.apache.axis.message.addressing.EndpointReferenceType consumerReference, org.apache.axis.message.addressing.EndpointReferenceType producerReference, java.util.Calendar initialTerminationTime, java.lang.Object subscriptionPolicy, QueryExpressionType precondition, QueryExpressionType selector, ResourceKey producerKey, java.lang.String producerHomeLocation, TopicExpressionType topicPathExpression, boolean useNotify, ClientSecurityDescriptor notificationSecurityDescriptor, ResourceSecurityDescriptor resourceSecurityDescriptor, NotifyCallback callback)
           
 void initialize()
           
 
Methods inherited from class org.globus.wsrf.impl.ResourceHomeImpl
add, createNewInstance, createNewInstanceAndLoad, find, getCacheLocation, getKeyTypeClass, getKeyTypeName, getResourceClass, getSweeperDelay, remove, setCacheLocation, setResourceClass, setResourceKeyName, setResourceKeyType, setSweeperDelay
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

private static org.apache.commons.logging.Log logger

i18n

private static org.globus.util.I18n i18n

resourceConstructor

private java.lang.reflect.Constructor resourceConstructor
Constructor Detail

SubscriptionHome

public SubscriptionHome()
Method Detail

initialize

public void initialize()
                throws java.lang.Exception
Specified by:
initialize in interface Initializable
Overrides:
initialize in class ResourceHomeImpl
Throws:
java.lang.Exception

create

public ResourceKey create(org.apache.axis.message.addressing.EndpointReferenceType consumerReference,
                          org.apache.axis.message.addressing.EndpointReferenceType producerReference,
                          java.util.Calendar initialTerminationTime,
                          java.lang.Object subscriptionPolicy,
                          QueryExpressionType precondition,
                          QueryExpressionType selector,
                          ResourceKey producerKey,
                          java.lang.String producerHomeLocation,
                          TopicExpressionType topicPathExpression,
                          boolean useNotify,
                          ClientSecurityDescriptor notificationSecurityDescriptor,
                          ResourceSecurityDescriptor resourceSecurityDescriptor)
                   throws SubscriptionCreationException
Create a subscription resource

Parameters:
consumerReference - The EPR of the notification consumer
producerReference - The EPR of the producer resource
initialTerminationTime - The initial termination time for the subscription
subscriptionPolicy - The policy associciated with the subscription
precondition - The precondition associciated with the subscription
selector - The selector associciated with the subscription
producerKey - The key for the producer resource
producerHomeLocation - The JNDI path for the producer resource's resource home
topicPathExpression - The topic path expression for this subscription
useNotify - Flag indicating if notifications should be wrapped
notificationSecurityDescriptor - The security settings to use when sending notifications for this subscription
resourceSecurityDescriptor - The resource security descriptor to apply to the created resource
Returns:
The resource key for the created resource
Throws:
SubscriptionCreationException - If the create fails

create

public ResourceKey create(org.apache.axis.message.addressing.EndpointReferenceType consumerReference,
                          org.apache.axis.message.addressing.EndpointReferenceType producerReference,
                          java.util.Calendar initialTerminationTime,
                          java.lang.Object subscriptionPolicy,
                          QueryExpressionType precondition,
                          QueryExpressionType selector,
                          ResourceKey producerKey,
                          java.lang.String producerHomeLocation,
                          TopicExpressionType topicPathExpression,
                          boolean useNotify,
                          ClientSecurityDescriptor notificationSecurityDescriptor,
                          ResourceSecurityDescriptor resourceSecurityDescriptor,
                          NotifyCallback callback)
                   throws SubscriptionCreationException
Create a subscription resource

Parameters:
consumerReference - The EPR of the notification consumer
producerReference - The EPR of the producer resource
initialTerminationTime - The initial termination time for the subscription
subscriptionPolicy - The policy associciated with the subscription
precondition - The precondition associciated with the subscription
selector - The selector associciated with the subscription
producerKey - The key for the producer resource
producerHomeLocation - The JNDI path for the producer resource's resource home
topicPathExpression - The topic path expression for this subscription
useNotify - Flag indicating if notifications should be wrapped
notificationSecurityDescriptor - The security settings to use when sending notifications for this subscription
resourceSecurityDescriptor - The resource security descriptor to apply to the created resource
callback - called directly if local call
Returns:
The resource key for the created resource
Throws:
SubscriptionCreationException - If the create fails

createSubscription

protected Subscription createSubscription(org.apache.axis.message.addressing.EndpointReferenceType consumerReference,
                                          org.apache.axis.message.addressing.EndpointReferenceType producerReference,
                                          java.util.Calendar initialTerminationTime,
                                          java.lang.Object subscriptionPolicy,
                                          QueryExpressionType precondition,
                                          QueryExpressionType selector,
                                          ResourceKey producerKey,
                                          java.lang.String producerHomeLocation,
                                          TopicExpressionType topicPathExpression,
                                          boolean useNotify,
                                          ClientSecurityDescriptor notificationSecurityDescriptor,
                                          ResourceSecurityDescriptor resourceSecurityDescriptor,
                                          NotifyCallback callback)
                                   throws java.lang.NoSuchMethodException,
                                          java.lang.IllegalAccessException,
                                          java.lang.reflect.InvocationTargetException,
                                          java.lang.InstantiationException
Parameters:
consumerReference -
producerReference -
initialTerminationTime -
subscriptionPolicy -
precondition -
selector -
producerKey -
producerHomeLocation -
topicPathExpression -
useNotify -
notificationSecurityDescriptor -
resourceSecurityDescriptor -
Throws:
java.lang.NoSuchMethodException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
java.lang.InstantiationException