~anitanayak/interface-ibm-wxs/interface-ibm-wxs-branch

« back to all changes in this revision

Viewing changes to README.md

  • Committer: Anita Nayak
  • Date: 2016-10-24 06:00:43 UTC
  • Revision ID: anitanayak@in.ibm.com-20161024060043-bomo3qiimyuc2fno
commiting after lint errors fixed

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Overview
 
2
-----------
 
3
 
 
4
This interface layer handles the communication between `IBM WXS Catalog` and `IBM WXS Container` or `IBM WXS Catalog` and `IBM WXS Client` charms.
 
5
The provider end of this interface provides the WXS Catalog service. The consumer/Requires part will be the IBM WXS Container and IBM WXS Client, which want the IBM WXS Catalog Server Ip Address and Port information to fetch the Data Grid.
 
6
 
 
7
 
 
8
Usage
 
9
------
 
10
 
 
11
#### Provides
 
12
IBM WXS catalog Server product will provide this interface. This interface layer will set the following states, as appropriate:
 
13
 
 
14
 - `{relation_name}.available`: The relation is established, IBM WXS Catalog is ready to send it's Ip Address and Port information. At this point, the charm waits for Provider charm to send IP Address and port.
 
15
        - `set_wxs_catalog_details()` : Sets IP Address and Port of the Catalog Server once the Server started successfully.
 
16
 
 
17
#### Requires
 
18
 
 
19
Consumer charms `IBM WXS Container` and `IBM WXS Client` will require this interface to connect to WXS Catalog so that they can connect to Catalog Server. 
 
20
This interface layer will set the following states, as appropriate:
 
21
 
 
22
- `{relation_name}.available` : The consumer charm has been related to a IBM WXS Catalog provider charm. 
 
23
- `{relation_name}.ready` : IBM WXS Container or IBM WXS Client is now ready to connect to WXS Catalog to fetch Data Grid. 
 
24
        The Http Server charm can access the configuration details using the below methods:
 
25
 
 
26
    - `get_wxs_catalog_port()` - returns the port of the Catalog Server that listens.
 
27
    - `get_wxs_catalog_ip()` - returns running ip of the Catalog Server.
 
28