====================================================================================================================
This file is meant to help you get started with consuming various POM events using PIM Event SDK API's.

Please refer to POM Event SDK Developer's Guide for more detailed information on consuming various POM Events.
====================================================================================================================

What is in this package?
============================================================================================================

|-->README.txt -- This file
|
|-->sample 
|         |-->SampleJavaClient - Module demonstrating usage of various POM Event SDK API.This is the eclipse project.
|
|-->libs
|       |-->avaya-pim-eventAPI.jar - Contains Core SDK API's for consuming POM Events
|		|-->gson-2.6.2.jar -> JSON to Java converter and vice versa.
|       |-->kafka-clients-2.13-3.2.0.jar,kafka-streams-2.13-3.2.0.jar,zkclient-0.10.jar,zookeeper-3.6.3.jar -> Kafka client libraries
|		|-->log4j-api-2.17.2.jar,log4j-core-2.17.2.jar,log4j-web-2.17.2.jar,slf4j-api-1.7.36.jar,slf4j-reload4j-1.7.36.jar - Used for logging and Sample Logging implementation using Log4j.
|
|-->javadocs
            |-->index.html - Javadocs home page explaining POM Event SDK API's


Where should I start from?
=============================================================================================================

i)Firstly refer POM Event SDK development guide to get an idea of the over all architecture
and its associated libraries.

ii)Import the sample projects in eclipse and go through the below classes to understand the implementation
The main classes for the sample modules are provided below:  
a)TestClient.java 
b)POMJobEventNotifierImpl.java

Setup the eclipse project
=============================================================================================================
1. Set the environment variable POM_EVENT_SDK_DIR  e.g. C:\EventSDK
2. Import eclipse project ("sample" folder) in IDE
3. Copy pomKeyStore and pomTrustore avaiable on POM server at $POM_HOME/config to $POM_EVENT_SDK_DIR/conf. i.e C:\EventSDK\conf
4. Set Run configuration :
      Program arguments :
			<POM System User Name> <POM System User Password> <POM Server IP Address/Hostname> <POM Server Port Number. Usually the port is 443> <Subscription Option Use number 2 for JOB, 4 for Agent, 8 for Job Statistics, 16 for Agent Statistics.You can sum up the number for multiple subscription i.e 6 for Job and Agent>
            e.g. admin portal123 148.147.176.88 443 2
                  
			If you have not set the environment variable as mentioned in step 1, you can also set it at the time of running sample application as follow 
            VM arguments :  -DPOM_EVENT_SDK_DIR=POM_EVENT_SDK_DIR. i.e -DPOM_EVENT_SDK_DIR=C:\EventSDK

Troubleshooting help
==============================================================================================================

For any troubleshooting issues please refer POM Event SDK developers guide and troubleshooting guide for solutions.
