Created
December 5, 2014 19:33
-
-
Save pentaho-nbaker/5cc1c8268596e3a442e2 to your computer and use it in GitHub Desktop.
snmp activator blueprint file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!-- | |
| ~ This program is free software; you can redistribute it and/or modify it under the | |
| ~ terms of the GNU Lesser General Public License, version 2.1 as published by the Free Software | |
| ~ Foundation. | |
| ~ | |
| ~ You should have received a copy of the GNU Lesser General Public License along with this | |
| ~ program; if not, you can obtain a copy at http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html | |
| ~ or from the Free Software Foundation, Inc., | |
| ~ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | |
| ~ | |
| ~ This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; | |
| ~ without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | |
| ~ See the GNU Lesser General Public License for more details. | |
| ~ | |
| ~ Copyright 2014 Pentaho Corporation. All rights reserved. | |
| --> | |
| <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0" | |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0" | |
| xmlns:ext="http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.1.0" | |
| xsi:schemaLocation=" | |
| http://www.osgi.org/xmlns/blueprint/v1.0.0 http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd | |
| http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0 http://aries.apache.org/schemas/blueprint-cm/blueprint-cm-1.1.0.xsd | |
| http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.1.0 http://aries.apache.org/schemas/blueprint-ext/blueprint-ext-1.1.xsd" | |
| default-timeout="20000" | |
| default-activation="eager"> | |
| <bean id="eventBus" class="org.pentaho.camel.snmp.BusLocator" factory-method="getBus" scope="prototype"/> | |
| <bean class="org.apache.activemq.ActiveMQConnectionFactory" id="connectionFactory"> | |
| <property name="brokerURL" | |
| value="vm://localhost?create=false&waitForStart=10000" /> | |
| <property name="userName" value="${webconsole.jms.user}" /> | |
| <property name="password" value="${webconsole.jms.password}" /> | |
| </bean> | |
| <service ref="connectionFactory" auto-export="INTERFACES"/> | |
| <reference id="lookupTheConnectionFactory" interface="org.apache.activemwq.connectionFactory"/> | |
| <!-- configure the camel activeMQ component to use the current broker --> | |
| <bean id="activemq" class="org.apache.activemq.camel.component.ActiveMQComponent"> | |
| <property name="connectionFactory" ref="lookupTheConnectionFactory"/> | |
| </bean> | |
| <service ref="activemq" interface="org.apache.camel.Component" /> | |
| <camelContext xmlns="http://camel.apache.org/schema/blueprint"> | |
| <!-- Route the IMonitoringEvent from the guava bus to SnmpTransformerEndpoint. | |
| This endpoint transforms the event into an SnmpMessage suitable for JMS transmission. | |
| The SNMP message is then sent out to the snmpQueue using the ActiveMQ broker | |
| defined in the activemq.xml and org.apache.activemq.server-default.cfg files. --> | |
| <route> | |
| <from uri="guava-eventbus:eventBus?eventClass=org.pentaho.platform.api.monitoring.IMonitoringEvent" /> | |
| <to uri="pentaho:snmp:transformer" /> | |
| <to uri="activemq:queue:snmpQueue" /> | |
| </route> | |
| <!-- Route any incoming JMS SnmpMessages to SendTrapEndpoint which will | |
| formally send the snmp trap --> | |
| <route> | |
| <from uri="activemq:queue:snmpQueue" /> | |
| <to uri="pentaho:snmp:send-trap" /> | |
| </route> | |
| </camelContext> | |
| </blueprint> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment