├── oldreportingUi.sh
├── siteDeploy.sh
├── reportingUi.sh
├── reportingUiDebug.sh
├── RETIRED.txt
├── agent
├── store
│ ├── cube
│ │ └── src
│ │ │ ├── test
│ │ │ ├── resources
│ │ │ │ ├── META-INF
│ │ │ │ │ └── services
│ │ │ │ │ │ └── org.apache.sirona.gauges.Gauge
│ │ │ │ └── sirona.properties
│ │ │ └── java
│ │ │ │ └── org
│ │ │ │ └── apache
│ │ │ │ └── sirona
│ │ │ │ └── cube
│ │ │ │ └── gauge
│ │ │ │ └── MockGauge.java
│ │ │ └── main
│ │ │ └── java
│ │ │ └── org
│ │ │ └── apache
│ │ │ └── sirona
│ │ │ └── cube
│ │ │ ├── CubeDataStoreFactory.java
│ │ │ ├── CubeNodeStatusDataStore.java
│ │ │ └── CubeCounterDataStore.java
│ ├── graphite
│ │ └── src
│ │ │ └── test
│ │ │ ├── resources
│ │ │ ├── META-INF
│ │ │ │ └── services
│ │ │ │ │ └── org.apache.sirona.gauges.Gauge
│ │ │ └── sirona.properties
│ │ │ └── java
│ │ │ └── org
│ │ │ └── apache
│ │ │ └── sirona
│ │ │ └── graphite
│ │ │ └── gauge
│ │ │ └── MockGauge.java
│ └── websocket-client
│ │ └── src
│ │ └── main
│ │ └── java
│ │ └── org
│ │ └── apache
│ │ └── sirona
│ │ └── websocket
│ │ └── client
│ │ └── WebSocketNodeStatusDataStore.java
├── performance
│ ├── jta
│ │ └── src
│ │ │ ├── main
│ │ │ ├── resources
│ │ │ │ └── META-INF
│ │ │ │ │ ├── services
│ │ │ │ │ └── org.apache.sirona.gauges.GaugeFactory
│ │ │ │ │ └── beans.xml
│ │ │ └── java
│ │ │ │ └── org
│ │ │ │ └── apache
│ │ │ │ └── sirona
│ │ │ │ └── jta
│ │ │ │ └── JTAMonitored.java
│ │ │ └── test
│ │ │ └── resources
│ │ │ └── sirona.properties
│ ├── jpa
│ │ └── src
│ │ │ └── main
│ │ │ └── resources
│ │ │ └── META-INF
│ │ │ └── services
│ │ │ └── javax.persistence.spi.PersistenceProvider
│ ├── cdi
│ │ └── src
│ │ │ ├── main
│ │ │ ├── resources
│ │ │ │ └── META-INF
│ │ │ │ │ ├── services
│ │ │ │ │ └── javax.enterprise.inject.spi.Extension
│ │ │ │ │ └── beans.xml
│ │ │ └── java
│ │ │ │ └── org
│ │ │ │ └── apache
│ │ │ │ └── sirona
│ │ │ │ └── cdi
│ │ │ │ └── Monitored.java
│ │ │ └── test
│ │ │ ├── resources
│ │ │ ├── sirona.properties
│ │ │ └── META-INF
│ │ │ │ └── beans.xml
│ │ │ └── java
│ │ │ └── org
│ │ │ └── apache
│ │ │ └── sirona
│ │ │ └── cdi
│ │ │ └── SironaExtensionTest.java
│ ├── web
│ │ └── src
│ │ │ ├── main
│ │ │ ├── resources
│ │ │ │ └── META-INF
│ │ │ │ │ └── services
│ │ │ │ │ └── javax.servlet.ServletContainerInitializer
│ │ │ └── java
│ │ │ │ └── org
│ │ │ │ └── apache
│ │ │ │ └── sirona
│ │ │ │ └── web
│ │ │ │ └── jsp
│ │ │ │ └── StartTagTei.java
│ │ │ └── test
│ │ │ ├── resources
│ │ │ └── sirona.properties
│ │ │ └── java
│ │ │ └── org
│ │ │ └── apache
│ │ │ └── sirona
│ │ │ └── test
│ │ │ └── web
│ │ │ └── Clients.java
│ ├── spring
│ │ └── src
│ │ │ └── test
│ │ │ ├── java
│ │ │ └── org
│ │ │ │ └── apache
│ │ │ │ └── sirona
│ │ │ │ └── spring
│ │ │ │ └── service
│ │ │ │ └── MyService.java
│ │ │ └── resources
│ │ │ └── monitoring.xml
│ ├── jdbc
│ │ └── src
│ │ │ └── main
│ │ │ └── java
│ │ │ └── org
│ │ │ └── apache
│ │ │ └── sirona
│ │ │ └── jdbc
│ │ │ └── ConnectionClosedCallBack.java
│ ├── aop
│ │ └── src
│ │ │ └── main
│ │ │ └── java
│ │ │ └── org
│ │ │ └── apache
│ │ │ └── sirona
│ │ │ └── aop
│ │ │ └── MonitorNameExtractor.java
│ ├── aspectj
│ │ └── src
│ │ │ └── test
│ │ │ └── resources
│ │ │ └── META-INF
│ │ │ └── aop.xml
│ └── jaxrs
│ │ ├── jaxrs2
│ │ └── src
│ │ │ ├── main
│ │ │ └── java
│ │ │ │ └── org
│ │ │ │ └── apache
│ │ │ │ └── sirona
│ │ │ │ └── agent
│ │ │ │ └── jaxrs
│ │ │ │ └── jaxrs2
│ │ │ │ └── SironaFeature.java
│ │ │ └── test
│ │ │ └── java
│ │ │ └── org
│ │ │ └── apache
│ │ │ └── sirona
│ │ │ └── agent
│ │ │ └── jaxrs
│ │ │ └── jaxrs2
│ │ │ └── service
│ │ │ └── SimpleService.java
│ │ └── cxf
│ │ └── src
│ │ └── test
│ │ └── java
│ │ └── org
│ │ └── apache
│ │ └── sirona
│ │ └── agent
│ │ └── jaxrs
│ │ └── cxf
│ │ └── service
│ │ └── SimpleService.java
├── pull
│ └── src
│ │ ├── main
│ │ └── resources
│ │ │ └── META-INF
│ │ │ └── services
│ │ │ └── javax.servlet.ServletContainerInitializer
│ │ └── test
│ │ ├── resources
│ │ └── META-INF
│ │ │ └── services
│ │ │ └── org.apache.sirona.status.Validation
│ │ └── java
│ │ └── org
│ │ └── apache
│ │ └── sirona
│ │ └── agent
│ │ └── webapp
│ │ └── pull
│ │ └── validation
│ │ ├── FakeValidation.java
│ │ └── ReFakeValidation.java
└── javaagent
│ └── src
│ ├── test
│ ├── resources
│ │ ├── META-INF
│ │ │ └── services
│ │ │ │ ├── org.apache.sirona.pathtracking.PathTrackingInvocationListener
│ │ │ │ └── org.apache.sirona.javaagent.spi.InvocationListener
│ │ └── sirona.properties
│ └── java
│ │ └── org
│ │ └── apache
│ │ └── sirona
│ │ ├── javaagent
│ │ ├── AfterFork.java
│ │ ├── BeforeFork.java
│ │ ├── Transformers.java
│ │ └── listener
│ │ │ └── AutoSetPathTrackingListenerTest.java
│ │ └── pathtracking
│ │ └── test
│ │ └── ExtendedInMemoryPathTrackingDataStore.java
│ └── main
│ ├── resources
│ └── META-INF
│ │ └── services
│ │ └── org.apache.sirona.javaagent.spi.InvocationListener
│ └── java
│ └── org
│ └── apache
│ └── sirona
│ └── javaagent
│ ├── spi
│ ├── package-info.java
│ └── InvocationListenerFactory.java
│ ├── package-info.java
│ └── listener
│ └── package-info.java
├── plugins
├── ehcache
│ └── agent
│ │ └── src
│ │ ├── main
│ │ ├── resources
│ │ │ └── META-INF
│ │ │ │ └── services
│ │ │ │ └── org.apache.sirona.gauges.GaugeFactory
│ │ └── java
│ │ │ └── org
│ │ │ └── apache
│ │ │ └── sirona
│ │ │ └── agent
│ │ │ └── ehcache
│ │ │ ├── EhCacheTransactionCommittedCountManagerGauge.java
│ │ │ └── EhCacheTransactionRollbackedCountManagerGauge.java
│ │ └── test
│ │ └── resources
│ │ └── ehcache.xml
├── tomee
│ └── agent
│ │ └── src
│ │ ├── main
│ │ ├── resources
│ │ │ └── META-INF
│ │ │ │ └── services
│ │ │ │ ├── org.apache.sirona.gauges.GaugeFactory
│ │ │ │ └── org.apache.sirona.status.ValidationFactory
│ │ └── java
│ │ │ └── org
│ │ │ └── apache
│ │ │ └── sirona
│ │ │ └── tomee
│ │ │ └── agent
│ │ │ └── Reflection.java
│ │ └── test
│ │ └── resources
│ │ └── sirona.properties
├── hazelcast
│ ├── agent
│ │ └── src
│ │ │ ├── main
│ │ │ ├── resources
│ │ │ │ └── META-INF
│ │ │ │ │ └── services
│ │ │ │ │ └── org.apache.sirona.gauges.GaugeFactory
│ │ │ └── java
│ │ │ │ └── org
│ │ │ │ └── apache
│ │ │ │ └── sirona
│ │ │ │ └── plugin
│ │ │ │ └── hazelcast
│ │ │ │ └── agent
│ │ │ │ └── gauge
│ │ │ │ ├── HazelcastMembersGauge.java
│ │ │ │ └── HazelcastPartitionsGauge.java
│ │ │ └── test
│ │ │ └── resources
│ │ │ └── sirona.properties
│ └── gui
│ │ └── src
│ │ ├── main
│ │ ├── resources
│ │ │ ├── META-INF
│ │ │ │ └── services
│ │ │ │ │ └── org.apache.sirona.reporting.web.plugin.api.Plugin
│ │ │ └── templates
│ │ │ │ └── hazelcast
│ │ │ │ └── home.vm
│ │ └── java
│ │ │ └── org
│ │ │ └── apache
│ │ │ └── sirona
│ │ │ └── plugin
│ │ │ └── hazelcast
│ │ │ └── gui
│ │ │ └── HazelcastPlugin.java
│ │ └── test
│ │ └── resources
│ │ └── sirona.properties
└── api
│ └── src
│ └── main
│ └── java
│ └── org
│ └── apache
│ └── sirona
│ └── reporting
│ └── web
│ └── plugin
│ └── api
│ ├── Local.java
│ └── Regex.java
├── store
├── memory
│ └── src
│ │ └── main
│ │ └── resources
│ │ └── META-INF
│ │ └── services
│ │ └── org.apache.sirona.store.counter.CounterDataStore
└── pom.xml
├── api
└── src
│ ├── test
│ ├── resources
│ │ ├── META-INF
│ │ │ └── services
│ │ │ │ └── org.apache.sirona.util.BeerService
│ │ └── sirona.properties
│ └── java
│ │ └── org
│ │ └── apache
│ │ └── sirona
│ │ └── util
│ │ ├── BeerService.java
│ │ └── MoutainGoatBeerService.java
│ └── main
│ └── java
│ └── org
│ └── apache
│ └── sirona
│ ├── status
│ ├── Status.java
│ ├── Validation.java
│ ├── ValidationFactory.java
│ └── ValidationResult.java
│ ├── gauges
│ ├── GaugeFactory.java
│ └── GaugeAware.java
│ ├── pathtracking
│ ├── UniqueIdGenerator.java
│ ├── DefaultUniqueIdGenerator.java
│ └── PathTrackingInvocationListener.java
│ ├── store
│ ├── gauge
│ │ ├── Value.java
│ │ ├── GaugeDataStore.java
│ │ ├── CommonGaugeDataStore.java
│ │ └── CollectorGaugeDataStore.java
│ ├── tracking
│ │ └── CollectorPathTrackingDataStore.java
│ ├── status
│ │ ├── CollectorNodeStatusDataStore.java
│ │ └── NodeStatusDataStore.java
│ └── counter
│ │ ├── CounterDataStore.java
│ │ └── CollectorCounterStore.java
│ ├── configuration
│ ├── predicate
│ │ └── Predicate.java
│ ├── ioc
│ │ ├── AutoSet.java
│ │ ├── Created.java
│ │ └── Destroying.java
│ ├── ConfigurationProvider.java
│ └── PropertiesConfigurationProvider.java
│ ├── counters
│ ├── AggregatedCounter.java
│ └── jmx
│ │ └── CounterJMXMBean.java
│ ├── spi
│ ├── SPI.java
│ ├── DefaultSPI.java
│ └── Order.java
│ ├── SironaException.java
│ ├── stopwatches
│ └── StopWatch.java
│ └── util
│ ├── Environment.java
│ └── Localhosts.java
├── server
├── reporting
│ ├── reporting-webapp
│ │ └── src
│ │ │ └── main
│ │ │ ├── resources
│ │ │ ├── META-INF
│ │ │ │ ├── services
│ │ │ │ │ ├── javax.servlet.ServletContainerInitializer
│ │ │ │ │ └── org.apache.sirona.reporting.web.plugin.api.Plugin
│ │ │ │ └── NOTICE
│ │ │ ├── resources
│ │ │ │ ├── images
│ │ │ │ │ ├── tree-closed.gif
│ │ │ │ │ ├── tree-opened.gif
│ │ │ │ │ └── glyphicons-halflings.png
│ │ │ │ └── fonts
│ │ │ │ │ ├── glyphicons-halflings-regular.eot
│ │ │ │ │ ├── glyphicons-halflings-regular.ttf
│ │ │ │ │ └── glyphicons-halflings-regular.woff
│ │ │ └── templates
│ │ │ │ ├── threads
│ │ │ │ └── thread.vm
│ │ │ │ ├── report
│ │ │ │ ├── report-csv.vm
│ │ │ │ ├── report-json.vm
│ │ │ │ └── report-xml.vm
│ │ │ │ ├── home.vm
│ │ │ │ ├── error.vm
│ │ │ │ ├── gauge
│ │ │ │ └── home.vm
│ │ │ │ └── pathtracking
│ │ │ │ ├── pathtrackingdetail.vm
│ │ │ │ └── home.vm
│ │ │ ├── java
│ │ │ └── org
│ │ │ │ └── apache
│ │ │ │ └── sirona
│ │ │ │ └── reporting
│ │ │ │ └── web
│ │ │ │ ├── handler
│ │ │ │ └── HomeEndpoint.java
│ │ │ │ └── plugin
│ │ │ │ ├── jta
│ │ │ │ └── JTAPlugin.java
│ │ │ │ ├── jvm
│ │ │ │ └── JVMPlugin.java
│ │ │ │ ├── web
│ │ │ │ └── WebPlugin.java
│ │ │ │ ├── gauge
│ │ │ │ └── GaugePlugin.java
│ │ │ │ ├── report
│ │ │ │ ├── ReportPlugin.java
│ │ │ │ └── format
│ │ │ │ │ └── Format.java
│ │ │ │ ├── status
│ │ │ │ └── StatusPlugin.java
│ │ │ │ ├── jmx
│ │ │ │ └── JMXPlugin.java
│ │ │ │ ├── thread
│ │ │ │ └── ThreadPlugin.java
│ │ │ │ └── pathtracking
│ │ │ │ └── PathTrackingPlugin.java
│ │ │ └── webapp
│ │ │ └── WEB-INF
│ │ │ └── openejb-jar.xml
│ ├── reporting-ui
│ │ └── src
│ │ │ └── main
│ │ │ ├── webapp
│ │ │ ├── fonts
│ │ │ │ ├── glyphicons-halflings-regular.eot
│ │ │ │ ├── glyphicons-halflings-regular.ttf
│ │ │ │ └── glyphicons-halflings-regular.woff
│ │ │ ├── font-awesome-4.1.0
│ │ │ │ ├── fonts
│ │ │ │ │ ├── FontAwesome.otf
│ │ │ │ │ ├── fontawesome-webfont.eot
│ │ │ │ │ ├── fontawesome-webfont.ttf
│ │ │ │ │ └── fontawesome-webfont.woff
│ │ │ │ ├── less
│ │ │ │ │ ├── fixed-width.less
│ │ │ │ │ ├── core.less
│ │ │ │ │ ├── bordered-pulled.less
│ │ │ │ │ ├── rotated-flipped.less
│ │ │ │ │ ├── larger.less
│ │ │ │ │ ├── list.less
│ │ │ │ │ ├── font-awesome.less
│ │ │ │ │ ├── stacked.less
│ │ │ │ │ ├── path.less
│ │ │ │ │ ├── mixins.less
│ │ │ │ │ └── spinning.less
│ │ │ │ └── scss
│ │ │ │ │ ├── _fixed-width.scss
│ │ │ │ │ ├── _core.scss
│ │ │ │ │ ├── _bordered-pulled.scss
│ │ │ │ │ ├── _larger.scss
│ │ │ │ │ ├── _rotated-flipped.scss
│ │ │ │ │ ├── _list.scss
│ │ │ │ │ ├── font-awesome.scss
│ │ │ │ │ ├── _stacked.scss
│ │ │ │ │ ├── _path.scss
│ │ │ │ │ ├── _mixins.scss
│ │ │ │ │ └── _spinning.scss
│ │ │ ├── css
│ │ │ │ └── plugins
│ │ │ │ │ └── morris.0.5.0.css
│ │ │ ├── partials
│ │ │ │ ├── home.html
│ │ │ │ ├── report.html
│ │ │ │ ├── gauges.html
│ │ │ │ ├── jmx-detail.html
│ │ │ │ └── threads.html
│ │ │ └── js
│ │ │ │ └── app
│ │ │ │ ├── directives
│ │ │ │ └── directives.js
│ │ │ │ ├── filters
│ │ │ │ └── filters.js
│ │ │ │ └── controllers
│ │ │ │ └── controllers.js
│ │ │ └── web
│ │ │ └── web.xml
│ ├── reporting-webapp-full
│ │ └── src
│ │ │ ├── main
│ │ │ └── resources
│ │ │ │ └── META-INF
│ │ │ │ └── NOTICE
│ │ │ └── test
│ │ │ └── resources
│ │ │ └── sirona.properties
│ └── reporting-api
│ │ └── src
│ │ └── main
│ │ ├── java
│ │ └── org
│ │ │ └── apache
│ │ │ └── sirona
│ │ │ └── reporting
│ │ │ └── web
│ │ │ └── configuration
│ │ │ └── SironaApplication.java
│ │ └── resources
│ │ └── META-INF
│ │ └── web-fragment.xml
├── collector
│ └── src
│ │ └── main
│ │ ├── resources
│ │ ├── META-INF
│ │ │ └── NOTICE
│ │ └── collector-sirona.properties
│ │ ├── java
│ │ └── org
│ │ │ └── apache
│ │ │ └── sirona
│ │ │ └── collector
│ │ │ └── server
│ │ │ └── api
│ │ │ ├── SecurityProvider.java
│ │ │ └── SSLSocketFactoryProvider.java
│ │ └── webapp
│ │ └── WEB-INF
│ │ └── web.xml
└── store
│ ├── cassandra
│ └── src
│ │ └── test
│ │ ├── resources
│ │ ├── sirona.properties
│ │ └── log4j.xml
│ │ └── java
│ │ └── org
│ │ └── apache
│ │ └── sirona
│ │ └── cassandra
│ │ └── framework
│ │ └── CassandraTestInject.java
│ └── pom.xml
├── init-git-svn.sh
├── .gitignore
├── DISCLAIMER
├── core
└── src
│ ├── main
│ └── java
│ │ └── org
│ │ └── apache
│ │ └── sirona
│ │ ├── output
│ │ └── Output.java
│ │ ├── store
│ │ ├── tracking
│ │ │ └── DefaultPathTrackingDataStore.java
│ │ └── DataStoreFactory.java
│ │ └── gauges
│ │ └── jvm
│ │ ├── BaseMemoryGauge.java
│ │ ├── UsedMemoryGauge.java
│ │ ├── UsedNonHeapMemoryGauge.java
│ │ └── ActiveThreadGauge.java
│ └── test
│ └── resources
│ └── sirona.properties
├── src
└── site
│ └── markdown
│ └── index.md
└── alerter
└── pom.xml
/oldreportingUi.sh:
--------------------------------------------------------------------------------
1 | mvn tomcat7:run -pl :sirona-reporting-webapp -am
2 |
--------------------------------------------------------------------------------
/siteDeploy.sh:
--------------------------------------------------------------------------------
1 | mvn clean site site:stage $@
2 | mvn scm-publish:publish-scm $@
3 |
--------------------------------------------------------------------------------
/reportingUi.sh:
--------------------------------------------------------------------------------
1 | mvn process-test-resources tomcat7:run -pl :sirona-reporting-ui -am
2 |
--------------------------------------------------------------------------------
/reportingUiDebug.sh:
--------------------------------------------------------------------------------
1 | mvnDebug process-test-resources tomcat7:run -pl :sirona-reporting-ui -am
2 |
--------------------------------------------------------------------------------
/RETIRED.txt:
--------------------------------------------------------------------------------
1 | This podling has been retired, please see:
2 | http://incubator.apache.org/projects/index.html#sirona
3 |
--------------------------------------------------------------------------------
/agent/store/cube/src/test/resources/META-INF/services/org.apache.sirona.gauges.Gauge:
--------------------------------------------------------------------------------
1 | org.apache.sirona.cube.gauge.MockGauge
2 |
--------------------------------------------------------------------------------
/agent/performance/jta/src/main/resources/META-INF/services/org.apache.sirona.gauges.GaugeFactory:
--------------------------------------------------------------------------------
1 | org.apache.sirona.jta.JTAGauges
2 |
--------------------------------------------------------------------------------
/agent/store/graphite/src/test/resources/META-INF/services/org.apache.sirona.gauges.Gauge:
--------------------------------------------------------------------------------
1 | org.apache.sirona.graphite.gauge.MockGauge
2 |
--------------------------------------------------------------------------------
/agent/performance/jpa/src/main/resources/META-INF/services/javax.persistence.spi.PersistenceProvider:
--------------------------------------------------------------------------------
1 | org.apache.sirona.jpa.SironaPersistence
2 |
--------------------------------------------------------------------------------
/plugins/ehcache/agent/src/main/resources/META-INF/services/org.apache.sirona.gauges.GaugeFactory:
--------------------------------------------------------------------------------
1 | org.apache.sirona.agent.ehcache.EhCacheGaugeFactory
2 |
--------------------------------------------------------------------------------
/plugins/tomee/agent/src/main/resources/META-INF/services/org.apache.sirona.gauges.GaugeFactory:
--------------------------------------------------------------------------------
1 | org.apache.sirona.tomee.agent.gauge.TomEEGaugeFactory
2 |
--------------------------------------------------------------------------------
/agent/performance/cdi/src/main/resources/META-INF/services/javax.enterprise.inject.spi.Extension:
--------------------------------------------------------------------------------
1 | org.apache.sirona.cdi.internal.SironaPerformanceExtension
2 |
--------------------------------------------------------------------------------
/agent/performance/web/src/main/resources/META-INF/services/javax.servlet.ServletContainerInitializer:
--------------------------------------------------------------------------------
1 | org.apache.sirona.web.registration.WebSironaInitializer
2 |
--------------------------------------------------------------------------------
/plugins/hazelcast/agent/src/main/resources/META-INF/services/org.apache.sirona.gauges.GaugeFactory:
--------------------------------------------------------------------------------
1 | org.apache.sirona.plugin.hazelcast.agent.HazelcastGaugeFactory
2 |
--------------------------------------------------------------------------------
/plugins/hazelcast/gui/src/main/resources/META-INF/services/org.apache.sirona.reporting.web.plugin.api.Plugin:
--------------------------------------------------------------------------------
1 | org.apache.sirona.plugin.hazelcast.gui.HazelcastPlugin
2 |
--------------------------------------------------------------------------------
/plugins/tomee/agent/src/main/resources/META-INF/services/org.apache.sirona.status.ValidationFactory:
--------------------------------------------------------------------------------
1 | org.apache.sirona.tomee.agent.validation.TomEEValidationFactory
2 |
--------------------------------------------------------------------------------
/store/memory/src/main/resources/META-INF/services/org.apache.sirona.store.counter.CounterDataStore:
--------------------------------------------------------------------------------
1 | org.apache.sirona.store.memory.counter.InMemoryCollectorCounterStore
--------------------------------------------------------------------------------
/agent/pull/src/main/resources/META-INF/services/javax.servlet.ServletContainerInitializer:
--------------------------------------------------------------------------------
1 | org.apache.sirona.agent.webapp.pull.registration.SironaPullAgentRegistration
2 |
--------------------------------------------------------------------------------
/api/src/test/resources/META-INF/services/org.apache.sirona.util.BeerService:
--------------------------------------------------------------------------------
1 |
2 |
3 | #very nice service!!!
4 |
5 | org.apache.sirona.util.MoutainGoatBeerService
6 |
7 |
--------------------------------------------------------------------------------
/agent/javaagent/src/test/resources/META-INF/services/org.apache.sirona.pathtracking.PathTrackingInvocationListener:
--------------------------------------------------------------------------------
1 | org.apache.sirona.javaagent.listener.MockPathTrackingInvocationListener
--------------------------------------------------------------------------------
/server/reporting/reporting-webapp/src/main/resources/META-INF/services/javax.servlet.ServletContainerInitializer:
--------------------------------------------------------------------------------
1 | org.apache.sirona.reporting.web.registration.SironaReportingInitializer
2 |
--------------------------------------------------------------------------------
/agent/pull/src/test/resources/META-INF/services/org.apache.sirona.status.Validation:
--------------------------------------------------------------------------------
1 | org.apache.sirona.agent.webapp.pull.validation.FakeValidation
2 | org.apache.sirona.agent.webapp.pull.validation.ReFakeValidation
3 |
--------------------------------------------------------------------------------
/server/reporting/reporting-ui/src/main/webapp/fonts/glyphicons-halflings-regular.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/sirona/HEAD/server/reporting/reporting-ui/src/main/webapp/fonts/glyphicons-halflings-regular.eot
--------------------------------------------------------------------------------
/server/reporting/reporting-ui/src/main/webapp/fonts/glyphicons-halflings-regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/sirona/HEAD/server/reporting/reporting-ui/src/main/webapp/fonts/glyphicons-halflings-regular.ttf
--------------------------------------------------------------------------------
/agent/javaagent/src/main/resources/META-INF/services/org.apache.sirona.javaagent.spi.InvocationListener:
--------------------------------------------------------------------------------
1 | org.apache.sirona.javaagent.listener.CounterListener
2 | org.apache.sirona.javaagent.listener.PathTrackingListener
3 |
--------------------------------------------------------------------------------
/server/reporting/reporting-ui/src/main/webapp/font-awesome-4.1.0/fonts/FontAwesome.otf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/sirona/HEAD/server/reporting/reporting-ui/src/main/webapp/font-awesome-4.1.0/fonts/FontAwesome.otf
--------------------------------------------------------------------------------
/server/reporting/reporting-ui/src/main/webapp/fonts/glyphicons-halflings-regular.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/sirona/HEAD/server/reporting/reporting-ui/src/main/webapp/fonts/glyphicons-halflings-regular.woff
--------------------------------------------------------------------------------
/server/reporting/reporting-webapp/src/main/resources/resources/images/tree-closed.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/sirona/HEAD/server/reporting/reporting-webapp/src/main/resources/resources/images/tree-closed.gif
--------------------------------------------------------------------------------
/server/reporting/reporting-webapp/src/main/resources/resources/images/tree-opened.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/sirona/HEAD/server/reporting/reporting-webapp/src/main/resources/resources/images/tree-opened.gif
--------------------------------------------------------------------------------
/server/reporting/reporting-ui/src/main/webapp/font-awesome-4.1.0/less/fixed-width.less:
--------------------------------------------------------------------------------
1 | // Fixed Width Icons
2 | // -------------------------
3 | .@{fa-css-prefix}-fw {
4 | width: (18em / 14);
5 | text-align: center;
6 | }
7 |
--------------------------------------------------------------------------------
/server/reporting/reporting-ui/src/main/webapp/font-awesome-4.1.0/scss/_fixed-width.scss:
--------------------------------------------------------------------------------
1 | // Fixed Width Icons
2 | // -------------------------
3 | .#{$fa-css-prefix}-fw {
4 | width: (18em / 14);
5 | text-align: center;
6 | }
7 |
--------------------------------------------------------------------------------
/server/reporting/reporting-ui/src/main/webapp/font-awesome-4.1.0/fonts/fontawesome-webfont.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/sirona/HEAD/server/reporting/reporting-ui/src/main/webapp/font-awesome-4.1.0/fonts/fontawesome-webfont.eot
--------------------------------------------------------------------------------
/server/reporting/reporting-ui/src/main/webapp/font-awesome-4.1.0/fonts/fontawesome-webfont.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/sirona/HEAD/server/reporting/reporting-ui/src/main/webapp/font-awesome-4.1.0/fonts/fontawesome-webfont.ttf
--------------------------------------------------------------------------------
/server/reporting/reporting-webapp/src/main/resources/resources/images/glyphicons-halflings.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/sirona/HEAD/server/reporting/reporting-webapp/src/main/resources/resources/images/glyphicons-halflings.png
--------------------------------------------------------------------------------
/server/reporting/reporting-ui/src/main/webapp/font-awesome-4.1.0/fonts/fontawesome-webfont.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/sirona/HEAD/server/reporting/reporting-ui/src/main/webapp/font-awesome-4.1.0/fonts/fontawesome-webfont.woff
--------------------------------------------------------------------------------
/server/reporting/reporting-webapp/src/main/resources/resources/fonts/glyphicons-halflings-regular.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/sirona/HEAD/server/reporting/reporting-webapp/src/main/resources/resources/fonts/glyphicons-halflings-regular.eot
--------------------------------------------------------------------------------
/server/reporting/reporting-webapp/src/main/resources/resources/fonts/glyphicons-halflings-regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/sirona/HEAD/server/reporting/reporting-webapp/src/main/resources/resources/fonts/glyphicons-halflings-regular.ttf
--------------------------------------------------------------------------------
/server/reporting/reporting-webapp/src/main/resources/resources/fonts/glyphicons-halflings-regular.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/sirona/HEAD/server/reporting/reporting-webapp/src/main/resources/resources/fonts/glyphicons-halflings-regular.woff
--------------------------------------------------------------------------------
/init-git-svn.sh:
--------------------------------------------------------------------------------
1 | cd .git;wget http://git.apache.org/authors.txt; cd ..
2 | git config svn.authorsfile ".git/authors.txt"
3 | git svn init --prefix=origin/ --tags=tags --trunk=trunk --branches=branches https://svn.apache.org/repos/asf/incubator/sirona/
4 | git svn rebase
5 |
--------------------------------------------------------------------------------
/agent/javaagent/src/test/resources/META-INF/services/org.apache.sirona.javaagent.spi.InvocationListener:
--------------------------------------------------------------------------------
1 | org.apache.test.sirona.javaagent.HttpUrlConnectionAddHeaderTest$HttpUrlConnectionHeaderAdder
2 | org.apache.sirona.javaagent.listener.MockPathTrackingInvocationListener
3 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | target
2 | .idea/
3 | *.iml
4 | .site-content/
5 | out/
6 | agent/javaagent/dependency-reduced-pom.xml
7 | .java-version
8 |
9 | .project
10 | .settings/
11 | .classpath
12 |
13 | ## local testing files
14 | agentToTomcat.sh
15 | server/reporting/src/test/sirona.properties
16 | startCollector.sh
17 |
--------------------------------------------------------------------------------
/server/reporting/reporting-ui/src/main/webapp/font-awesome-4.1.0/less/core.less:
--------------------------------------------------------------------------------
1 | // Base Class Definition
2 | // -------------------------
3 |
4 | .@{fa-css-prefix} {
5 | display: inline-block;
6 | font-family: FontAwesome;
7 | font-style: normal;
8 | font-weight: normal;
9 | line-height: 1;
10 | -webkit-font-smoothing: antialiased;
11 | -moz-osx-font-smoothing: grayscale;
12 | }
13 |
--------------------------------------------------------------------------------
/server/reporting/reporting-ui/src/main/webapp/font-awesome-4.1.0/scss/_core.scss:
--------------------------------------------------------------------------------
1 | // Base Class Definition
2 | // -------------------------
3 |
4 | .#{$fa-css-prefix} {
5 | display: inline-block;
6 | font-family: FontAwesome;
7 | font-style: normal;
8 | font-weight: normal;
9 | line-height: 1;
10 | -webkit-font-smoothing: antialiased;
11 | -moz-osx-font-smoothing: grayscale;
12 | }
13 |
--------------------------------------------------------------------------------
/server/reporting/reporting-ui/src/main/webapp/font-awesome-4.1.0/less/bordered-pulled.less:
--------------------------------------------------------------------------------
1 | // Bordered & Pulled
2 | // -------------------------
3 |
4 | .@{fa-css-prefix}-border {
5 | padding: .2em .25em .15em;
6 | border: solid .08em @fa-border-color;
7 | border-radius: .1em;
8 | }
9 |
10 | .pull-right { float: right; }
11 | .pull-left { float: left; }
12 |
13 | .@{fa-css-prefix} {
14 | &.pull-left { margin-right: .3em; }
15 | &.pull-right { margin-left: .3em; }
16 | }
17 |
--------------------------------------------------------------------------------
/server/reporting/reporting-ui/src/main/webapp/font-awesome-4.1.0/less/rotated-flipped.less:
--------------------------------------------------------------------------------
1 | // Rotated & Flipped Icons
2 | // -------------------------
3 |
4 | .@{fa-css-prefix}-rotate-90 { .fa-icon-rotate(90deg, 1); }
5 | .@{fa-css-prefix}-rotate-180 { .fa-icon-rotate(180deg, 2); }
6 | .@{fa-css-prefix}-rotate-270 { .fa-icon-rotate(270deg, 3); }
7 |
8 | .@{fa-css-prefix}-flip-horizontal { .fa-icon-flip(-1, 1, 0); }
9 | .@{fa-css-prefix}-flip-vertical { .fa-icon-flip(1, -1, 2); }
10 |
--------------------------------------------------------------------------------
/server/reporting/reporting-ui/src/main/webapp/font-awesome-4.1.0/scss/_bordered-pulled.scss:
--------------------------------------------------------------------------------
1 | // Bordered & Pulled
2 | // -------------------------
3 |
4 | .#{$fa-css-prefix}-border {
5 | padding: .2em .25em .15em;
6 | border: solid .08em $fa-border-color;
7 | border-radius: .1em;
8 | }
9 |
10 | .pull-right { float: right; }
11 | .pull-left { float: left; }
12 |
13 | .#{$fa-css-prefix} {
14 | &.pull-left { margin-right: .3em; }
15 | &.pull-right { margin-left: .3em; }
16 | }
17 |
--------------------------------------------------------------------------------
/server/reporting/reporting-ui/src/main/webapp/css/plugins/morris.0.5.0.css:
--------------------------------------------------------------------------------
1 | .morris-hover{position:absolute;z-index:1000}.morris-hover.morris-default-style{border-radius:10px;padding:6px;color:#666;background:rgba(255,255,255,0.8);border:solid 2px rgba(230,230,230,0.8);font-family:sans-serif;font-size:12px;text-align:center}.morris-hover.morris-default-style .morris-hover-row-label{font-weight:bold;margin:0.25em 0}
2 | .morris-hover.morris-default-style .morris-hover-point{white-space:nowrap;margin:0.1em 0}
3 |
--------------------------------------------------------------------------------
/server/reporting/reporting-ui/src/main/webapp/font-awesome-4.1.0/less/larger.less:
--------------------------------------------------------------------------------
1 | // Icon Sizes
2 | // -------------------------
3 |
4 | /* makes the font 33% larger relative to the icon container */
5 | .@{fa-css-prefix}-lg {
6 | font-size: (4em / 3);
7 | line-height: (3em / 4);
8 | vertical-align: -15%;
9 | }
10 | .@{fa-css-prefix}-2x { font-size: 2em; }
11 | .@{fa-css-prefix}-3x { font-size: 3em; }
12 | .@{fa-css-prefix}-4x { font-size: 4em; }
13 | .@{fa-css-prefix}-5x { font-size: 5em; }
14 |
--------------------------------------------------------------------------------
/server/reporting/reporting-ui/src/main/webapp/font-awesome-4.1.0/scss/_larger.scss:
--------------------------------------------------------------------------------
1 | // Icon Sizes
2 | // -------------------------
3 |
4 | /* makes the font 33% larger relative to the icon container */
5 | .#{$fa-css-prefix}-lg {
6 | font-size: (4em / 3);
7 | line-height: (3em / 4);
8 | vertical-align: -15%;
9 | }
10 | .#{$fa-css-prefix}-2x { font-size: 2em; }
11 | .#{$fa-css-prefix}-3x { font-size: 3em; }
12 | .#{$fa-css-prefix}-4x { font-size: 4em; }
13 | .#{$fa-css-prefix}-5x { font-size: 5em; }
14 |
--------------------------------------------------------------------------------
/server/reporting/reporting-ui/src/main/webapp/font-awesome-4.1.0/less/list.less:
--------------------------------------------------------------------------------
1 | // List Icons
2 | // -------------------------
3 |
4 | .@{fa-css-prefix}-ul {
5 | padding-left: 0;
6 | margin-left: @fa-li-width;
7 | list-style-type: none;
8 | > li { position: relative; }
9 | }
10 | .@{fa-css-prefix}-li {
11 | position: absolute;
12 | left: -@fa-li-width;
13 | width: @fa-li-width;
14 | top: (2em / 14);
15 | text-align: center;
16 | &.@{fa-css-prefix}-lg {
17 | left: -@fa-li-width + (4em / 14);
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/server/reporting/reporting-ui/src/main/webapp/font-awesome-4.1.0/scss/_rotated-flipped.scss:
--------------------------------------------------------------------------------
1 | // Rotated & Flipped Icons
2 | // -------------------------
3 |
4 | .#{$fa-css-prefix}-rotate-90 { @include fa-icon-rotate(90deg, 1); }
5 | .#{$fa-css-prefix}-rotate-180 { @include fa-icon-rotate(180deg, 2); }
6 | .#{$fa-css-prefix}-rotate-270 { @include fa-icon-rotate(270deg, 3); }
7 |
8 | .#{$fa-css-prefix}-flip-horizontal { @include fa-icon-flip(-1, 1, 0); }
9 | .#{$fa-css-prefix}-flip-vertical { @include fa-icon-flip(1, -1, 2); }
10 |
--------------------------------------------------------------------------------
/server/reporting/reporting-ui/src/main/webapp/font-awesome-4.1.0/scss/_list.scss:
--------------------------------------------------------------------------------
1 | // List Icons
2 | // -------------------------
3 |
4 | .#{$fa-css-prefix}-ul {
5 | padding-left: 0;
6 | margin-left: $fa-li-width;
7 | list-style-type: none;
8 | > li { position: relative; }
9 | }
10 | .#{$fa-css-prefix}-li {
11 | position: absolute;
12 | left: -$fa-li-width;
13 | width: $fa-li-width;
14 | top: (2em / 14);
15 | text-align: center;
16 | &.#{$fa-css-prefix}-lg {
17 | left: -$fa-li-width + (4em / 14);
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/server/reporting/reporting-ui/src/main/webapp/font-awesome-4.1.0/scss/font-awesome.scss:
--------------------------------------------------------------------------------
1 | /*!
2 | * Font Awesome 4.1.0 by @davegandy - http://fontawesome.io - @fontawesome
3 | * License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License)
4 | */
5 |
6 | @import "variables";
7 | @import "mixins";
8 | @import "path";
9 | @import "core";
10 | @import "larger";
11 | @import "fixed-width";
12 | @import "list";
13 | @import "bordered-pulled";
14 | @import "spinning";
15 | @import "rotated-flipped";
16 | @import "stacked";
17 | @import "icons";
18 |
--------------------------------------------------------------------------------
/server/reporting/reporting-ui/src/main/webapp/font-awesome-4.1.0/less/font-awesome.less:
--------------------------------------------------------------------------------
1 | /*!
2 | * Font Awesome 4.1.0 by @davegandy - http://fontawesome.io - @fontawesome
3 | * License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License)
4 | */
5 |
6 | @import "variables.less";
7 | @import "mixins.less";
8 | @import "path.less";
9 | @import "core.less";
10 | @import "larger.less";
11 | @import "fixed-width.less";
12 | @import "list.less";
13 | @import "bordered-pulled.less";
14 | @import "spinning.less";
15 | @import "rotated-flipped.less";
16 | @import "stacked.less";
17 | @import "icons.less";
18 |
--------------------------------------------------------------------------------
/server/reporting/reporting-ui/src/main/webapp/font-awesome-4.1.0/less/stacked.less:
--------------------------------------------------------------------------------
1 | // Stacked Icons
2 | // -------------------------
3 |
4 | .@{fa-css-prefix}-stack {
5 | position: relative;
6 | display: inline-block;
7 | width: 2em;
8 | height: 2em;
9 | line-height: 2em;
10 | vertical-align: middle;
11 | }
12 | .@{fa-css-prefix}-stack-1x, .@{fa-css-prefix}-stack-2x {
13 | position: absolute;
14 | left: 0;
15 | width: 100%;
16 | text-align: center;
17 | }
18 | .@{fa-css-prefix}-stack-1x { line-height: inherit; }
19 | .@{fa-css-prefix}-stack-2x { font-size: 2em; }
20 | .@{fa-css-prefix}-inverse { color: @fa-inverse; }
21 |
--------------------------------------------------------------------------------
/server/reporting/reporting-ui/src/main/webapp/font-awesome-4.1.0/scss/_stacked.scss:
--------------------------------------------------------------------------------
1 | // Stacked Icons
2 | // -------------------------
3 |
4 | .#{$fa-css-prefix}-stack {
5 | position: relative;
6 | display: inline-block;
7 | width: 2em;
8 | height: 2em;
9 | line-height: 2em;
10 | vertical-align: middle;
11 | }
12 | .#{$fa-css-prefix}-stack-1x, .#{$fa-css-prefix}-stack-2x {
13 | position: absolute;
14 | left: 0;
15 | width: 100%;
16 | text-align: center;
17 | }
18 | .#{$fa-css-prefix}-stack-1x { line-height: inherit; }
19 | .#{$fa-css-prefix}-stack-2x { font-size: 2em; }
20 | .#{$fa-css-prefix}-inverse { color: $fa-inverse; }
21 |
--------------------------------------------------------------------------------
/server/reporting/reporting-webapp/src/main/resources/META-INF/services/org.apache.sirona.reporting.web.plugin.api.Plugin:
--------------------------------------------------------------------------------
1 | org.apache.sirona.reporting.web.plugin.report.ReportPlugin
2 | org.apache.sirona.reporting.web.plugin.gauge.GaugePlugin
3 | org.apache.sirona.reporting.web.plugin.status.StatusPlugin
4 | org.apache.sirona.reporting.web.plugin.jmx.JMXPlugin
5 | org.apache.sirona.reporting.web.plugin.jvm.JVMPlugin
6 | org.apache.sirona.reporting.web.plugin.jta.JTAPlugin
7 | org.apache.sirona.reporting.web.plugin.thread.ThreadPlugin
8 | org.apache.sirona.reporting.web.plugin.web.WebPlugin
9 | org.apache.sirona.reporting.web.plugin.pathtracking.PathTrackingPlugin
10 |
--------------------------------------------------------------------------------
/DISCLAIMER:
--------------------------------------------------------------------------------
1 | Apache Sirona is an effort undergoing incubation at the Apache Software
2 | Foundation (ASF), sponsored by the Apache Incubator PMC.
3 |
4 | Incubation is required of all newly accepted projects until a further review
5 | indicates that the infrastructure, communications, and decision making process
6 | have stabilized in a manner consistent with other successful ASF projects.
7 |
8 | While incubation status is not necessarily a reflection of the completeness
9 | or stability of the code, it does indicate that the project has yet to be
10 | fully endorsed by the ASF.
11 |
12 | For more information about the incubation status of the Apache Sirona project you
13 | can go to the following page:
14 |
15 | http://incubator.apache.org/projects/sirona.html
16 | http://sirona.incubator.apache.org
17 |
--------------------------------------------------------------------------------
/server/reporting/reporting-ui/src/main/webapp/font-awesome-4.1.0/scss/_path.scss:
--------------------------------------------------------------------------------
1 | /* FONT PATH
2 | * -------------------------- */
3 |
4 | @font-face {
5 | font-family: 'FontAwesome';
6 | src: url('#{$fa-font-path}/fontawesome-webfont.eot?v=#{$fa-version}');
7 | src: url('#{$fa-font-path}/fontawesome-webfont.eot?#iefix&v=#{$fa-version}') format('embedded-opentype'),
8 | url('#{$fa-font-path}/fontawesome-webfont.woff?v=#{$fa-version}') format('woff'),
9 | url('#{$fa-font-path}/fontawesome-webfont.ttf?v=#{$fa-version}') format('truetype'),
10 | url('#{$fa-font-path}/fontawesome-webfont.svg?v=#{$fa-version}#fontawesomeregular') format('svg');
11 | //src: url('#{$fa-font-path}/FontAwesome.otf') format('opentype'); // used when developing fonts
12 | font-weight: normal;
13 | font-style: normal;
14 | }
15 |
--------------------------------------------------------------------------------
/server/reporting/reporting-ui/src/main/webapp/font-awesome-4.1.0/less/path.less:
--------------------------------------------------------------------------------
1 | /* FONT PATH
2 | * -------------------------- */
3 |
4 | @font-face {
5 | font-family: 'FontAwesome';
6 | src: ~"url('@{fa-font-path}/fontawesome-webfont.eot?v=@{fa-version}')";
7 | src: ~"url('@{fa-font-path}/fontawesome-webfont.eot?#iefix&v=@{fa-version}') format('embedded-opentype')",
8 | ~"url('@{fa-font-path}/fontawesome-webfont.woff?v=@{fa-version}') format('woff')",
9 | ~"url('@{fa-font-path}/fontawesome-webfont.ttf?v=@{fa-version}') format('truetype')",
10 | ~"url('@{fa-font-path}/fontawesome-webfont.svg?v=@{fa-version}#fontawesomeregular') format('svg')";
11 | // src: url('@{fa-font-path}/FontAwesome.otf') format('opentype'); // used when developing fonts
12 | font-weight: normal;
13 | font-style: normal;
14 | }
15 |
--------------------------------------------------------------------------------
/server/reporting/reporting-ui/src/main/webapp/font-awesome-4.1.0/less/mixins.less:
--------------------------------------------------------------------------------
1 | // Mixins
2 | // --------------------------
3 |
4 | .fa-icon-rotate(@degrees, @rotation) {
5 | filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=@rotation);
6 | -webkit-transform: rotate(@degrees);
7 | -moz-transform: rotate(@degrees);
8 | -ms-transform: rotate(@degrees);
9 | -o-transform: rotate(@degrees);
10 | transform: rotate(@degrees);
11 | }
12 |
13 | .fa-icon-flip(@horiz, @vert, @rotation) {
14 | filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=@rotation, mirror=1);
15 | -webkit-transform: scale(@horiz, @vert);
16 | -moz-transform: scale(@horiz, @vert);
17 | -ms-transform: scale(@horiz, @vert);
18 | -o-transform: scale(@horiz, @vert);
19 | transform: scale(@horiz, @vert);
20 | }
21 |
--------------------------------------------------------------------------------
/server/reporting/reporting-ui/src/main/webapp/font-awesome-4.1.0/scss/_mixins.scss:
--------------------------------------------------------------------------------
1 | // Mixins
2 | // --------------------------
3 |
4 | @mixin fa-icon-rotate($degrees, $rotation) {
5 | filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=#{$rotation});
6 | -webkit-transform: rotate($degrees);
7 | -moz-transform: rotate($degrees);
8 | -ms-transform: rotate($degrees);
9 | -o-transform: rotate($degrees);
10 | transform: rotate($degrees);
11 | }
12 |
13 | @mixin fa-icon-flip($horiz, $vert, $rotation) {
14 | filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=#{$rotation});
15 | -webkit-transform: scale($horiz, $vert);
16 | -moz-transform: scale($horiz, $vert);
17 | -ms-transform: scale($horiz, $vert);
18 | -o-transform: scale($horiz, $vert);
19 | transform: scale($horiz, $vert);
20 | }
21 |
--------------------------------------------------------------------------------
/server/reporting/reporting-ui/src/main/webapp/partials/home.html:
--------------------------------------------------------------------------------
1 |
17 | home
--------------------------------------------------------------------------------
/server/collector/src/main/resources/META-INF/NOTICE:
--------------------------------------------------------------------------------
1 | SB Admin Theme
2 |
3 | website: http://startbootstrap.com/sb-admin
4 | license: Apache v2
5 |
6 | Based on Bootstrap. Icons by Font Awesome.
7 | Placeholder images by placehold.it, lorempixel, and placecreature.
8 |
9 | -------------------
10 |
11 | Twitter bootstrap
12 |
13 | website: http://getbootstrap.com/
14 | license: MIT
15 |
16 | -------------------
17 |
18 | Bootstrap datetimepicker
19 |
20 | website: https://github.com/eternicode/bootstrap-datepicker
21 | license: Apache v2
22 |
23 | -------------------
24 |
25 | Table sorter
26 |
27 | website: http://mottie.github.io/tablesorter/docs/index.html
28 | license: MIT
29 |
30 | -------------------
31 |
32 | JQuery
33 |
34 | website: https://jquery.org/license/
35 | license: MIT
36 |
37 | -------------------
38 |
39 | JQuery Flot
40 |
41 | website: http://www.flotcharts.org/
42 | license: MIT
43 |
--------------------------------------------------------------------------------
/server/reporting/reporting-webapp/src/main/resources/META-INF/NOTICE:
--------------------------------------------------------------------------------
1 | SB Admin Theme
2 |
3 | website: http://startbootstrap.com/sb-admin
4 | license: Apache v2
5 |
6 | Based on Bootstrap. Icons by Font Awesome.
7 | Placeholder images by placehold.it, lorempixel, and placecreature.
8 |
9 | -------------------
10 |
11 | Twitter bootstrap
12 |
13 | website: http://getbootstrap.com/
14 | license: MIT
15 |
16 | -------------------
17 |
18 | Bootstrap datetimepicker
19 |
20 | website: https://github.com/eternicode/bootstrap-datepicker
21 | license: Apache v2
22 |
23 | -------------------
24 |
25 | Table sorter
26 |
27 | website: http://mottie.github.io/tablesorter/docs/index.html
28 | license: MIT
29 |
30 | -------------------
31 |
32 | JQuery
33 |
34 | website: https://jquery.org/license/
35 | license: MIT
36 |
37 | -------------------
38 |
39 | JQuery Flot
40 |
41 | website: http://www.flotcharts.org/
42 | license: MIT
43 |
--------------------------------------------------------------------------------
/agent/performance/web/src/test/resources/sirona.properties:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one or more
2 | # contributor license agreements. See the NOTICE file distributed with
3 | # this work for additional information regarding copyright ownership.
4 | # The ASF licenses this file to You under the Apache License, Version 2.0
5 | # (the "License"); you may not use this file except in compliance with
6 | # the License. You may obtain a copy of the License at
7 | #
8 | # http://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS,
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | # See the License for the specific language governing permissions and
14 | # limitations under the License.
15 | org.apache.sirona.inmemory.gauge.period = 150
16 |
--------------------------------------------------------------------------------
/server/reporting/reporting-webapp-full/src/main/resources/META-INF/NOTICE:
--------------------------------------------------------------------------------
1 | SB Admin Theme
2 |
3 | website: http://startbootstrap.com/sb-admin
4 | license: Apache v2
5 |
6 | Based on Bootstrap. Icons by Font Awesome.
7 | Placeholder images by placehold.it, lorempixel, and placecreature.
8 |
9 | -------------------
10 |
11 | Twitter bootstrap
12 |
13 | website: http://getbootstrap.com/
14 | license: MIT
15 |
16 | -------------------
17 |
18 | Bootstrap datetimepicker
19 |
20 | website: https://github.com/eternicode/bootstrap-datepicker
21 | license: Apache v2
22 |
23 | -------------------
24 |
25 | Table sorter
26 |
27 | website: http://mottie.github.io/tablesorter/docs/index.html
28 | license: MIT
29 |
30 | -------------------
31 |
32 | JQuery
33 |
34 | website: https://jquery.org/license/
35 | license: MIT
36 |
37 | -------------------
38 |
39 | JQuery Flot
40 |
41 | website: http://www.flotcharts.org/
42 | license: MIT
43 |
--------------------------------------------------------------------------------
/agent/performance/jta/src/test/resources/sirona.properties:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one
2 | # or more contributor license agreements. See the NOTICE file
3 | # distributed with this work for additional information
4 | # regarding copyright ownership. The ASF licenses this file
5 | # to you under the Apache License, Version 2.0 (the
6 | # "License"); you may not use this file except in compliance
7 | # with the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing,
12 | # software distributed under the License is distributed on an
13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | # KIND, either express or implied. See the License for the
15 | # specific language governing permissions and limitations
16 | # under the License.
17 | org.apache.sirona.inmemory.gauge.period = 100
18 |
--------------------------------------------------------------------------------
/plugins/hazelcast/gui/src/test/resources/sirona.properties:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one
2 | # or more contributor license agreements. See the NOTICE file
3 | # distributed with this work for additional information
4 | # regarding copyright ownership. The ASF licenses this file
5 | # to you under the Apache License, Version 2.0 (the
6 | # "License"); you may not use this file except in compliance
7 | # with the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing,
12 | # software distributed under the License is distributed on an
13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | # KIND, either express or implied. See the License for the
15 | # specific language governing permissions and limitations
16 | # under the License.
17 | org.apache.sirona.inmemory.gauge.period = 100
18 |
--------------------------------------------------------------------------------
/server/reporting/reporting-ui/src/main/webapp/font-awesome-4.1.0/less/spinning.less:
--------------------------------------------------------------------------------
1 | // Spinning Icons
2 | // --------------------------
3 |
4 | .@{fa-css-prefix}-spin {
5 | -webkit-animation: spin 2s infinite linear;
6 | -moz-animation: spin 2s infinite linear;
7 | -o-animation: spin 2s infinite linear;
8 | animation: spin 2s infinite linear;
9 | }
10 |
11 | @-moz-keyframes spin {
12 | 0% { -moz-transform: rotate(0deg); }
13 | 100% { -moz-transform: rotate(359deg); }
14 | }
15 | @-webkit-keyframes spin {
16 | 0% { -webkit-transform: rotate(0deg); }
17 | 100% { -webkit-transform: rotate(359deg); }
18 | }
19 | @-o-keyframes spin {
20 | 0% { -o-transform: rotate(0deg); }
21 | 100% { -o-transform: rotate(359deg); }
22 | }
23 | @keyframes spin {
24 | 0% {
25 | -webkit-transform: rotate(0deg);
26 | transform: rotate(0deg);
27 | }
28 | 100% {
29 | -webkit-transform: rotate(359deg);
30 | transform: rotate(359deg);
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/server/reporting/reporting-ui/src/main/webapp/font-awesome-4.1.0/scss/_spinning.scss:
--------------------------------------------------------------------------------
1 | // Spinning Icons
2 | // --------------------------
3 |
4 | .#{$fa-css-prefix}-spin {
5 | -webkit-animation: spin 2s infinite linear;
6 | -moz-animation: spin 2s infinite linear;
7 | -o-animation: spin 2s infinite linear;
8 | animation: spin 2s infinite linear;
9 | }
10 |
11 | @-moz-keyframes spin {
12 | 0% { -moz-transform: rotate(0deg); }
13 | 100% { -moz-transform: rotate(359deg); }
14 | }
15 | @-webkit-keyframes spin {
16 | 0% { -webkit-transform: rotate(0deg); }
17 | 100% { -webkit-transform: rotate(359deg); }
18 | }
19 | @-o-keyframes spin {
20 | 0% { -o-transform: rotate(0deg); }
21 | 100% { -o-transform: rotate(359deg); }
22 | }
23 | @keyframes spin {
24 | 0% {
25 | -webkit-transform: rotate(0deg);
26 | transform: rotate(0deg);
27 | }
28 | 100% {
29 | -webkit-transform: rotate(359deg);
30 | transform: rotate(359deg);
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/server/reporting/reporting-ui/src/main/webapp/js/app/directives/directives.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | 'use strict';
18 |
19 | /* Directives */
20 |
--------------------------------------------------------------------------------
/server/reporting/reporting-ui/src/main/webapp/js/app/filters/filters.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | 'use strict';
18 |
19 | /* Filters */
20 |
21 |
--------------------------------------------------------------------------------
/plugins/tomee/agent/src/test/resources/sirona.properties:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one
2 | # or more contributor license agreements. See the NOTICE file
3 | # distributed with this work for additional information
4 | # regarding copyright ownership. The ASF licenses this file
5 | # to you under the Apache License, Version 2.0 (the
6 | # "License"); you may not use this file except in compliance
7 | # with the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing,
12 | # software distributed under the License is distributed on an
13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | # KIND, either express or implied. See the License for the
15 | # specific language governing permissions and limitations
16 | # under the License.
17 | org.apache.sirona.inmemory.gauge.period = 100
18 | org.apache.sirona.periodic.status.period = 100
19 |
--------------------------------------------------------------------------------
/agent/performance/cdi/src/test/resources/sirona.properties:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one
2 | # or more contributor license agreements. See the NOTICE file
3 | # distributed with this work for additional information
4 | # regarding copyright ownership. The ASF licenses this file
5 | # to you under the Apache License, Version 2.0 (the
6 | # "License"); you may not use this file except in compliance
7 | # with the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing,
12 | # software distributed under the License is distributed on an
13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | # KIND, either express or implied. See the License for the
15 | # specific language governing permissions and limitations
16 | # under the License.
17 | org.apache.sirona.cdi.performance = prefix:org.apache.sirona.cdi.SironaExtensionTest$AutoMonitoredBean
18 |
--------------------------------------------------------------------------------
/api/src/main/java/org/apache/sirona/status/Status.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.sirona.status;
18 |
19 | public enum Status {
20 | OK, DEGRADED, KO
21 | }
22 |
--------------------------------------------------------------------------------
/server/reporting/reporting-ui/src/main/webapp/partials/report.html:
--------------------------------------------------------------------------------
1 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/server/reporting/reporting-webapp/src/main/resources/templates/threads/thread.vm:
--------------------------------------------------------------------------------
1 | #*
2 | Licensed to the Apache Software Foundation (ASF) under one or more
3 | contributor license agreements. See the NOTICE file distributed with
4 | this work for additional information regarding copyright ownership.
5 | The ASF licenses this file to You under the Apache License, Version 2.0
6 | (the "License"); you may not use this file except in compliance with
7 | the License. You may obtain a copy of the License at
8 |
9 | http://www.apache.org/licenses/LICENSE-2.0
10 |
11 | Unless required by applicable law or agreed to in writing, software
12 | distributed under the License is distributed on an "AS IS" BASIS,
13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | See the License for the specific language governing permissions and
15 | limitations under the License.
16 | *#
17 |
18 | State: $state
19 |
20 |
21 | #if ($dump)
22 | $dump
23 | #end
24 |
--------------------------------------------------------------------------------
/core/src/main/java/org/apache/sirona/output/Output.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.sirona.output;
18 |
19 | public interface Output {
20 | void write(String line);
21 | }
22 |
--------------------------------------------------------------------------------
/api/src/main/java/org/apache/sirona/gauges/GaugeFactory.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.sirona.gauges;
18 |
19 | public interface GaugeFactory {
20 | Gauge[] gauges();
21 | }
22 |
--------------------------------------------------------------------------------
/api/src/main/java/org/apache/sirona/pathtracking/UniqueIdGenerator.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.sirona.pathtracking;
18 |
19 | public interface UniqueIdGenerator {
20 | String next();
21 | }
22 |
--------------------------------------------------------------------------------
/api/src/main/java/org/apache/sirona/status/Validation.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.sirona.status;
18 |
19 | public interface Validation {
20 | ValidationResult validate();
21 | }
22 |
--------------------------------------------------------------------------------
/server/reporting/reporting-webapp/src/main/resources/templates/report/report-csv.vm:
--------------------------------------------------------------------------------
1 | #*
2 | Licensed to the Apache Software Foundation (ASF) under one or more
3 | contributor license agreements. See the NOTICE file distributed with
4 | this work for additional information regarding copyright ownership.
5 | The ASF licenses this file to You under the Apache License, Version 2.0
6 | (the "License"); you may not use this file except in compliance with
7 | the License. You may obtain a copy of the License at
8 |
9 | http://www.apache.org/licenses/LICENSE-2.0
10 |
11 | Unless required by applicable law or agreed to in writing, software
12 | distributed under the License is distributed on an "AS IS" BASIS,
13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | See the License for the specific language governing permissions and
15 | limitations under the License.
16 | *#$headers#foreach ( $line in $lines )#foreach ( $item in $line )$item#if( $foreach.hasNext )$separator#end#end
17 |
18 | #end
19 |
--------------------------------------------------------------------------------
/server/store/cassandra/src/test/resources/sirona.properties:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one
2 | # or more contributor license agreements. See the NOTICE file
3 | # distributed with this work for additional information
4 | # regarding copyright ownership. The ASF licenses this file
5 | # to you under the Apache License, Version 2.0 (the
6 | # "License"); you may not use this file except in compliance
7 | # with the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing,
12 | # software distributed under the License is distributed on an
13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | # KIND, either express or implied. See the License for the
15 | # specific language governing permissions and limitations
16 | # under the License.
17 | org.apache.sirona.cassandra.CassandraBuilder.keyspace = TestCluster
18 | org.apache.sirona.cassandra.CassandraBuilder.hosts = localhost:9171
19 |
--------------------------------------------------------------------------------
/api/src/test/java/org/apache/sirona/util/BeerService.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.sirona.util;
18 |
19 |
20 | public interface BeerService
21 | {
22 |
23 | String getName();
24 |
25 | }
26 |
--------------------------------------------------------------------------------
/api/src/main/java/org/apache/sirona/status/ValidationFactory.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.sirona.status;
18 |
19 | public interface ValidationFactory {
20 | Validation[] validations();
21 | }
22 |
--------------------------------------------------------------------------------
/server/reporting/reporting-webapp/src/main/resources/templates/home.vm:
--------------------------------------------------------------------------------
1 | #*
2 | Licensed to the Apache Software Foundation (ASF) under one or more
3 | contributor license agreements. See the NOTICE file distributed with
4 | this work for additional information regarding copyright ownership.
5 | The ASF licenses this file to You under the Apache License, Version 2.0
6 | (the "License"); you may not use this file except in compliance with
7 | the License. You may obtain a copy of the License at
8 |
9 | http://www.apache.org/licenses/LICENSE-2.0
10 |
11 | Unless required by applicable law or agreed to in writing, software
12 | distributed under the License is distributed on an "AS IS" BASIS,
13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | See the License for the specific language governing permissions and
15 | limitations under the License.
16 | *#
17 | Home
18 |
19 |
20 | A list of available page is on the left. Click on one of them to access the desired information.
21 |
22 |
--------------------------------------------------------------------------------
/api/src/main/java/org/apache/sirona/gauges/GaugeAware.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.sirona.gauges;
18 |
19 | // allows a gauge datastore to hold gauges
20 | public interface GaugeAware {
21 | void addGauge(Gauge gauge);
22 | }
23 |
--------------------------------------------------------------------------------
/server/collector/src/main/java/org/apache/sirona/collector/server/api/SecurityProvider.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.sirona.collector.server.api;
18 |
19 | public interface SecurityProvider {
20 | String basicHeader(String url);
21 | }
22 |
--------------------------------------------------------------------------------
/server/collector/src/main/resources/collector-sirona.properties:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one
2 | # or more contributor license agreements. See the NOTICE file
3 | # distributed with this work for additional information
4 | # regarding copyright ownership. The ASF licenses this file
5 | # to you under the Apache License, Version 2.0 (the
6 | # "License"); you may not use this file except in compliance
7 | # with the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing,
12 | # software distributed under the License is distributed on an
13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | # KIND, either express or implied. See the License for the
15 | # specific language governing permissions and limitations
16 | # under the License.
17 |
18 | # collector data store to aggregate data
19 | org.apache.sirona.store.DataStoreFactory = org.apache.sirona.store.CollectorDataStoreFactory
20 | org.apache.sirona.core.gauge.activated = false
--------------------------------------------------------------------------------
/agent/performance/spring/src/test/java/org/apache/sirona/spring/service/MyService.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.sirona.spring.service;
18 |
19 | public class MyService {
20 | public String doIt() {
21 | return "ok";
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/agent/javaagent/src/main/java/org/apache/sirona/javaagent/spi/package-info.java:
--------------------------------------------------------------------------------
1 | package org.apache.sirona.javaagent.spi;/*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | /**
19 | * This package contains interfaces for listening object invocation with the Java agent.
20 | *
21 | *
22 | */
--------------------------------------------------------------------------------
/server/reporting/reporting-webapp/src/main/resources/templates/error.vm:
--------------------------------------------------------------------------------
1 | #*
2 | Licensed to the Apache Software Foundation (ASF) under one or more
3 | contributor license agreements. See the NOTICE file distributed with
4 | this work for additional information regarding copyright ownership.
5 | The ASF licenses this file to You under the Apache License, Version 2.0
6 | (the "License"); you may not use this file except in compliance with
7 | the License. You may obtain a copy of the License at
8 |
9 | http://www.apache.org/licenses/LICENSE-2.0
10 |
11 | Unless required by applicable law or agreed to in writing, software
12 | distributed under the License is distributed on an "AS IS" BASIS,
13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | See the License for the specific language governing permissions and
15 | limitations under the License.
16 | *#
17 |
18 |
Error
19 |
20 |
21 | An error occured.
22 |
23 |
24 | $exception
25 |
26 |
27 |
--------------------------------------------------------------------------------
/plugins/hazelcast/agent/src/test/resources/sirona.properties:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one
2 | # or more contributor license agreements. See the NOTICE file
3 | # distributed with this work for additional information
4 | # regarding copyright ownership. The ASF licenses this file
5 | # to you under the Apache License, Version 2.0 (the
6 | # "License"); you may not use this file except in compliance
7 | # with the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing,
12 | # software distributed under the License is distributed on an
13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | # KIND, either express or implied. See the License for the
15 | # specific language governing permissions and limitations
16 | # under the License.
17 | org.apache.sirona.hazelcast.clusters = cluster
18 | org.apache.sirona.hazelcast.cluster.client = true
19 | org.apache.sirona.hazelcast.cluster.addresses = localhost:5702
20 | org.apache.sirona.inmemory.gauge.period = 100
21 |
--------------------------------------------------------------------------------
/api/src/main/java/org/apache/sirona/store/gauge/Value.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.sirona.store.gauge;
18 |
19 | public interface Value {
20 | double getMean();
21 | double getMax();
22 | double getMin();
23 | long getN();
24 | double getSum();
25 | }
26 |
--------------------------------------------------------------------------------
/plugins/tomee/agent/src/main/java/org/apache/sirona/tomee/agent/Reflection.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.sirona.tomee.agent;
18 |
19 | public interface Reflection {
20 | final Object[] NO_PARAM = new Object[0];
21 | final Class>[] NO_PARAM_TYPES = new Class>[0];
22 | }
23 |
--------------------------------------------------------------------------------
/agent/javaagent/src/main/java/org/apache/sirona/javaagent/spi/InvocationListenerFactory.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.sirona.javaagent.spi;
18 |
19 | import java.util.Map;
20 |
21 | public interface InvocationListenerFactory {
22 | Map listeners();
23 | }
24 |
--------------------------------------------------------------------------------
/agent/performance/jdbc/src/main/java/org/apache/sirona/jdbc/ConnectionClosedCallBack.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | package org.apache.sirona.jdbc;
19 |
20 | /**
21 | * CallBack on connection beeing closed
22 | */
23 | public interface ConnectionClosedCallBack {
24 | void onConnectionClosed();
25 | }
--------------------------------------------------------------------------------
/agent/performance/aop/src/main/java/org/apache/sirona/aop/MonitorNameExtractor.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | package org.apache.sirona.aop;
19 |
20 | import java.lang.reflect.Method;
21 |
22 | public interface MonitorNameExtractor {
23 | String getMonitorName(Object instance, Method method);
24 | }
25 |
--------------------------------------------------------------------------------
/server/reporting/reporting-webapp-full/src/test/resources/sirona.properties:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one
2 | # or more contributor license agreements. See the NOTICE file
3 | # distributed with this work for additional information
4 | # regarding copyright ownership. The ASF licenses this file
5 | # to you under the Apache License, Version 2.0 (the
6 | # "License"); you may not use this file except in compliance
7 | # with the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing,
12 | # software distributed under the License is distributed on an
13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | # KIND, either express or implied. See the License for the
15 | # specific language governing permissions and limitations
16 | # under the License.
17 | org.apache.sirona.store.status.NodeStatusDataStore = org.apache.sirona.store.status.EmptyStatuses
18 | org.apache.sirona.store.tracking.PathTrackingDataStore = org.apache.sirona.store.memory.tracking.InMemoryPathTrackingDataStore
19 |
--------------------------------------------------------------------------------
/api/src/main/java/org/apache/sirona/store/tracking/CollectorPathTrackingDataStore.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | package org.apache.sirona.store.tracking;
19 |
20 | /**
21 | *
22 | */
23 | public interface CollectorPathTrackingDataStore
24 | extends PathTrackingDataStore
25 | {
26 | // no op
27 | }
28 |
--------------------------------------------------------------------------------
/api/src/main/java/org/apache/sirona/configuration/predicate/Predicate.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.sirona.configuration.predicate;
18 |
19 | public interface Predicate {
20 | String prefix();
21 | boolean matches(String value);
22 | void addConfiguration(String value, boolean negative);
23 | }
24 |
--------------------------------------------------------------------------------
/server/reporting/reporting-ui/src/main/webapp/partials/gauges.html:
--------------------------------------------------------------------------------
1 |
17 |
--------------------------------------------------------------------------------
/api/src/main/java/org/apache/sirona/counters/AggregatedCounter.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.sirona.counters;
18 |
19 | import java.util.Map;
20 |
21 | // we need to be able to unpack an aggregation to print details
22 | public interface AggregatedCounter {
23 | Map aggregated();
24 | }
25 |
--------------------------------------------------------------------------------
/plugins/hazelcast/gui/src/main/resources/templates/hazelcast/home.vm:
--------------------------------------------------------------------------------
1 | #*
2 | Licensed to the Apache Software Foundation (ASF) under one or more
3 | contributor license agreements. See the NOTICE file distributed with
4 | this work for additional information regarding copyright ownership.
5 | The ASF licenses this file to You under the Apache License, Version 2.0
6 | (the "License"); you may not use this file except in compliance with
7 | the License. You may obtain a copy of the License at
8 |
9 | http://www.apache.org/licenses/LICENSE-2.0
10 |
11 | Unless required by applicable law or agreed to in writing, software
12 | distributed under the License is distributed on an "AS IS" BASIS,
13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | See the License for the specific language governing permissions and
15 | limitations under the License.
16 | *#
17 | Hazelcast
18 |
19 |
20 | You can choose to see:
21 |
25 |
26 |
--------------------------------------------------------------------------------
/server/collector/src/main/java/org/apache/sirona/collector/server/api/SSLSocketFactoryProvider.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.sirona.collector.server.api;
18 |
19 | import javax.net.ssl.SSLSocketFactory;
20 |
21 | public interface SSLSocketFactoryProvider {
22 | SSLSocketFactory sslSocketFactory(String url);
23 | }
24 |
--------------------------------------------------------------------------------
/api/src/main/java/org/apache/sirona/pathtracking/DefaultUniqueIdGenerator.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.sirona.pathtracking;
18 |
19 | import java.util.UUID;
20 |
21 | public class DefaultUniqueIdGenerator implements UniqueIdGenerator {
22 | public String next() {
23 | return "Sirona-" + UUID.randomUUID().toString();
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/server/reporting/reporting-ui/src/main/webapp/partials/jmx-detail.html:
--------------------------------------------------------------------------------
1 |
17 |
18 |
21 |
22 | jmx detail: {{::mbean.description}}
23 |
24 |
--------------------------------------------------------------------------------
/agent/javaagent/src/main/java/org/apache/sirona/javaagent/package-info.java:
--------------------------------------------------------------------------------
1 | package org.apache.sirona.javaagent;/*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | /**
19 | * This package contains classes for the Java agent.
20 | * The Agent class {@link org.apache.sirona.javaagent.SironaAgent}
21 | * The ASM bytecode transformation logic.
22 | *
23 | *
24 | */
--------------------------------------------------------------------------------
/api/src/main/java/org/apache/sirona/store/gauge/GaugeDataStore.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.sirona.store.gauge;
18 |
19 | import org.apache.sirona.Role;
20 |
21 | public interface GaugeDataStore extends CommonGaugeDataStore {
22 | void createOrNoopGauge(Role role);
23 |
24 | void addToGauge(Role role, long time, double value);
25 | }
26 |
--------------------------------------------------------------------------------
/server/reporting/reporting-webapp/src/main/resources/templates/report/report-json.vm:
--------------------------------------------------------------------------------
1 | #*
2 | Licensed to the Apache Software Foundation (ASF) under one or more
3 | contributor license agreements. See the NOTICE file distributed with
4 | this work for additional information regarding copyright ownership.
5 | The ASF licenses this file to You under the Apache License, Version 2.0
6 | (the "License"); you may not use this file except in compliance with
7 | the License. You may obtain a copy of the License at
8 |
9 | http://www.apache.org/licenses/LICENSE-2.0
10 |
11 | Unless required by applicable law or agreed to in writing, software
12 | distributed under the License is distributed on an "AS IS" BASIS,
13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | See the License for the specific language governing permissions and
15 | limitations under the License.
16 | *#{"counters":[
17 | #foreach ( $counter in $counters )
18 | {"name":"$counter.key.name", "role":"$counter.key.role.name","unit":"$counter.key.role.unit.name",#foreach ( $md in $MetricData.values())"$md.name()":"$md.value($counter)"#if( $foreach.hasNext ),#end#end}
19 | #end
20 | ]}
21 |
--------------------------------------------------------------------------------
/agent/javaagent/src/main/java/org/apache/sirona/javaagent/listener/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | /**
19 | * This package contains default {@link org.apache.sirona.javaagent.spi.InvocationListener} implementations.
20 | * And an easy implementation to override {@link org.apache.sirona.javaagent.listener.ConfigurableListener}
21 | *
22 | *
23 | */
--------------------------------------------------------------------------------
/api/src/main/java/org/apache/sirona/store/status/CollectorNodeStatusDataStore.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.sirona.store.status;
18 |
19 | import org.apache.sirona.status.NodeStatus;
20 |
21 | import java.util.Map;
22 |
23 | public interface CollectorNodeStatusDataStore extends NodeStatusDataStore {
24 | void store(String node, NodeStatus status);
25 | }
26 |
--------------------------------------------------------------------------------
/src/site/markdown/index.md:
--------------------------------------------------------------------------------
1 |
19 | ## About
20 |
21 | Apache Sirona provides a simple, lightweight toolkit to instrument java application monitoring capabilities, including
22 | performances and thread concurrency.
23 |
24 | More documentation is available in the [Main site](http://sirona.incubator.apache.org)
25 |
26 | Changelog for the current version available [Here](./jira-report.html)
27 |
--------------------------------------------------------------------------------
/api/src/main/java/org/apache/sirona/spi/SPI.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.sirona.spi;
18 |
19 | import org.apache.sirona.configuration.ioc.IoCs;
20 |
21 | // ServiceLoader is sometimes just wrong
22 | public interface SPI {
23 | SPI INSTANCE = IoCs.findOrCreateInstance(SPI.class);
24 |
25 | Iterable find( Class api, ClassLoader loader );
26 | }
27 |
--------------------------------------------------------------------------------
/server/reporting/reporting-ui/src/main/web/web.xml:
--------------------------------------------------------------------------------
1 |
2 |
18 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/server/reporting/reporting-api/src/main/java/org/apache/sirona/reporting/web/configuration/SironaApplication.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.sirona.reporting.web.configuration;
18 |
19 | import javax.ws.rs.ApplicationPath;
20 | import javax.ws.rs.core.Application;
21 |
22 | @ApplicationPath("restServices")
23 | public class SironaApplication extends Application {
24 | }
25 |
--------------------------------------------------------------------------------
/server/reporting/reporting-webapp/src/main/resources/templates/gauge/home.vm:
--------------------------------------------------------------------------------
1 | #*
2 | Licensed to the Apache Software Foundation (ASF) under one or more
3 | contributor license agreements. See the NOTICE file distributed with
4 | this work for additional information regarding copyright ownership.
5 | The ASF licenses this file to You under the Apache License, Version 2.0
6 | (the "License"); you may not use this file except in compliance with
7 | the License. You may obtain a copy of the License at
8 |
9 | http://www.apache.org/licenses/LICENSE-2.0
10 |
11 | Unless required by applicable law or agreed to in writing, software
12 | distributed under the License is distributed on an "AS IS" BASIS,
13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | See the License for the specific language governing permissions and
15 | limitations under the License.
16 | *#
17 | Gauges
18 |
19 |
20 | Here is the list of available gauges, click on one of them to get its details:
21 |
22 | #foreach ($gauge in $gauges.entrySet())
23 | - $gauge.key
24 | #end
25 |
26 |
27 |
--------------------------------------------------------------------------------
/agent/performance/cdi/src/test/resources/META-INF/beans.xml:
--------------------------------------------------------------------------------
1 |
2 |
20 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/api/src/main/java/org/apache/sirona/spi/DefaultSPI.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.sirona.spi;
18 |
19 | import org.apache.sirona.util.SironaServiceLoader;
20 |
21 | public class DefaultSPI implements SPI {
22 | @Override
23 | public Iterable find(final Class api, final ClassLoader loader) {
24 | return SironaServiceLoader.load( api, loader );
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/core/src/main/java/org/apache/sirona/store/tracking/DefaultPathTrackingDataStore.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.sirona.store.tracking;
18 |
19 | import org.apache.sirona.store.memory.tracking.InMemoryPathTrackingDataStore;
20 |
21 | /**
22 | *
23 | */
24 | public class DefaultPathTrackingDataStore
25 | extends InMemoryPathTrackingDataStore
26 | {
27 | // no op just to ease users life
28 | }
29 |
--------------------------------------------------------------------------------
/api/src/test/java/org/apache/sirona/util/MoutainGoatBeerService.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.sirona.util;
18 |
19 |
20 | /**
21 | * @author Olivier Lamy
22 | */
23 | public class MoutainGoatBeerService
24 | implements BeerService
25 | {
26 | public static final String NAME = "I'm the best Aussie beer";
27 |
28 | public String getName()
29 | {
30 | return NAME;
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/api/src/main/java/org/apache/sirona/spi/Order.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.sirona.spi;
18 |
19 | import java.lang.annotation.ElementType;
20 | import java.lang.annotation.Retention;
21 | import java.lang.annotation.RetentionPolicy;
22 | import java.lang.annotation.Target;
23 |
24 | @Retention(RetentionPolicy.RUNTIME)
25 | @Target(ElementType.TYPE)
26 | public @interface Order {
27 | int value();
28 | }
29 |
--------------------------------------------------------------------------------
/agent/javaagent/src/test/java/org/apache/sirona/javaagent/AfterFork.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.sirona.javaagent;
18 |
19 | import java.lang.annotation.ElementType;
20 | import java.lang.annotation.Retention;
21 | import java.lang.annotation.RetentionPolicy;
22 | import java.lang.annotation.Target;
23 |
24 | @Retention(RetentionPolicy.RUNTIME)
25 | @Target(ElementType.METHOD)
26 | public @interface AfterFork {
27 | }
28 |
--------------------------------------------------------------------------------
/api/src/main/java/org/apache/sirona/configuration/ioc/AutoSet.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.sirona.configuration.ioc;
18 |
19 | import java.lang.annotation.ElementType;
20 | import java.lang.annotation.Retention;
21 | import java.lang.annotation.RetentionPolicy;
22 | import java.lang.annotation.Target;
23 |
24 | @Retention(RetentionPolicy.RUNTIME)
25 | @Target(ElementType.TYPE)
26 | public @interface AutoSet {
27 | }
28 |
--------------------------------------------------------------------------------
/api/src/main/java/org/apache/sirona/configuration/ioc/Created.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.sirona.configuration.ioc;
18 |
19 | import java.lang.annotation.ElementType;
20 | import java.lang.annotation.Retention;
21 | import java.lang.annotation.RetentionPolicy;
22 | import java.lang.annotation.Target;
23 |
24 | @Retention(RetentionPolicy.RUNTIME)
25 | @Target(ElementType.METHOD)
26 | public @interface Created {
27 | }
28 |
--------------------------------------------------------------------------------
/agent/javaagent/src/test/java/org/apache/sirona/javaagent/BeforeFork.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.sirona.javaagent;
18 |
19 | import java.lang.annotation.ElementType;
20 | import java.lang.annotation.Retention;
21 | import java.lang.annotation.RetentionPolicy;
22 | import java.lang.annotation.Target;
23 |
24 | @Retention(RetentionPolicy.RUNTIME)
25 | @Target(ElementType.METHOD)
26 | public @interface BeforeFork {
27 | }
28 |
--------------------------------------------------------------------------------
/api/src/main/java/org/apache/sirona/configuration/ioc/Destroying.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.sirona.configuration.ioc;
18 |
19 | import java.lang.annotation.ElementType;
20 | import java.lang.annotation.Retention;
21 | import java.lang.annotation.RetentionPolicy;
22 | import java.lang.annotation.Target;
23 |
24 | @Retention(RetentionPolicy.RUNTIME)
25 | @Target(ElementType.METHOD)
26 | public @interface Destroying {
27 | }
28 |
--------------------------------------------------------------------------------
/api/src/main/java/org/apache/sirona/counters/jmx/CounterJMXMBean.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.sirona.counters.jmx;
18 |
19 | public interface CounterJMXMBean {
20 | double getMax();
21 |
22 | double getMin();
23 |
24 | long getHits();
25 |
26 | double getSum();
27 |
28 | double getStandardDeviation();
29 |
30 | double getMean();
31 |
32 | String getRole();
33 |
34 | String getName();
35 | }
36 |
--------------------------------------------------------------------------------
/api/src/test/resources/sirona.properties:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one
2 | # or more contributor license agreements. See the NOTICE file
3 | # distributed with this work for additional information
4 | # regarding copyright ownership. The ASF licenses this file
5 | # to you under the Apache License, Version 2.0 (the
6 | # "License"); you may not use this file except in compliance
7 | # with the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing,
12 | # software distributed under the License is distributed on an
13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | # KIND, either express or implied. See the License for the
15 | # specific language governing permissions and limitations
16 | # under the License.
17 | org.apache.sirona.spi.SPI = org.apache.sirona.spi.SpiTestImpl
18 |
19 | org.apache.sirona.ehcache.methods=foo;bar;beer
20 |
21 | org.apache.sirona.goodbeer=true
22 |
23 | org.apache.sirona.configuration.IoCsTest$Field.field = field-value
24 | org.apache.sirona.configuration.IoCsTest$Method.method = method-value
25 | org.apache.sirona.configuration.IoCsTest$MethodNotField.methodNotField = method-value-again
26 |
--------------------------------------------------------------------------------
/agent/store/graphite/src/test/resources/sirona.properties:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one
2 | # or more contributor license agreements. See the NOTICE file
3 | # distributed with this work for additional information
4 | # regarding copyright ownership. The ASF licenses this file
5 | # to you under the Apache License, Version 2.0 (the
6 | # "License"); you may not use this file except in compliance
7 | # with the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing,
12 | # software distributed under the License is distributed on an
13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | # KIND, either express or implied. See the License for the
15 | # specific language governing permissions and limitations
16 | # under the License.
17 | org.apache.sirona.store.DataStoreFactory = org.apache.sirona.graphite.GraphiteDataStoreFactory
18 |
19 | org.apache.sirona.graphite.aggregated.gauge.period = 200
20 | org.apache.sirona.graphite.period = 125
21 |
22 | org.apache.sirona.graphite.GraphiteBuilder.address = localhost
23 | org.apache.sirona.graphite.GraphiteBuilder.port = 1234
24 |
25 | org.apache.sirona.core.gauge.activated = false
26 |
--------------------------------------------------------------------------------
/core/src/main/java/org/apache/sirona/gauges/jvm/BaseMemoryGauge.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.sirona.gauges.jvm;
18 |
19 | import org.apache.sirona.gauges.Gauge;
20 |
21 | import java.lang.management.ManagementFactory;
22 | import java.lang.management.MemoryMXBean;
23 |
24 | public abstract class BaseMemoryGauge implements Gauge {
25 | protected static final MemoryMXBean MEMORY_MX_BEAN = ManagementFactory.getMemoryMXBean();
26 | }
27 |
--------------------------------------------------------------------------------
/server/reporting/reporting-webapp/src/main/java/org/apache/sirona/reporting/web/handler/HomeEndpoint.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.sirona.reporting.web.handler;
18 |
19 | import org.apache.sirona.reporting.web.plugin.api.Regex;
20 | import org.apache.sirona.reporting.web.plugin.api.Template;
21 |
22 | public class HomeEndpoint {
23 | @Regex
24 | public Template home() {
25 | return new Template("home.vm");
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/server/reporting/reporting-webapp/src/main/resources/templates/pathtracking/pathtrackingdetail.vm:
--------------------------------------------------------------------------------
1 | #*
2 | Licensed to the Apache Software Foundation (ASF) under one or more
3 | contributor license agreements. See the NOTICE file distributed with
4 | this work for additional information regarding copyright ownership.
5 | The ASF licenses this file to You under the Apache License, Version 2.0
6 | (the "License"); you may not use this file except in compliance with
7 | the License. You may obtain a copy of the License at
8 |
9 | http://www.apache.org/licenses/LICENSE-2.0
10 |
11 | Unless required by applicable law or agreed to in writing, software
12 | distributed under the License is distributed on an "AS IS" BASIS,
13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | See the License for the specific language governing permissions and
15 | limitations under the License.
16 | *#
17 |
18 |
19 |
20 |
21 | #foreach( $entry in $entries)
22 | - $entry.className:$entry.methodName:$entry.level:$entry.executionTime
23 | #end
24 |
25 |
26 |
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/api/src/main/java/org/apache/sirona/SironaException.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.sirona;
18 |
19 | public class SironaException extends RuntimeException {
20 | public SironaException(final Throwable e) {
21 | super(e);
22 | }
23 |
24 | public SironaException(final String s) {
25 | super(s);
26 | }
27 |
28 | public SironaException( String s, Throwable throwable ) {
29 | super( s, throwable );
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/server/store/cassandra/src/test/resources/log4j.xml:
--------------------------------------------------------------------------------
1 |
2 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/server/reporting/reporting-ui/src/main/webapp/js/app/controllers/controllers.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | 'use strict';
18 |
19 | /* Controllers */
20 | define(['angular'], function (){
21 |
22 | var dayDuration = 24 * 3600 * 1000;
23 |
24 | var homeControllers = angular.module('homeControllers', []);
25 |
26 | homeControllers.controller( 'HomeCtrl', ['$scope', function ( $scope ){
27 | console.log("HomeCtrl");
28 | }]);
29 |
30 | });
31 |
32 |
33 |
34 |
35 |
36 |
--------------------------------------------------------------------------------
/server/reporting/reporting-webapp/src/main/resources/templates/report/report-xml.vm:
--------------------------------------------------------------------------------
1 | #*
2 | Licensed to the Apache Software Foundation (ASF) under one or more
3 | contributor license agreements. See the NOTICE file distributed with
4 | this work for additional information regarding copyright ownership.
5 | The ASF licenses this file to You under the Apache License, Version 2.0
6 | (the "License"); you may not use this file except in compliance with
7 | the License. You may obtain a copy of the License at
8 |
9 | http://www.apache.org/licenses/LICENSE-2.0
10 |
11 | Unless required by applicable law or agreed to in writing, software
12 | distributed under the License is distributed on an "AS IS" BASIS,
13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | See the License for the specific language governing permissions and
15 | limitations under the License.
16 | *#
17 |
18 | #foreach ( $counter in $counters )
19 |
26 | #end
27 |
28 |
--------------------------------------------------------------------------------
/agent/performance/jta/src/main/resources/META-INF/beans.xml:
--------------------------------------------------------------------------------
1 |
2 |
20 |
23 |
24 | org.apache.sirona.jta.JTAInterceptor
25 |
26 |
27 |
--------------------------------------------------------------------------------
/agent/performance/cdi/src/main/resources/META-INF/beans.xml:
--------------------------------------------------------------------------------
1 |
2 |
20 |
23 |
24 | org.apache.sirona.cdi.SironaInterceptor
25 |
26 |
27 |
--------------------------------------------------------------------------------
/agent/javaagent/src/test/java/org/apache/sirona/javaagent/Transformers.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.sirona.javaagent;
18 |
19 | import java.lang.annotation.ElementType;
20 | import java.lang.annotation.Retention;
21 | import java.lang.annotation.RetentionPolicy;
22 | import java.lang.annotation.Target;
23 |
24 | @Target(ElementType.TYPE)
25 | @Retention(RetentionPolicy.RUNTIME)
26 | public @interface Transformers {
27 | Class>[] value() default { SironaTransformer.class };
28 | }
29 |
--------------------------------------------------------------------------------
/api/src/main/java/org/apache/sirona/store/status/NodeStatusDataStore.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.sirona.store.status;
18 |
19 | import org.apache.sirona.alert.AlertListener;
20 | import org.apache.sirona.status.NodeStatus;
21 |
22 | import java.util.Map;
23 |
24 | public interface NodeStatusDataStore {
25 | Map statuses();
26 | void reset();
27 |
28 | void addAlerter(AlertListener listener);
29 | void removeAlerter(AlertListener listener);
30 | }
31 |
--------------------------------------------------------------------------------
/server/store/cassandra/src/test/java/org/apache/sirona/cassandra/framework/CassandraTestInject.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.sirona.cassandra.framework;
18 |
19 | import java.lang.annotation.ElementType;
20 | import java.lang.annotation.Retention;
21 | import java.lang.annotation.RetentionPolicy;
22 | import java.lang.annotation.Target;
23 |
24 | @Target(ElementType.FIELD)
25 | @Retention(RetentionPolicy.RUNTIME)
26 | public @interface CassandraTestInject {
27 | String value() default "";
28 | }
29 |
--------------------------------------------------------------------------------
/agent/performance/cdi/src/main/java/org/apache/sirona/cdi/Monitored.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.sirona.cdi;
18 |
19 | import javax.interceptor.InterceptorBinding;
20 | import java.lang.annotation.ElementType;
21 | import java.lang.annotation.Retention;
22 | import java.lang.annotation.RetentionPolicy;
23 | import java.lang.annotation.Target;
24 |
25 | @InterceptorBinding
26 | @Target({ElementType.TYPE, ElementType.METHOD})
27 | @Retention(RetentionPolicy.RUNTIME)
28 | public @interface Monitored {
29 | }
30 |
--------------------------------------------------------------------------------
/api/src/main/java/org/apache/sirona/configuration/ConfigurationProvider.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.sirona.configuration;
18 |
19 | import java.util.Properties;
20 |
21 | public interface ConfigurationProvider {
22 | /**
23 | * @return the order of this provider (system properties are 100 and sirona.properties is 50)
24 | */
25 | int ordinal();
26 |
27 | /**
28 | * @return the properties to contribute to the configuration
29 | */
30 | Properties configuration();
31 | }
32 |
--------------------------------------------------------------------------------
/api/src/main/java/org/apache/sirona/store/gauge/CommonGaugeDataStore.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.sirona.store.gauge;
18 |
19 | import org.apache.sirona.Role;
20 |
21 | import java.util.Collection;
22 | import java.util.SortedMap;
23 |
24 | public interface CommonGaugeDataStore {
25 | SortedMap getGaugeValues(GaugeValuesRequest gaugeValuesRequest);
26 |
27 | Collection gauges();
28 |
29 | Role findGaugeRole(String name);
30 |
31 | void gaugeStopped(Role gauge);
32 | }
33 |
--------------------------------------------------------------------------------
/agent/performance/jta/src/main/java/org/apache/sirona/jta/JTAMonitored.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.sirona.jta;
18 |
19 | import javax.interceptor.InterceptorBinding;
20 | import java.lang.annotation.ElementType;
21 | import java.lang.annotation.Retention;
22 | import java.lang.annotation.RetentionPolicy;
23 | import java.lang.annotation.Target;
24 |
25 | @InterceptorBinding
26 | @Target({ElementType.TYPE, ElementType.METHOD})
27 | @Retention(RetentionPolicy.RUNTIME)
28 | public @interface JTAMonitored {
29 | }
30 |
--------------------------------------------------------------------------------
/api/src/main/java/org/apache/sirona/stopwatches/StopWatch.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | package org.apache.sirona.stopwatches;
19 |
20 | /**
21 | * Instrumentation tool to compute resource consumption of some code fragment execution.
22 | *
23 | * StopWatch implementation is supposed not to be thread-safe and to be a one-shot tool. Don't
24 | * share it beetween threads, don't try to reuse it.
25 | *
26 | *
27 | */
28 | public interface StopWatch {
29 | long getElapsedTime();
30 |
31 | StopWatch stop();
32 | }
--------------------------------------------------------------------------------
/agent/pull/src/test/java/org/apache/sirona/agent/webapp/pull/validation/FakeValidation.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.sirona.agent.webapp.pull.validation;
18 |
19 | import org.apache.sirona.status.Status;
20 | import org.apache.sirona.status.Validation;
21 | import org.apache.sirona.status.ValidationResult;
22 |
23 | public class FakeValidation implements Validation {
24 | @Override
25 | public ValidationResult validate() {
26 | return new ValidationResult("fake", Status.OK, "descr");
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/agent/pull/src/test/java/org/apache/sirona/agent/webapp/pull/validation/ReFakeValidation.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.sirona.agent.webapp.pull.validation;
18 |
19 | import org.apache.sirona.status.Status;
20 | import org.apache.sirona.status.Validation;
21 | import org.apache.sirona.status.ValidationResult;
22 |
23 | public class ReFakeValidation implements Validation {
24 | @Override
25 | public ValidationResult validate() {
26 | return new ValidationResult("refake", Status.OK, "descr");
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/api/src/main/java/org/apache/sirona/store/counter/CounterDataStore.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.sirona.store.counter;
18 |
19 | import org.apache.sirona.counters.Counter;
20 |
21 | import java.util.Collection;
22 |
23 | public interface CounterDataStore {
24 | Counter getOrCreateCounter(Counter.Key key);
25 |
26 | void clearCounters();
27 |
28 | Collection getCounters();
29 |
30 | void addToCounter(Counter defaultCounter, double delta); // sensitive method which need to be thread safe
31 | }
32 |
--------------------------------------------------------------------------------
/api/src/main/java/org/apache/sirona/pathtracking/PathTrackingInvocationListener.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.sirona.pathtracking;
18 |
19 | /**
20 | * @since 0.2
21 | */
22 | public interface PathTrackingInvocationListener
23 | {
24 |
25 | void startPath( Context context );
26 |
27 | void enterMethod( PathTrackingInformation pathTrackingInformation );// Context context );
28 |
29 | void exitMethod( PathTrackingInformation pathTrackingInformation );// Context context );
30 |
31 | void endPath( Context context );
32 |
33 | }
34 |
--------------------------------------------------------------------------------
/plugins/api/src/main/java/org/apache/sirona/reporting/web/plugin/api/Local.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.sirona.reporting.web.plugin.api;
18 |
19 | import java.lang.annotation.ElementType;
20 | import java.lang.annotation.Retention;
21 | import java.lang.annotation.RetentionPolicy;
22 | import java.lang.annotation.Target;
23 |
24 | /**
25 | * Use to set that a plugin doesn't work when deployed in the collector.
26 | */
27 | @Retention(RetentionPolicy.RUNTIME)
28 | @Target(ElementType.TYPE)
29 | public @interface Local {
30 | }
31 |
--------------------------------------------------------------------------------
/plugins/api/src/main/java/org/apache/sirona/reporting/web/plugin/api/Regex.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.sirona.reporting.web.plugin.api;
18 |
19 | import java.lang.annotation.ElementType;
20 | import java.lang.annotation.Retention;
21 | import java.lang.annotation.RetentionPolicy;
22 | import java.lang.annotation.Target;
23 |
24 | @Retention(RetentionPolicy.RUNTIME)
25 | @Target(ElementType.METHOD)
26 | public @interface Regex {
27 | String value() default ""; // root, the root page is mandatory, it is the one linked in the menu
28 | }
29 |
--------------------------------------------------------------------------------
/server/reporting/reporting-api/src/main/resources/META-INF/web-fragment.xml:
--------------------------------------------------------------------------------
1 |
2 |
18 |
24 |
25 | org.apache.sirona.web.discovery.GaugeDiscoveryListener
26 |
27 |
28 |
--------------------------------------------------------------------------------
/server/reporting/reporting-ui/src/main/webapp/partials/threads.html:
--------------------------------------------------------------------------------
1 |
17 |
18 |
25 |
26 |
27 | State: {{::data.currentThread.state}}
28 |
29 |
30 |
{{::data.currentThread.dump}}
31 |
32 |
33 |
--------------------------------------------------------------------------------
/server/reporting/reporting-webapp/src/main/webapp/WEB-INF/openejb-jar.xml:
--------------------------------------------------------------------------------
1 |
2 |
18 |
19 |
20 |
21 |
22 | cxf.jaxrs.skip-provider-scanning = true
23 | cxf.jaxrs.providers = org.apache.johnzon.jaxrs.JohnzonProvider,org.apache.openejb.server.cxf.rs.EJBAccessExceptionMapper
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/agent/performance/aspectj/src/test/resources/META-INF/aop.xml:
--------------------------------------------------------------------------------
1 |
2 |
18 |
19 |
20 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/core/src/main/java/org/apache/sirona/gauges/jvm/UsedMemoryGauge.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.sirona.gauges.jvm;
18 |
19 | import org.apache.sirona.Role;
20 | import org.apache.sirona.counters.Unit;
21 |
22 | public class UsedMemoryGauge extends BaseMemoryGauge {
23 | public static final Role USED_MEMORY = new Role("Used Memory", Unit.UNARY);
24 |
25 | @Override
26 | public Role role() {
27 | return USED_MEMORY;
28 | }
29 |
30 | @Override
31 | public double value() {
32 | return MEMORY_MX_BEAN.getHeapMemoryUsage().getUsed();
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/agent/store/cube/src/test/resources/sirona.properties:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one
2 | # or more contributor license agreements. See the NOTICE file
3 | # distributed with this work for additional information
4 | # regarding copyright ownership. The ASF licenses this file
5 | # to you under the Apache License, Version 2.0 (the
6 | # "License"); you may not use this file except in compliance
7 | # with the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing,
12 | # software distributed under the License is distributed on an
13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | # KIND, either express or implied. See the License for the
15 | # specific language governing permissions and limitations
16 | # under the License.
17 | org.apache.sirona.store.DataStoreFactory = org.apache.sirona.cube.CubeDataStoreFactory
18 | org.apache.sirona.cube.period = 100
19 | org.apache.sirona.cube.CubeBuilder.collector = http://localhost:1234/1.0/event/put
20 |
21 | org.apache.sirona.core.gauge.activated = false
22 |
23 |
24 | org.apache.sirona.store.tracking.CollectorPathTrackingDataStore = org.apache.sirona.store.memory.tracking.InMemoryPathTrackingDataStore
25 |
26 | org.apache.sirona.store.tracking.PathTrackingDataStore = org.apache.sirona.store.memory.tracking.InMemoryPathTrackingDataStore
--------------------------------------------------------------------------------
/server/reporting/reporting-webapp/src/main/java/org/apache/sirona/reporting/web/plugin/jta/JTAPlugin.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.sirona.reporting.web.plugin.jta;
18 |
19 | import org.apache.sirona.reporting.web.plugin.api.Plugin;
20 |
21 | public class JTAPlugin implements Plugin {
22 | @Override
23 | public String name() {
24 | return "JTA";
25 | }
26 |
27 | @Override
28 | public Class> endpoints() {
29 | return JTAEndpoints.class;
30 | }
31 |
32 | @Override
33 | public String mapping() {
34 | return "/jta";
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/server/reporting/reporting-webapp/src/main/java/org/apache/sirona/reporting/web/plugin/jvm/JVMPlugin.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.sirona.reporting.web.plugin.jvm;
18 |
19 | import org.apache.sirona.reporting.web.plugin.api.Plugin;
20 |
21 | public class JVMPlugin implements Plugin {
22 | @Override
23 | public String name() {
24 | return "JVM";
25 | }
26 |
27 | @Override
28 | public Class> endpoints() {
29 | return JVMEndpoints.class;
30 | }
31 |
32 | @Override
33 | public String mapping() {
34 | return "/jvm";
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/server/reporting/reporting-webapp/src/main/java/org/apache/sirona/reporting/web/plugin/web/WebPlugin.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.sirona.reporting.web.plugin.web;
18 |
19 | import org.apache.sirona.reporting.web.plugin.api.Plugin;
20 |
21 | public class WebPlugin implements Plugin {
22 | @Override
23 | public String name() {
24 | return "Web";
25 | }
26 |
27 | @Override
28 | public Class> endpoints() {
29 | return WebEndpoints.class;
30 | }
31 |
32 | @Override
33 | public String mapping() {
34 | return "/web";
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/api/src/main/java/org/apache/sirona/store/gauge/CollectorGaugeDataStore.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.sirona.store.gauge;
18 |
19 | import org.apache.sirona.Role;
20 |
21 | import java.util.Collection;
22 | import java.util.SortedMap;
23 |
24 | public interface CollectorGaugeDataStore extends CommonGaugeDataStore {
25 | SortedMap getGaugeValues(GaugeValuesRequest gaugeValuesRequest, String marker);
26 | void createOrNoopGauge(Role role, String marker);
27 | void addToGauge(Role role, long time, double value, String marker);
28 | Collection markers();
29 | }
30 |
--------------------------------------------------------------------------------
/agent/store/cube/src/test/java/org/apache/sirona/cube/gauge/MockGauge.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.sirona.cube.gauge;
18 |
19 | import org.apache.sirona.Role;
20 | import org.apache.sirona.counters.Unit;
21 | import org.apache.sirona.gauges.Gauge;
22 |
23 | public class MockGauge implements Gauge {
24 | public static final Role MOCK = new Role("mock", Unit.UNARY);
25 |
26 | private int count = 0;
27 |
28 | @Override
29 | public Role role() {
30 | return MOCK;
31 | }
32 |
33 | @Override
34 | public double value() {
35 | return count++;
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/plugins/hazelcast/agent/src/main/java/org/apache/sirona/plugin/hazelcast/agent/gauge/HazelcastMembersGauge.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.sirona.plugin.hazelcast.agent.gauge;
18 |
19 | import com.hazelcast.core.HazelcastInstance;
20 |
21 | public class HazelcastMembersGauge extends HazelcastGaugeBase {
22 | public HazelcastMembersGauge(final String name, final HazelcastInstance instance) {
23 | super("hazelcast-members-" + name, instance);
24 | }
25 |
26 | @Override
27 | public double value() {
28 | return instance.getCluster().getMembers().size();
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/plugins/hazelcast/gui/src/main/java/org/apache/sirona/plugin/hazelcast/gui/HazelcastPlugin.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.sirona.plugin.hazelcast.gui;
18 |
19 | import org.apache.sirona.reporting.web.plugin.api.Plugin;
20 |
21 | public class HazelcastPlugin implements Plugin {
22 | @Override
23 | public String name() {
24 | return "Hazelcast";
25 | }
26 |
27 | @Override
28 | public Class> endpoints() {
29 | return HazelcastEndpoints.class;
30 | }
31 |
32 | @Override
33 | public String mapping() {
34 | return "/hazelcast";
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/server/reporting/reporting-webapp/src/main/java/org/apache/sirona/reporting/web/plugin/gauge/GaugePlugin.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.sirona.reporting.web.plugin.gauge;
18 |
19 | import org.apache.sirona.reporting.web.plugin.api.Plugin;
20 |
21 | public class GaugePlugin implements Plugin {
22 | @Override
23 | public String name() {
24 | return "Gauges";
25 | }
26 |
27 | @Override
28 | public Class> endpoints() {
29 | return GaugeEndpoints.class;
30 | }
31 |
32 | @Override
33 | public String mapping() {
34 | return "/gauges";
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/agent/store/graphite/src/test/java/org/apache/sirona/graphite/gauge/MockGauge.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.sirona.graphite.gauge;
18 |
19 | import org.apache.sirona.Role;
20 | import org.apache.sirona.counters.Unit;
21 | import org.apache.sirona.gauges.Gauge;
22 |
23 | public class MockGauge implements Gauge {
24 | public static final Role MOCK = new Role("mock", Unit.UNARY);
25 |
26 | private int count = 0;
27 |
28 | @Override
29 | public Role role() {
30 | return MOCK;
31 | }
32 |
33 | @Override
34 | public double value() {
35 | return count++;
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/server/reporting/reporting-webapp/src/main/java/org/apache/sirona/reporting/web/plugin/report/ReportPlugin.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.sirona.reporting.web.plugin.report;
18 |
19 | import org.apache.sirona.reporting.web.plugin.api.Plugin;
20 |
21 | public class ReportPlugin implements Plugin {
22 | @Override
23 | public String name() {
24 | return "Report";
25 | }
26 |
27 | @Override
28 | public Class> endpoints() {
29 | return ReportEndpoints.class;
30 | }
31 |
32 | @Override
33 | public String mapping() {
34 | return "/report";
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/server/reporting/reporting-webapp/src/main/java/org/apache/sirona/reporting/web/plugin/status/StatusPlugin.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.sirona.reporting.web.plugin.status;
18 |
19 | import org.apache.sirona.reporting.web.plugin.api.Plugin;
20 |
21 | public class StatusPlugin implements Plugin {
22 | @Override
23 | public String name() {
24 | return "Status";
25 | }
26 |
27 | @Override
28 | public Class> endpoints() {
29 | return StatusEndpoints.class;
30 | }
31 |
32 | @Override
33 | public String mapping() {
34 | return "/status";
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/agent/performance/jaxrs/jaxrs2/src/main/java/org/apache/sirona/agent/jaxrs/jaxrs2/SironaFeature.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.sirona.agent.jaxrs.jaxrs2;
18 |
19 | import javax.ws.rs.container.DynamicFeature;
20 | import javax.ws.rs.container.ResourceInfo;
21 | import javax.ws.rs.core.Configurable;
22 | import javax.ws.rs.ext.Provider;
23 |
24 | @Provider
25 | public class SironaFeature implements DynamicFeature {
26 | @Override
27 | public void configure(final ResourceInfo resourceInfo, final Configurable configurable) {
28 | configurable.register(new PerformanceServerFilter());
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/plugins/ehcache/agent/src/test/resources/ehcache.xml:
--------------------------------------------------------------------------------
1 |
2 |
18 |
20 |
21 |
22 |
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/plugins/hazelcast/agent/src/main/java/org/apache/sirona/plugin/hazelcast/agent/gauge/HazelcastPartitionsGauge.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.sirona.plugin.hazelcast.agent.gauge;
18 |
19 | import com.hazelcast.core.HazelcastInstance;
20 |
21 | public class HazelcastPartitionsGauge extends HazelcastGaugeBase {
22 | public HazelcastPartitionsGauge(final String name, final HazelcastInstance instance) {
23 | super("hazelcast-partitions-" + name, instance);
24 | }
25 |
26 | @Override
27 | public double value() {
28 | return instance.getPartitionService().getPartitions().size();
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/core/src/main/java/org/apache/sirona/gauges/jvm/UsedNonHeapMemoryGauge.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.sirona.gauges.jvm;
18 |
19 | import org.apache.sirona.Role;
20 | import org.apache.sirona.counters.Unit;
21 |
22 | public class UsedNonHeapMemoryGauge extends BaseMemoryGauge {
23 | public static final Role USED_NONHEAPMEMORY = new Role("Used Non Heap Memory", Unit.UNARY);
24 |
25 | @Override
26 | public Role role() {
27 | return USED_NONHEAPMEMORY;
28 | }
29 |
30 | @Override
31 | public double value() {
32 | return MEMORY_MX_BEAN.getNonHeapMemoryUsage().getUsed();
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/plugins/ehcache/agent/src/main/java/org/apache/sirona/agent/ehcache/EhCacheTransactionCommittedCountManagerGauge.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.sirona.agent.ehcache;
18 |
19 | import net.sf.ehcache.CacheManager;
20 |
21 | public class EhCacheTransactionCommittedCountManagerGauge extends EhCacheManagerGaugeBase {
22 | public EhCacheTransactionCommittedCountManagerGauge(final CacheManager cacheManager) {
23 | super("transaction-committed", cacheManager);
24 | }
25 |
26 | @Override
27 | public double value() {
28 | return manager.getTransactionController().getTransactionCommittedCount();
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/agent/performance/jaxrs/cxf/src/test/java/org/apache/sirona/agent/jaxrs/cxf/service/SimpleService.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.sirona.agent.jaxrs.cxf.service;
18 |
19 | import javax.ws.rs.GET;
20 | import javax.ws.rs.Path;
21 | import javax.ws.rs.PathParam;
22 |
23 | @Path("service")
24 | public class SimpleService {
25 | @Path("{name}")
26 | @GET
27 | public String one(final @PathParam("name") String name) {
28 | return name;
29 | }
30 |
31 | @Path("{a}/{b}")
32 | @GET
33 | public String two(final @PathParam("a") String a, final @PathParam("b") String b) {
34 | return a + b;
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/api/src/main/java/org/apache/sirona/store/counter/CollectorCounterStore.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.sirona.store.counter;
18 |
19 | import org.apache.sirona.counters.Counter;
20 | import org.apache.sirona.math.M2AwareStatisticalSummary;
21 |
22 | import java.util.Collection;
23 |
24 | public interface CollectorCounterStore extends CounterDataStore {
25 | void update(Counter.Key key, String marker, M2AwareStatisticalSummary stats, int concurrency);
26 | Collection markers();
27 | Collection extends Counter> getCounters(String marker);
28 | Counter getOrCreateCounter(Counter.Key key, final String marker);
29 | }
30 |
--------------------------------------------------------------------------------
/plugins/ehcache/agent/src/main/java/org/apache/sirona/agent/ehcache/EhCacheTransactionRollbackedCountManagerGauge.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.sirona.agent.ehcache;
18 |
19 | import net.sf.ehcache.CacheManager;
20 |
21 | public class EhCacheTransactionRollbackedCountManagerGauge extends EhCacheManagerGaugeBase {
22 | public EhCacheTransactionRollbackedCountManagerGauge(final CacheManager cacheManager) {
23 | super("transaction-rollbacked", cacheManager);
24 | }
25 |
26 | @Override
27 | public double value() {
28 | return manager.getTransactionController().getTransactionRolledBackCount();
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/api/src/main/java/org/apache/sirona/util/Environment.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.sirona.util;
18 |
19 | import org.apache.sirona.configuration.ioc.IoCs;
20 | import org.apache.sirona.repositories.Repository;
21 | import org.apache.sirona.store.counter.CollectorCounterStore;
22 |
23 | public final class Environment {
24 | private Environment() {
25 | // no-op
26 | }
27 |
28 | public static boolean isCollector() {
29 | IoCs.findOrCreateInstance(Repository.class); // ensure we have a repo which init store classes by default
30 | return IoCs.getInstance(CollectorCounterStore.class) != null;
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/server/reporting/reporting-webapp/src/main/resources/templates/pathtracking/home.vm:
--------------------------------------------------------------------------------
1 | #*
2 | Licensed to the Apache Software Foundation (ASF) under one or more
3 | contributor license agreements. See the NOTICE file distributed with
4 | this work for additional information regarding copyright ownership.
5 | The ASF licenses this file to You under the Apache License, Version 2.0
6 | (the "License"); you may not use this file except in compliance with
7 | the License. You may obtain a copy of the License at
8 |
9 | http://www.apache.org/licenses/LICENSE-2.0
10 |
11 | Unless required by applicable law or agreed to in writing, software
12 | distributed under the License is distributed on an "AS IS" BASIS,
13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | See the License for the specific language governing permissions and
15 | limitations under the License.
16 | *#
17 |
18 |
19 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/agent/performance/jaxrs/jaxrs2/src/test/java/org/apache/sirona/agent/jaxrs/jaxrs2/service/SimpleService.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.sirona.agent.jaxrs.jaxrs2.service;
18 |
19 | import javax.ws.rs.GET;
20 | import javax.ws.rs.Path;
21 | import javax.ws.rs.PathParam;
22 |
23 | @Path("service")
24 | public class SimpleService {
25 | @Path("{name}")
26 | @GET
27 | public String one(final @PathParam("name") String name) {
28 | return name;
29 | }
30 |
31 | @Path("{a}/{b}")
32 | @GET
33 | public String two(final @PathParam("a") String a, final @PathParam("b") String b) {
34 | return a + b;
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/core/src/main/java/org/apache/sirona/store/DataStoreFactory.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.sirona.store;
18 |
19 | import org.apache.sirona.store.counter.CounterDataStore;
20 | import org.apache.sirona.store.gauge.CommonGaugeDataStore;
21 | import org.apache.sirona.store.status.NodeStatusDataStore;
22 | import org.apache.sirona.store.tracking.PathTrackingDataStore;
23 |
24 | public interface DataStoreFactory {
25 |
26 | CounterDataStore getCounterDataStore();
27 |
28 | CommonGaugeDataStore getGaugeDataStore();
29 |
30 | NodeStatusDataStore getNodeStatusDataStore();
31 |
32 | PathTrackingDataStore getPathTrackingDataStore();
33 | }
34 |
--------------------------------------------------------------------------------
/api/src/main/java/org/apache/sirona/configuration/PropertiesConfigurationProvider.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.sirona.configuration;
18 |
19 | import java.util.Properties;
20 |
21 | public class PropertiesConfigurationProvider implements ConfigurationProvider {
22 | private final Properties properties;
23 |
24 | public PropertiesConfigurationProvider(final Properties properties) {
25 | this.properties = properties;
26 | }
27 |
28 | @Override
29 | public int ordinal() {
30 | return 100;
31 | }
32 |
33 | @Override
34 | public Properties configuration() {
35 | return properties;
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/server/reporting/reporting-webapp/src/main/java/org/apache/sirona/reporting/web/plugin/jmx/JMXPlugin.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.sirona.reporting.web.plugin.jmx;
18 |
19 | import org.apache.sirona.reporting.web.plugin.api.Local;
20 | import org.apache.sirona.reporting.web.plugin.api.Plugin;
21 |
22 | @Local
23 | public class JMXPlugin implements Plugin {
24 | @Override
25 | public String name() {
26 | return "JMX";
27 | }
28 |
29 | @Override
30 | public Class> endpoints() {
31 | return JMXEndpoints.class;
32 | }
33 |
34 | @Override
35 | public String mapping() {
36 | return "/jmx";
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/agent/javaagent/src/test/java/org/apache/sirona/javaagent/listener/AutoSetPathTrackingListenerTest.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.sirona.javaagent.listener;
18 |
19 | import org.apache.sirona.configuration.ioc.IoCs;
20 | import org.apache.sirona.javaagent.listener.PathTrackingListener;
21 | import org.junit.Test;
22 |
23 | import static org.junit.Assert.assertFalse;
24 |
25 | public class AutoSetPathTrackingListenerTest {
26 | @Test
27 | public void autoSet() throws Exception {
28 | final PathTrackingListener listener = IoCs.autoSet(null, new PathTrackingListener());
29 | assertFalse(listener.accept("org.junit", null));
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/agent/store/cube/src/main/java/org/apache/sirona/cube/CubeDataStoreFactory.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.sirona.cube;
18 |
19 | import org.apache.sirona.configuration.ioc.IoCs;
20 | import org.apache.sirona.store.DelegateDataStoreFactory;
21 |
22 | public class CubeDataStoreFactory extends DelegateDataStoreFactory {
23 | public CubeDataStoreFactory() {
24 | super(
25 | IoCs.processInstance(new CubeCounterDataStore()),
26 | IoCs.processInstance(new CubeGaugeDataStore()),
27 | IoCs.processInstance(new CubeNodeStatusDataStore()),
28 | IoCs.processInstance(new CubePathTrackingDataStore()));
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/agent/store/cube/src/main/java/org/apache/sirona/cube/CubeNodeStatusDataStore.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.sirona.cube;
18 |
19 | import org.apache.sirona.configuration.ioc.IoCs;
20 | import org.apache.sirona.status.NodeStatus;
21 | import org.apache.sirona.store.status.PeriodicNodeStatusDataStore;
22 |
23 | public class CubeNodeStatusDataStore extends PeriodicNodeStatusDataStore {
24 | private final Cube cube = IoCs.findOrCreateInstance(CubeBuilder.class).build();
25 |
26 | @Override
27 | protected void reportStatus(final NodeStatus nodeStatus) {
28 | cube.post(cube.statusSnapshot(System.currentTimeMillis(), nodeStatus));
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/core/src/test/resources/sirona.properties:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one
2 | # or more contributor license agreements. See the NOTICE file
3 | # distributed with this work for additional information
4 | # regarding copyright ownership. The ASF licenses this file
5 | # to you under the Apache License, Version 2.0 (the
6 | # "License"); you may not use this file except in compliance
7 | # with the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing,
12 | # software distributed under the License is distributed on an
13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | # KIND, either express or implied. See the License for the
15 | # specific language governing permissions and limitations
16 | # under the License.
17 | org.apache.sirona.spi.SPI = org.apache.sirona.spi.SpiTestImpl
18 |
19 | org.apache.sirona.ehcache.methods=foo;bar;beer
20 |
21 | org.apache.sirona.goodbeer=true
22 |
23 | org.apache.sirona.configuration.IoCsTest$Field.field = field-value
24 | org.apache.sirona.configuration.IoCsTest$Method.method = method-value
25 | org.apache.sirona.configuration.IoCsTest$MethodNotField.methodNotField = method-value-again
26 |
27 | org.apache.sirona.alerters = test1,test2
28 | test1.class = org.apache.sirona.repositories.DefaultRepositoryTest$Alerter1
29 | test1.config = a-config-value
30 | test2.class = org.apache.sirona.repositories.DefaultRepositoryTest$Alerter2
31 |
--------------------------------------------------------------------------------
/api/src/main/java/org/apache/sirona/util/Localhosts.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.sirona.util;
18 |
19 | import java.net.InetAddress;
20 | import java.net.UnknownHostException;
21 |
22 | public class Localhosts {
23 | private static final String value;
24 | static {
25 | String tmp;
26 | try {
27 | tmp = InetAddress.getLocalHost().getHostName();
28 | } catch (final UnknownHostException e) {
29 | tmp = "sirona"; // default
30 | }
31 | value = tmp;
32 | }
33 |
34 | private Localhosts() {
35 | // no-op
36 | }
37 |
38 | public static String get() {
39 | return value;
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/server/reporting/reporting-webapp/src/main/java/org/apache/sirona/reporting/web/plugin/thread/ThreadPlugin.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.sirona.reporting.web.plugin.thread;
18 |
19 | import org.apache.sirona.reporting.web.plugin.api.Local;
20 | import org.apache.sirona.reporting.web.plugin.api.Plugin;
21 |
22 | @Local
23 | public class ThreadPlugin implements Plugin {
24 | @Override
25 | public String name() {
26 | return "Threads";
27 | }
28 |
29 | @Override
30 | public Class> endpoints() {
31 | return ThreadEndpoints.class;
32 | }
33 |
34 | @Override
35 | public String mapping() {
36 | return "/threads";
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/store/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
18 |
19 | 4.0.0
20 |
21 |
22 | org.apache.sirona
23 | sirona
24 | 0.4-incubating-SNAPSHOT
25 |
26 |
27 | sirona-store
28 | pom
29 | Apache Sirona Incubator :: Store
30 |
31 |
32 | memory
33 |
34 |
35 |
--------------------------------------------------------------------------------
/agent/javaagent/src/test/java/org/apache/sirona/pathtracking/test/ExtendedInMemoryPathTrackingDataStore.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.sirona.pathtracking.test;
18 |
19 | import org.apache.sirona.pathtracking.PathTrackingEntry;
20 | import org.apache.sirona.store.memory.tracking.InMemoryPathTrackingDataStore;
21 |
22 | import java.util.Map;
23 | import java.util.Set;
24 |
25 | /**
26 | *
27 | */
28 | public class ExtendedInMemoryPathTrackingDataStore
29 | extends InMemoryPathTrackingDataStore
30 | {
31 | /**
32 | * testing purpose
33 | */
34 | public Map> retrieveAll()
35 | {
36 | return this.getPathTrackingEntries();
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/agent/store/websocket-client/src/main/java/org/apache/sirona/websocket/client/WebSocketNodeStatusDataStore.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.sirona.websocket.client;
18 |
19 | import org.apache.sirona.configuration.ioc.IoCs;
20 | import org.apache.sirona.status.NodeStatus;
21 | import org.apache.sirona.store.status.PeriodicNodeStatusDataStore;
22 |
23 | public class WebSocketNodeStatusDataStore extends PeriodicNodeStatusDataStore {
24 | private final WebSocketClient client = IoCs.findOrCreateInstance(WebSocketClientBuilder.class).buildOrGet();
25 |
26 | @Override
27 | protected void reportStatus(final NodeStatus nodeStatus) {
28 | client.push(nodeStatus);
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/server/reporting/reporting-webapp/src/main/java/org/apache/sirona/reporting/web/plugin/report/format/Format.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | package org.apache.sirona.reporting.web.plugin.report.format;
19 |
20 | import org.apache.sirona.reporting.web.plugin.api.Template;
21 |
22 | import java.util.Map;
23 |
24 | public interface Format {
25 | String type();
26 | Template render(Map params);
27 |
28 | public static interface Defaults {
29 | static final Format JSON = new JSONFormat();
30 | static final Format XML = new XMLFormat();
31 | static final Format CSV = new CSVFormat();
32 | static final Format HTML = new HTMLFormat();
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/agent/performance/web/src/main/java/org/apache/sirona/web/jsp/StartTagTei.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | package org.apache.sirona.web.jsp;
19 |
20 | import org.apache.sirona.stopwatches.StopWatch;
21 |
22 | import javax.servlet.jsp.tagext.TagData;
23 | import javax.servlet.jsp.tagext.TagExtraInfo;
24 | import javax.servlet.jsp.tagext.VariableInfo;
25 |
26 | /**
27 | *
28 | */
29 | public class StartTagTei extends TagExtraInfo {
30 | @Override
31 | public VariableInfo[] getVariableInfo(final TagData data) {
32 | return new VariableInfo[] {
33 | new VariableInfo(data.getAttributeString("id"), StopWatch.class.getName(), true, VariableInfo.AT_END)
34 | };
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/alerter/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
18 |
19 |
20 | sirona
21 | org.apache.sirona
22 | 0.4-incubating-SNAPSHOT
23 |
24 |
25 | 4.0.0
26 |
27 | sirona-alerter
28 | Apache Sirona Incubator :: Alerter
29 | pom
30 |
31 |
32 | mail
33 |
34 |
35 |
--------------------------------------------------------------------------------
/agent/store/cube/src/main/java/org/apache/sirona/cube/CubeCounterDataStore.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.sirona.cube;
18 |
19 | import org.apache.sirona.configuration.ioc.IoCs;
20 | import org.apache.sirona.counters.Counter;
21 | import org.apache.sirona.store.memory.counter.BatchCounterDataStore;
22 |
23 | import java.util.Collection;
24 |
25 | public class CubeCounterDataStore extends BatchCounterDataStore
26 | {
27 | protected final Cube cube = IoCs.findOrCreateInstance(CubeBuilder.class).build();
28 |
29 | @Override
30 | protected synchronized void pushCountersByBatch(final Collection instances) {
31 | cube.post(cube.counterSnapshot(instances));
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/api/src/main/java/org/apache/sirona/status/ValidationResult.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.sirona.status;
18 |
19 | public class ValidationResult {
20 | private Status status;
21 | private String message;
22 | private String name;
23 |
24 | public ValidationResult(final String name, final Status status, final String message) {
25 | this.name = name;
26 | this.status = status;
27 | this.message = message;
28 | }
29 |
30 | public String getName() {
31 | return name;
32 | }
33 |
34 | public Status getStatus() {
35 | return status;
36 | }
37 |
38 | public String getMessage() {
39 | return message;
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/server/reporting/reporting-webapp/src/main/java/org/apache/sirona/reporting/web/plugin/pathtracking/PathTrackingPlugin.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.sirona.reporting.web.plugin.pathtracking;
18 |
19 | import org.apache.sirona.reporting.web.plugin.api.Plugin;
20 |
21 | /**
22 | *
23 | */
24 | public class PathTrackingPlugin
25 | implements Plugin
26 | {
27 |
28 | @Override
29 | public String name()
30 | {
31 | return "PathTracking";
32 | }
33 |
34 | @Override
35 | public Class> endpoints()
36 | {
37 | return PathTrackingEndpoints.class;
38 | }
39 |
40 | @Override
41 | public String mapping()
42 | {
43 | return "/pathtracking";
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/agent/javaagent/src/test/resources/sirona.properties:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one
2 | # or more contributor license agreements. See the NOTICE file
3 | # distributed with this work for additional information
4 | # regarding copyright ownership. The ASF licenses this file
5 | # to you under the Apache License, Version 2.0 (the
6 | # "License"); you may not use this file except in compliance
7 | # with the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing,
12 | # software distributed under the License is distributed on an
13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | # KIND, either express or implied. See the License for the
15 | # specific language governing permissions and limitations
16 | # under the License.
17 | org.apache.sirona.javaagent.listener.PathTrackingListener.excludes = \
18 | prefix:java,\
19 | prefix:sun,\
20 | prefix:com,\
21 | regex:org.apache.test.*Test\\..*,\
22 | prefix:org.junit,\
23 | prefix:junit, \
24 | prefix:org.junit, \
25 | prefix:com.apple,\
26 | container:jvm
27 |
28 | org.apache.sirona.javaagent.listener.CounterListener.excludes = \
29 | prefix:java,\
30 | prefix:sun,\
31 | prefix:com,\
32 | regex:org.apache.test.*Test\\..*,\
33 | prefix:org.junit,\
34 | prefix:junit, \
35 | prefix:org.junit, \
36 | prefix:com.apple\
37 | container:jvm
38 |
39 |
40 | org.apache.sirona.javaagent.path.tracking.activate=false
41 |
42 |
43 |
--------------------------------------------------------------------------------
/agent/performance/spring/src/test/resources/monitoring.xml:
--------------------------------------------------------------------------------
1 |
2 |
18 |
22 |
23 |
24 |
25 |
26 |
27 |
28 | service
29 |
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/server/collector/src/main/webapp/WEB-INF/web.xml:
--------------------------------------------------------------------------------
1 |
2 |
18 |
22 |
23 | collector
24 | org.apache.sirona.collector.server.Collector
25 | 1
26 |
27 |
28 | collector
29 | /collector
30 |
31 |
32 |
--------------------------------------------------------------------------------
/core/src/main/java/org/apache/sirona/gauges/jvm/ActiveThreadGauge.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.sirona.gauges.jvm;
18 |
19 | import org.apache.sirona.Role;
20 | import org.apache.sirona.counters.Unit;
21 | import org.apache.sirona.gauges.Gauge;
22 |
23 | import java.lang.management.ManagementFactory;
24 | import java.lang.management.OperatingSystemMXBean;
25 |
26 | public class ActiveThreadGauge implements Gauge {
27 | public static final Role ACTIVE_THREAD = new Role("Active Thread", Unit.UNARY);
28 |
29 | @Override
30 | public Role role() {
31 | return ACTIVE_THREAD;
32 | }
33 |
34 | @Override
35 | public double value() {
36 | return Thread.activeCount();
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/agent/performance/web/src/test/java/org/apache/sirona/test/web/Clients.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.sirona.test.web;
18 |
19 | import com.gargoylesoftware.htmlunit.WebClient;
20 |
21 | public class Clients {
22 | public static WebClient newClient() {
23 | final WebClient webClient = new WebClient();
24 | webClient.getOptions().setJavaScriptEnabled(false);
25 | webClient.getOptions().setCssEnabled(false);
26 | webClient.getOptions().setAppletEnabled(false);
27 | webClient.getOptions().setThrowExceptionOnFailingStatusCode(false);
28 | return webClient;
29 | }
30 |
31 | private Clients() {
32 | // no-op
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/server/store/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
18 |
19 | 4.0.0
20 |
21 |
22 | sirona-server
23 | org.apache.sirona
24 | 0.4-incubating-SNAPSHOT
25 |
26 |
27 | sirona-collector-store
28 | Apache Sirona Incubator :: Server :: Store
29 | pom
30 |
31 |
32 | cassandra
33 |
34 |
35 |
--------------------------------------------------------------------------------
/agent/performance/cdi/src/test/java/org/apache/sirona/cdi/SironaExtensionTest.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.sirona.cdi;
18 |
19 | import javax.enterprise.context.ApplicationScoped;
20 |
21 | public class SironaExtensionTest extends SironaExtensionTestBase {
22 | @Override
23 | protected Class extends TwoSeconds> type() {
24 | return AutoMonitoredBean.class;
25 | }
26 |
27 | @ApplicationScoped
28 | public static class AutoMonitoredBean implements TwoSeconds {
29 | public void twoSeconds() {
30 | try {
31 | Thread.sleep(2000);
32 | } catch (final InterruptedException e) {
33 | // no-op
34 | }
35 | }
36 | }
37 | }
38 |
--------------------------------------------------------------------------------