~ibmcharmers/charms/xenial/ibm-was-nd-node/devel

« back to all changes in this revision

Viewing changes to hooks/relations/was-nd/README.md

  • Committer: Rajith Venkata
  • Date: 2016-12-06 08:41:06 UTC
  • Revision ID: rajith.pv@in.ibm.com-20161206084106-yjbrw2z9w4s6txnt
Intial checkin for ibm-was-nd-node

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
Overview
2
 
-----------
3
 
 
4
 
This interface layer handles the communication between a `IBM WAS ND DM` and Consumer charms (ex: WXS) charms.
5
 
The provider side of this interface provides the WAS ND DM service. The consumer which wants the WAS ND DM dmgruser, dmgrpw, hostname, dminstallpath and profile name.
6
 
 
7
 
 
8
 
Usage
9
 
------
10
 
 
11
 
#### Provides
12
 
IBM WebSphere Application Server ND DM will provide this interface. This interface layer will set the following states, as appropriate:
13
 
 
14
 
 - `{relation_name}.connected`: The relation is established, WAS ND DM service is ready to send it's information.
15
 
 
16
 
 - `{relation_name}.available`: WAS ND DM has provided its connection information, and is ready to accept requests from the consumer charm.
17
 
 
18
 
 - `{relation_name}.departed` : The relation has been removed. Any cleanup related to the consumer charm should happen now on the WAS ND DM charm since the consumer is going away.
19
 
 
20
 
 
21
 
#### Requires
22
 
 
23
 
Consumer charm will require this interface to connect to WAS ND DM so that they can share information to configure dynamic cluster setup. This interface layer will set the following states, as appropriate:
24
 
 
25
 
- `{relation_name}.connected` : The consumer charm has been related to a WAS ND DM provider charm. At this point, the charm waits for Provider charm to send configuration details like dmgruser, dmgrpw, hostname, dminstallpath and profile name.
26
 
 
27
 
- `{relation_name}.ready` : Consumer charm is now ready to access the configuration details provided by WAS ND DM charm. The consumer charm can access the configuration details using the below methods:
28
 
 
29
 
    - `get_was_dm_install_path()` - returns the Installation path of WAS ND DM.
30
 
    - `get_was_dm_hostname()` - returns host name of WAS ND DM.
31
 
    - `get_dmgradminuser()` - returns user name to login DM console.
32
 
    - `get_dmgrpwd()` - returns password to login DM console.
33
 
    - `get_was_dm_profile_name()` - returns the WAS ND DM profile name.
34