Class SampleUserDataRequestLauncher
java.lang.Object
oracle.communication.brm.charging.sdk.AbstractSampleProgram
oracle.communication.brm.charging.sdk.policy.SampleUserDataRequestLauncher
Sample program to send asynchronous UserDataRequest to a ECE charging grid.
Eg.
REQUEST:
- Operation type = USER_DATA_REQUEST
- User identity = 100000
- Product type = VOICE,DATA
- Preferences = Language,Channel,InvalidPref1,InvalidPref2
- Customer extended info = customerId,ratingProfileCorporate
- Product extended info = productId,ratingProfileFriends
- Status = SUCCESS
- Customer ID = 6500001
- Common preferences = Language English
- Product preferences:
- Product1: Product ID = 12345 Preferences = Language French, Channel EMail
- Product2: Product ID = 67890 Preferences = Channel Fax
- Unsupported preferences = InvalidPref1,InvalidPref2
- Customer Extended Info:
- customerId = 650001
- ratingProfileCorporate = 18000001,1800002
- product Extended info:
- Product Type = VOICE
- productId = 12345
- ratingProfileFriends = 9886001,9886002
- Product Type = DATA
- productId = 67890
- ratingProfileFriends = null
- Product Type = VOICE
-
Nested Class Summary
Nested classes/interfaces inherited from class oracle.communication.brm.charging.sdk.AbstractSampleProgram
AbstractSampleProgram.SampleResponseConsumer<T extends Response<?>>
-
Constructor Summary
ConstructorsConstructorDescriptionSampleUserDataRequestLauncher
(String userIdentity, String productType, ZonedDateTime requestTime, Collection<String> preferences, Collection<String> customerExtInfo, Collection<String> productExtInfo) Constructor -
Method Summary
Methods inherited from class oracle.communication.brm.charging.sdk.AbstractSampleProgram
createDefaultPayLoad, getBatchRequestService, getContext, getExternalTopUpUpdateRequestBuilderFactory, getLogger, getManagementRequestBuilderFactory, getNResponsesReceived, getPolicyRequestBuilderFactory, getQueryRequestBuilderFactory, getResponsesReceived, getServiceSpecRepository, getStackTrace, getStateManager, getUpdateRequestBuilderFactory, getUsageRequestBuilderFactory, resetResponsesReceived, run, sendAsynchronousRequest, sendRequest, sendRequests, sendUpdateRequest, sendUpdateRequests, waitForResponses
-
Constructor Details
-
SampleUserDataRequestLauncher
public SampleUserDataRequestLauncher(String userIdentity, String productType, ZonedDateTime requestTime, Collection<String> preferences, Collection<String> customerExtInfo, Collection<String> productExtInfo) Constructor- Parameters:
userIdentity
- public user identityproductType
- product typerequestTime
- request timepreferences
- requested preferencescustomerExtInfo
- customer extended infosproductExtInfo
- product extended infos
-
-
Method Details
-
runSample
protected void runSample() throws InterruptedException, MessagesException, SystemHealthException, TimeoutException, ExecutionException, UserNotFoundExceptionDescription copied from class:AbstractSampleProgram
To be implemented by each sample program for specific scenario- Specified by:
runSample
in classAbstractSampleProgram
- Throws:
InterruptedException
MessagesException
SystemHealthException
TimeoutException
ExecutionException
UserNotFoundException
-
main
Main method to start the sample program- Parameters:
args
- argumentsargs[0]: user identity; eg. 10000
args[-]: product type; eg. -p VOICE
args[-]: request time eg. -t 2011-01-01T00:01:00
args[-]: requested preferences in ','(comma) separated format; eg. -s Language,Channel
args[-]: requested customer extended infos in ','(comma) separated format; eg. -c ratingProfileCorp,customerId
args[-]: requested product extended infos in ','(comma) separated format; eg. -e ratingProfileFamily,lifeCycleStateName
-