Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved


Chapter 3 Command Line Interface : Subscription Tasks

Subscription Tasks
You can perform the following Subscription tasks through CLI. For detailed information, see the related sections in TIBCO ActiveMatrix Runtime UDDI Server Administrator’s Guide.
get_subscriptions
Execute one of the following commands in CLI to execute a get_subscriptions task in the interactive mode:
uddiant get_subscriptions
The following prompts will appear.
To store the output information of the task in a file, enter the absolute path or the relative path and the name of the file.
You can also display the output information in CLI by pressing Enter.
If you specify to store the output information in a file, the following may appear.
Specify the way to handle the specified output file. Selecting true will overwrite the file. Selecting false will append the output information to the file. The default is true.
You can also execute the task in silent mode by executing one of the following commands:
ant -f uddiant.xml get_subscriptions -Dfile=OutputFilePath/OutputFileName -Doverwrite=[true|false]
uddiant get_subscriptions -Dfile=OutputFilePath/OutputFileName -Doverwrite=[true|false]
get_subscriptionResults
Execute one of the following commands in CLI to execute a get_subscriptionResults task in the interactive mode:
uddiant get_subscriptionResults
The following prompt will appear.
Enter the data from the data file (y, n)?
If you press Y and then press Enter, the following prompts will appear.
Enter the full path and the name of the data file.
To store the output information of the task in a file, enter the absolute path or the relative path and the name of the file.
You can also display the output information in CLI by pressing Enter.
If you specify to store the output information in a file, the following may appear.
Specify the way to handle the specified output file. Selecting true will overwrite the file. Selecting false will append the output information to the file. The default is true.
If you press N and then press Enter in response to the Enter the data from the data file (y, n) prompt, the following prompts will appear.
Enter the key of a specific Subscription to be retrieved.
Enter the StartPoint of CoveragePeriod (optional/format:2008-08-08T08:08:08.000Z)
Enter the start point of the retrieval period.
Enter the EndPoint of CoveragePeriod (optional/format:2008-08-08T08:08:08.000Z)
Enter the end point of the retrieval period.
Enter the Chunk Token.
To store the output information of the task in a file, enter the absolute path or the relative path and the name of the file.
You can also display the output information in CLI by pressing Enter.
If you specify to store the output information in a file, the following may appear.
Specify the way to handle the specified file. Selecting true will overwrite the data file. The default is false.
You can also execute the task in silent mode by executing one of the following command:
ant -f uddiant.xml get_subscriptionResults -Ddatafromfile=n -DsubscriptionKey=SubscriptionKey -DstartPoint=StartPoint -DendPoint=EndPoint -DchunkToken=ChunkToken -Dfile=OutputFilePath/OutputFileName -Doverwrite=[true|false]
uddiant get_subscriptionResults -Ddatafromfile=n -DsubscriptionKey=SubscriptionKey -DstartPoint=StartPoint -DendPoint=EndPoint -DchunkToken=ChunkToken -Dfile=OutputFilePath/OutputFileName -Doverwrite=[true|false]
For information about the structure of the data files used by get_subscriptionResults tasks, see Section 5.5.11 get_subscriptionResults in UDDI Version 3.0.2 at http://www.uddi.org/pubs/uddi_v3.htm#_Toc85908139.
Currently, the get_subscriptionResults task cannot retrieve information about deleted entities. You can use the Polling Subscription API or adopt the asynchronous notification mechanism to get information about deleted entities. See Polling Subscription API for more information.
save_subscription
Execute one of the following commands in CLI to execute a save_subscription task in the interactive mode:
uddiant save_subscription
If you press N and then press Enter in response to the Enter the data from the data file (y, n) prompt, the following prompts will appear.
(1): find_binding
(2): find_business
(3): find_service
(4): find_tModel
(5): get_bindingDetail
(6): get_businessDetail
(7): get_serviceDetail
(8): get_tModelDetail
Your Option: ([1], 2, 3, 4, 5, 6, 7, 8)
Select the API to be used for the subscription task as prompted. The default is 1.
Enter the business service key.
Enter the subscription key if needed.
Enter the subscription binding key if needed.
Select true to enter the brief. The default is false.
Enter the notification interval. For related information, see Section 5.5.2 Specifying Durations in UDDI Version 3.0.2 at http://www.uddi.org/pubs/uddi_v3.htm#_Toc85908130.
Enter the maximum entity.
Enter the ExpiresAfter (optional/format:2008-08-08T08:08:08.000Z)
Enter the date and time (UTC time) when the subscription will expire.
To store the output information of the task in a file, enter the absolute path or the relative path and the name of the file.
You can also have the output information displayed in CLI by pressing Enter.
If you specify to store the output information in a file, the following may appear.
Specify the way to handle the specified output file. Selecting true will overwrite the file. Selecting false will append the output information to the file. The default is true.
You can also execute the task in silent mode by executing one of the following commands:
ant -f uddiant.xml save_subscription -Ddatafromfile=y -DdataFile=DataFilePath\DataFileName -Dfile=OutputFilePath\OutputFileName -Doverwrite=[true|false]
uddiant save_subscription -Ddatafromfile=y -DdataFile=DataFilePath/DataFileName -Dfile=OutputFilePath/OutputFileName -Doverwrite=[true|false]
ant -f uddiant.xml save_subscription -Ddatafromfile=n -Dsubscription.filter.type=[1|2|3|4|5|6|7|8] -DserviceKey=ServiceKey -DsubscriptionKey=SubscriptionKey -DsubBindingKey=SubscriptinBindingKey -Dbrief=[true|false] -DnotificationInterval=NotificationInterval -DmaxEntities=MaxEntities -DexpireAfter=ExpirationTime -Dfile=OutputFilePath/OutputFileName -Doverwrite=[true|false]
uddiant save_subscription -Ddatafromfile=n -Dsubscription.filter.type=[1|2|3|4|5|6|7|8] -DserviceKey=ServiceKey -DsubscriptionKey=SubscriptionKey -DsubBindingKey=SubscriptinBindingKey -Dbrief=[true|false] -DnotificationInterval=NotificationInterval -DmaxEntities=MaxEntities -DexpireAfter=ExpirationTime -Dfile=OutputFilePath/OutputFileName -Doverwrite=[true|false]
The subscription.filter.type property specifies the API to be used, as described at the beginning of save_subscription.
For information about the structure of the data files used by save_subscription tasks, see Section 5.5.8 save_subscription in UDDI Version 3.0.2 at http://www.uddi.org/pubs/uddi_v3.htm#_Toc85908136.
delete_subscription
Execute one of the following commands in CLI to execute a delete_subscription task in the interactive mode:
uddiant delete_subscription
The following prompt will appear.
Enter the subscription key to be deleted.
You can also execute the task in silent mode by executing one the following commands:
ant -f uddiant.xml delete_subscription -DsubscriptionKey=SubscriptionKey
uddiant delete_subscription -DsubscriptionKey=SubscriptionKey

Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved