ADD Initial Code Import
[dmaap/messagerouter/mirroragent.git] / src / main / config / template.lrm.xml
1 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2 <!--
3      ============LICENSE_START=======================================================
4      org.onap.dmaap
5      ================================================================================
6      Copyright © 2017 AT&T Intellectual Property. All rights reserved.
7      ================================================================================
8      Licensed under the Apache License, Version 2.0 (the "License");
9      you may not use this file except in compliance with the License.
10      You may obtain a copy of the License at
11            http://www.apache.org/licenses/LICENSE-2.0
12      
13      Unless required by applicable law or agreed to in writing, software
14      distributed under the License is distributed on an "AS IS" BASIS,
15      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16      See the License for the specific language governing permissions and
17      limitations under the License.
18      ============LICENSE_END=========================================================
19    
20      ECOMP is a trademark and service mark of AT&T Intellectual Property.
21      
22  -->
23
24 <ns2:ManagedResourceList xmlns="http://scld.att.com/lrm/commontypes"
25         xmlns:ns2="http://scld.att.com/lrm/util" xmlns:ns3="http://scld.att.com/lrm/types">
26         <ns2:ManagedResource>
27                 <ResourceDescriptor>
28                         <ResourceName>__SOA_CLOUD_NAMESPACE__.${artifactId}</ResourceName>
29                         <ResourceVersion>
30                                 <Major>__MAJOR_VERSION__</Major>
31                                 <Minor>__MINOR_VERSION__</Minor>
32                                 <Patch>__PATCH_VERSION__</Patch>
33                         </ResourceVersion>
34                         
35                 </ResourceDescriptor>
36                 <ResourceType>Java</ResourceType>
37                 <ResourceContainerType></ResourceContainerType>
38                 <ResourceContainerTypeVendor>ATT</ResourceContainerTypeVendor>
39                 <ResourcePath>/opt/app/dmaap/mmagent</ResourcePath>
40                 <ResourceProps>
41                         <Tag>process.path</Tag>
42                         <Value>/usr/bin:/usr/sbin:${PATH}</Value>
43                 </ResourceProps>
44                 <ResourceProps>
45                         <Tag>process.workdir</Tag>
46                         <Value>/opt/app/dmaap/mmagent</Value>
47                 </ResourceProps>
48                 <ResourceProps>
49                         <Tag>process.libpath</Tag>
50                         <Value>${LD_LIBRARY_PATH}</Value>
51                 </ResourceProps>
52
53                 <!-- The following process.args are for your context, port, and sslport. 
54                         NOTE: The "context" argument will set your context. context=/ will run your service under a "root" context. 
55                         Port selection is NOT necessary and should NOT be hardcoded if you are choosing to utilize ephemeral ports.
56                         If NO port values are given, the AJSC will default to running on ephemeral ports (for both your http port 
57                         AND your https port), and your port will be selected for you. -->
58                 
59                 <!-- Add JMX port -->
60                 
61                 <ResourceProps>
62                         <Tag>jmx.port</Tag>
63                         <Value>__JMX_PORT_MRAGENT__</Value>
64                 </ResourceProps>
65                 
66                 
67                 <!-- End -->
68                 
69                 <ResourceProps>
70                         <Tag>jvm.version</Tag>
71                         <Value>__JAVA_VERSION__</Value>
72                 </ResourceProps>
73                 <ResourceProps>
74                         <Tag>jvm.classpath</Tag>
75                         <Value>:.:${CLASSPATH}:/opt/app/dmaap/mmagent/etc:/opt/app/dmaap/mmagent/lib/*:</Value>
76                 </ResourceProps>
77                 <ResourceProps>
78                         <Tag>jvm.args.pre</Tag>
79                         <Value>__PRE_JVM_ARGS__ -XX:MaxPermSize=__MAX_PERM_SIZE__
80                                 -XX:PermSize=__PERM_SIZE__
81                                 __INTROSCOPE_VARS__
82                                 -Djava.net.preferIPv4Stack=true 
83                                 -DMMAGENTHOME=/opt/app/dmaap/mmagent
84                                 __POST_JVM_ARGS__
85                                 __SCLD_OPTIONAL_PLATFORM_FLAG__
86                                  -DMMAGENTHOME=/opt/app/dmaap/mmagent
87                         </Value>
88                 </ResourceProps>
89                 <ResourceProps>
90                         <Tag>jvm.heap.min</Tag>
91                         <Value>__MIN_HEAP_SIZE__</Value>
92                 </ResourceProps>
93                 <ResourceProps>
94                         <Tag>jvm.heap.max</Tag>
95                         <Value>__MAX_HEAP_SIZE__</Value>
96                 </ResourceProps>
97                 <ResourceProps>
98                         <Tag>start.class</Tag>
99                         <Value>org.onap.dmaap.messagerouter.mirroragent.nsa.dmaapMMAgent.MirrorMakerAgent</Value>
100                 </ResourceProps>
101                 <ResourceProps>
102                         <Tag>stdout.redirect</Tag>
103                         <Value>log/stdout.log</Value>
104                 </ResourceProps>
105                 <ResourceProps>
106                         <Tag>stderr.redirect</Tag>
107                         <Value>log/stdout.log</Value>
108                 </ResourceProps>
109                 <ResourceProps>
110                         <Tag>validatePID.waitime.seconds</Tag>
111                         <Value>__LRM_VALIDATEPID_WAITTIME_SECONDS__</Value>
112                 </ResourceProps>
113                 <ResourceProps>
114                         <Tag>mbean.name</Tag>
115                         
116                         <Value>JmxInterface:type=DME2</Value>
117                 </ResourceProps>
118                 <ResourceOSID>msgrtr</ResourceOSID>
119                 <ResourceStartType>__LRM_RESOURCE_START_TYPE__</ResourceStartType>
120                 <ResourceStartPriority>__LRM_START_PRIORITY__</ResourceStartPriority>
121                 <ResourceStartTimeout>__LRM_START_TIMEOUT__</ResourceStartTimeout>
122                 <ResourceMinCount>__RESOURCE_MIN_COUNT__</ResourceMinCount>
123                 <ResourceMaxCount>__RESOURCE_MAX_COUNT__</ResourceMaxCount>
124                 <ResourceMaxRestart>__LRM_RESOURCE_MAX_RESTART__</ResourceMaxRestart>
125                 <ResourceHeartBeat>__LRM_RESOURCE_HEARTBEAT__</ResourceHeartBeat>
126                 <ResourceHeartBeatFailedLimit>__LRM_RESOURCE_HEARTBEAT_FAILED_LIMIT__</ResourceHeartBeatFailedLimit>
127                 <ResourceHeartBeatTimeout>__LRM_RESOURCE_HEARTBEAT_TIMEOUT__</ResourceHeartBeatTimeout>
128                 <ResourceShutdownWaitTimeInSecs>__RESOURCE_MANAGER_WAIT_TIME_IN_SECONDS__</ResourceShutdownWaitTimeInSecs>
129                 <ResourceRegistration>__LRM_RESOURCE_REGISTRATION__</ResourceRegistration>
130                 <GroupName>dmaap</GroupName>
131                 <ResourceErrorNotify>
132                         <NotifyListEntry>
133                                 <Loglevel>WARNING</Loglevel>
134                                 <EmailList>__CLDLRM_WARNING_NOTIFY__</EmailList>
135                         </NotifyListEntry>
136                         <NotifyListEntry>
137                                 <Loglevel>SEVERE</Loglevel>
138                                 <EmailList>__CLDLRM_SEVERE_NOTIFY__</EmailList>
139                         </NotifyListEntry>
140                 </ResourceErrorNotify>
141         </ns2:ManagedResource>
142 </ns2:ManagedResourceList>