Varun Gudisena | acc3ce0 | 2017-08-31 10:56:56 -0500 | [diff] [blame] | 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 | <RouteOffer>__AFT_SERVICE_ENV__</RouteOffer> |
| 35 | </ResourceDescriptor> |
| 36 | <ResourceType>Java</ResourceType> |
| 37 | <ResourceContainerType>Ajsc</ResourceContainerType> |
| 38 | <ResourceContainerTypeVendor>ATT</ResourceContainerTypeVendor> |
| 39 | <ResourcePath>__INSTALL_ROOT__${distFilesRoot}</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>__INSTALL_ROOT__${distFilesRoot}</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_MRS__</Value> |
| 64 | </ResourceProps> |
| 65 | |
| 66 | |
| 67 | <!-- End --> |
| 68 | |
| 69 | <ResourceProps> |
| 70 | <Tag>process.args</Tag> |
| 71 | <Value>context=__AJSC_CONTEXT__ port=__AJSC_SVC_PORT__ sslport=__AJSC_SSL_PORT__</Value> |
| 72 | </ResourceProps> |
| 73 | <ResourceProps> |
| 74 | <Tag>jvm.version</Tag> |
| 75 | <Value>__JAVA_VERSION__</Value> |
| 76 | </ResourceProps> |
| 77 | <ResourceProps> |
| 78 | <Tag>jvm.classpath</Tag> |
| 79 | <Value>:.:${CLASSPATH}:__AJSC_SHARED_CONFIG__/etc:lib/*:</Value> |
| 80 | </ResourceProps> |
| 81 | <ResourceProps> |
| 82 | <Tag>jvm.args.pre</Tag> |
| 83 | <Value>__PRE_JVM_ARGS__ -XX:MaxPermSize=__MAX_PERM_SIZE__ |
| 84 | -XX:PermSize=__PERM_SIZE__ |
| 85 | __INTROSCOPE_VARS__ |
| 86 | -DSOACLOUD_SERVICE_VERSION=__AFTSWM_ACTION_NEW_VERSION__ |
| 87 | -DAJSC_HOME=__INSTALL_ROOT__${distFilesRoot} |
| 88 | -DAJSC_CONF_HOME=__AJSC_CONF_HOME__ |
| 89 | -DAJSC_SHARED_CONFIG=__AJSC_SHARED_CONFIG__ |
| 90 | __POST_JVM_ARGS__ |
| 91 | __SCLD_OPTIONAL_PLATFORM_FLAG__ |
| 92 | </Value> |
| 93 | </ResourceProps> |
| 94 | <ResourceProps> |
| 95 | <Tag>jvm.heap.min</Tag> |
| 96 | <Value>__MIN_HEAP_SIZE__</Value> |
| 97 | </ResourceProps> |
| 98 | <ResourceProps> |
| 99 | <Tag>jvm.heap.max</Tag> |
| 100 | <Value>__MAX_HEAP_SIZE__</Value> |
| 101 | </ResourceProps> |
| 102 | <ResourceProps> |
| 103 | <Tag>start.class</Tag> |
| 104 | <Value>com.att.ajsc.runner.Runner</Value> |
| 105 | </ResourceProps> |
| 106 | <ResourceProps> |
| 107 | <Tag>stdout.redirect</Tag> |
| 108 | <Value>log/stdout.log</Value> |
| 109 | </ResourceProps> |
| 110 | <ResourceProps> |
| 111 | <Tag>stderr.redirect</Tag> |
| 112 | <Value>log/stdout.log</Value> |
| 113 | </ResourceProps> |
| 114 | <ResourceProps> |
| 115 | <Tag>validatePID.waitime.seconds</Tag> |
| 116 | <Value>__LRM_VALIDATEPID_WAITTIME_SECONDS__</Value> |
| 117 | </ResourceProps> |
| 118 | <ResourceProps> |
| 119 | <Tag>mbean.name</Tag> |
| 120 | <!-- <Value>JmxInterface:type=Ajsc,JmxInterface:type=DME2</Value> --> |
| 121 | <Value>JmxInterface:type=DME2</Value> |
| 122 | </ResourceProps> |
| 123 | <ResourceOSID>${installOwnerUser}</ResourceOSID> |
| 124 | <ResourceStartType>__LRM_RESOURCE_START_TYPE__</ResourceStartType> |
| 125 | <ResourceStartPriority>__LRM_START_PRIORITY__</ResourceStartPriority> |
| 126 | <ResourceStartTimeout>__LRM_START_TIMEOUT__</ResourceStartTimeout> |
| 127 | <ResourceMinCount>__RESOURCE_MIN_COUNT__</ResourceMinCount> |
| 128 | <ResourceMaxCount>__RESOURCE_MAX_COUNT__</ResourceMaxCount> |
| 129 | <ResourceMaxRestart>__LRM_RESOURCE_MAX_RESTART__</ResourceMaxRestart> |
| 130 | <ResourceHeartBeat>__LRM_RESOURCE_HEARTBEAT__</ResourceHeartBeat> |
| 131 | <ResourceHeartBeatFailedLimit>__LRM_RESOURCE_HEARTBEAT_FAILED_LIMIT__</ResourceHeartBeatFailedLimit> |
| 132 | <ResourceHeartBeatTimeout>__LRM_RESOURCE_HEARTBEAT_TIMEOUT__</ResourceHeartBeatTimeout> |
| 133 | <ResourceShutdownWaitTimeInSecs>__RESOURCE_MANAGER_WAIT_TIME_IN_SECONDS__</ResourceShutdownWaitTimeInSecs> |
| 134 | <ResourceRegistration>__LRM_RESOURCE_REGISTRATION__</ResourceRegistration> |
| 135 | <GroupName>${installOwnerGroup}</GroupName> |
| 136 | <ResourceErrorNotify> |
| 137 | <NotifyListEntry> |
| 138 | <Loglevel>WARNING</Loglevel> |
| 139 | <EmailList>__CLDLRM_WARNING_NOTIFY__</EmailList> |
| 140 | </NotifyListEntry> |
| 141 | <NotifyListEntry> |
| 142 | <Loglevel>SEVERE</Loglevel> |
| 143 | <EmailList>__CLDLRM_SEVERE_NOTIFY__</EmailList> |
| 144 | </NotifyListEntry> |
| 145 | </ResourceErrorNotify> |
| 146 | </ns2:ManagedResource> |
| 147 | </ns2:ManagedResourceList> |