From 33941f68e78897cf72562d20bbce71cf89eb71b4 Mon Sep 17 00:00:00 2001 From: mck Date: Fri, 24 Aug 2018 21:42:13 +1000 Subject: [PATCH] Apply Apache licenses and appropriate copyright statements to all source files. Use the apache-rat-plugin to enforce it. ref: https://github.com/thelastpickle/cassandra-reaper/pull/535 --- .circleci/config.yml | 14 ++ .rultor.yml | 14 ++ .travis.yml | 15 ++ CONTRIBUTING.md | 8 + LICENSE.txt | 2 +- NOTICE.md | 20 ++ pom.xml | 54 +++++ src/ci/after_failure.sh | 15 +- src/ci/after_success.sh | 15 +- src/ci/before_deploy.sh | 13 ++ src/ci/before_install.sh | 15 +- src/ci/before_script.sh | 15 +- src/ci/install.sh | 13 ++ src/ci/script.sh | 13 ++ src/docs/Makefile | 14 ++ src/docs/config.toml | 14 ++ src/docs/content/docs/backends/cassandra.md | 2 +- src/docs/content/docs/backends/memory.md | 2 +- src/docs/content/docs/community.md | 2 +- src/docs/content/docs/configuration/_index.md | 2 +- .../docs/configuration/backend_specific.md | 2 +- src/docs/content/docs/metrics/_index.md | 2 +- src/docs/content/docs/metrics/graphite.md | 2 +- src/docs/content/docs/usage/_index.md | 2 +- src/docs/content/docs/usage/authentication.md | 2 +- src/docs/content/docs/usage/schedule.md | 2 +- src/docs/content/faq.md | 2 +- src/packaging/Makefile | 15 ++ src/packaging/bin/spreaper | 17 +- .../debian/cassandra-reaper-cli.install | 15 ++ src/packaging/debian/cassandra-reaper.install | 15 ++ src/packaging/debian/cassandra-reaper.service | 16 +- src/packaging/debian/cassandra-reaper.upstart | 15 ++ src/packaging/debian/control | 15 ++ src/packaging/debian/postinstall.sh | 16 +- src/packaging/debian/preinstall.sh | 15 ++ src/packaging/debian/reaper.init | 15 ++ src/packaging/debian/rules | 14 ++ src/packaging/docker-build/Dockerfile | 15 ++ src/packaging/docker-build/docker-compose.yml | 15 ++ .../docker-build/docker-entrypoint.sh | 14 ++ src/packaging/docker-compose.yml | 17 +- .../cassandra-ssl/cassandra-ssl.env | 16 +- .../cassandra-ssl/docker-entrypoint.sh | 16 +- .../docker-services/cassandra/cassandra.env | 14 ++ .../cqlsh-initialize-reaper_db-ssl.env | 16 +- .../docker-entrypoint.sh | 16 +- .../cqlsh-initialize-reaper_db.env | 16 +- .../docker-entrypoint.sh | 16 +- .../docker-services/cqlsh-ssl/cqlsh-ssl.env | 16 +- .../docker-services/cqlsh/Dockerfile | 17 +- src/packaging/docker-services/cqlsh/cql.env | 16 +- .../cqlsh/docker-entrypoint.sh | 16 +- .../generate-ssl-stores/Dockerfile | 17 +- .../generate-ssl-stores/docker-entrypoint.sh | 16 +- .../nodetool-ssl/nodetool-ssl.env | 16 +- .../docker-services/nodetool/Dockerfile | 17 +- .../nodetool/docker-entrypoint.sh | 16 +- .../nodetool/nodetool-ssl.properties | 17 +- .../docker-services/nodetool/nodetool.env | 16 +- .../reaper-in-memory/reaper-in-memory.env | 16 +- .../docker-services/reaper-ssl/reaper-ssl.env | 16 +- .../docker-services/reaper/reaper.env | 16 +- src/packaging/etc/bash_completion.d/spreaper | 14 ++ src/packaging/redhat/postinstall.sh | 16 +- src/packaging/redhat/preinstall.sh | 15 ++ src/packaging/resource/ca_cert.conf | 17 +- .../cassandra-reaper-cassandra-ssl.yaml | 15 ++ .../resource/cassandra-reaper-cassandra.yaml | 15 ++ .../resource/cassandra-reaper-h2.yaml | 15 ++ .../resource/cassandra-reaper-memory.yaml | 15 ++ .../resource/cassandra-reaper-postgres.yaml | 15 ++ src/packaging/resource/cassandra-reaper.yaml | 15 ++ src/packaging/resource/shiro.ini | 14 ++ src/server/checkstyle.xml | 16 +- src/server/pom.xml | 22 ++ src/server/src/checkstyle/java.header | 7 +- src/server/src/checkstyle/suppressions.xml | 15 ++ src/server/src/main/docker/Dockerfile | 15 ++ .../src/main/docker/cassandra-reaper.yml | 14 ++ .../src/main/docker/configure-metrics.sh | 16 +- .../src/main/docker/configure-persistence.sh | 14 ++ .../docker/configure-webui-authentication.sh | 15 +- src/server/src/main/docker/entrypoint.sh | 14 ++ src/server/src/main/docker/shiro.ini | 14 ++ .../java/io/cassandrareaper/AppContext.java | 3 + .../io/cassandrareaper/ReaperApplication.java | 3 + .../ReaperApplicationConfiguration.java | 3 + .../io/cassandrareaper/ReaperException.java | 3 + .../java/io/cassandrareaper/core/Cluster.java | 3 + .../io/cassandrareaper/core/Compaction.java | 3 + .../cassandrareaper/core/DroppedMessages.java | 3 + .../java/io/cassandrareaper/core/JmxStat.java | 5 +- .../core/MetricsHistogram.java | 3 + .../java/io/cassandrareaper/core/Node.java | 3 + .../io/cassandrareaper/core/NodeMetrics.java | 3 + .../io/cassandrareaper/core/RepairRun.java | 3 + .../cassandrareaper/core/RepairSchedule.java | 3 + .../cassandrareaper/core/RepairSegment.java | 3 + .../io/cassandrareaper/core/RepairUnit.java | 3 + .../java/io/cassandrareaper/core/Segment.java | 3 + .../io/cassandrareaper/core/Snapshot.java | 3 + .../java/io/cassandrareaper/core/Stream.java | 3 + .../cassandrareaper/core/StreamSession.java | 3 + .../cassandrareaper/core/ThreadPoolStat.java | 3 + .../io/cassandrareaper/core/package-info.java | 3 + .../jmx/ColumnFamilyStoreMBeanIterator.java | 3 + .../cassandrareaper/jmx/CompactionProxy.java | 3 + .../jmx/EndpointSnitchInfoProxy.java | 3 + .../jmx/FailureDetectorProxy.java | 3 + .../jmx/HostConnectionCounters.java | 3 + .../io/cassandrareaper/jmx/JmxAddresses.java | 3 + .../jmx/JmxConnectionFactory.java | 3 + .../jmx/JmxConnectionsInitializer.java | 3 + .../java/io/cassandrareaper/jmx/JmxProxy.java | 3 + .../io/cassandrareaper/jmx/JmxProxyImpl.java | 3 + .../jmx/RepairStatusHandler.java | 3 + .../io/cassandrareaper/jmx/SnapshotProxy.java | 3 + .../jmx/StorageServiceMBean20.java | 3 + .../jmx/StreamStatusHandler.java | 3 + .../io/cassandrareaper/jmx/StreamsProxy.java | 3 + .../io/cassandrareaper/jmx/package-info.java | 3 + .../java/io/cassandrareaper/package-info.java | 3 + .../resources/ClusterResource.java | 3 + .../resources/NodeStatsResource.java | 3 + .../resources/PingResource.java | 3 + .../resources/ReaperHealthCheck.java | 3 + .../resources/RepairRunResource.java | 3 + .../resources/RepairScheduleResource.java | 3 + .../resources/SnapshotResource.java | 3 + .../resources/auth/LoginResource.java | 3 + .../resources/auth/ShiroExceptionMapper.java | 3 + .../resources/package-info.java | 3 + .../resources/view/ClusterStatus.java | 3 + .../resources/view/NodesStatus.java | 3 + .../resources/view/RepairRunStatus.java | 3 + .../resources/view/RepairScheduleStatus.java | 5 +- .../resources/view/package-info.java | 3 + .../service/AutoSchedulingManager.java | 3 + .../service/ClusterRepairScheduler.java | 3 + .../service/CompactionService.java | 3 + .../io/cassandrareaper/service/Heart.java | 3 + .../service/MetricsGrabber.java | 3 + .../cassandrareaper/service/PurgeManager.java | 3 + .../service/RepairManager.java | 3 + .../service/RepairParameters.java | 3 + .../service/RepairRunService.java | 3 + .../cassandrareaper/service/RepairRunner.java | 3 + .../service/RepairScheduleService.java | 3 + .../service/RepairUnitService.java | 3 + .../io/cassandrareaper/service/RingRange.java | 3 + .../service/SchedulingManager.java | 3 + .../service/SegmentGenerator.java | 3 + .../service/SegmentRunner.java | 3 + .../service/SimpleCondition.java | 3 + .../service/SnapshotManager.java | 3 + .../service/StreamFactory.java | 3 + .../service/StreamManager.java | 3 + .../service/StreamSessionFactory.java | 3 + .../cassandrareaper/service/package-info.java | 3 + .../storage/CassandraStorage.java | 3 + .../storage/IDistributedStorage.java | 3 + .../io/cassandrareaper/storage/IStorage.java | 3 + .../storage/JsonParseUtils.java | 3 + .../storage/MemoryStorage.java | 3 + .../storage/PostgresStorage.java | 3 + .../storage/cassandra/DateTimeCodec.java | 3 + .../storage/cassandra/Migration003.java | 3 + .../storage/cassandra/Migration009.java | 3 + .../storage/cassandra/Migration011.java | 3 + .../storage/cassandra/Migration012.java | 3 + .../storage/cassandra/Migration016.java | 3 + .../storage/cassandra/package-info.java | 3 + .../cassandrareaper/storage/package-info.java | 3 + .../postgresql/BigIntegerArgumentFactory.java | 3 + .../storage/postgresql/ClusterMapper.java | 3 + .../postgresql/IStoragePostgreSql.java | 3 + .../LongCollectionSqlTypeArgumentFactory.java | 3 + .../PostgresArrayArgumentFactory.java | 3 + .../postgresql/PostgresRepairSegment.java | 3 + .../RepairParallelismArgumentFactory.java | 3 + .../postgresql/RepairParametersMapper.java | 3 + .../storage/postgresql/RepairRunMapper.java | 3 + .../postgresql/RepairRunStatusMapper.java | 3 + .../postgresql/RepairScheduleMapper.java | 3 + .../RepairScheduleStatusMapper.java | 3 + .../postgresql/RepairSegmentMapper.java | 3 + .../storage/postgresql/RepairUnitMapper.java | 3 + .../postgresql/RunStateArgumentFactory.java | 3 + .../ScheduleStateArgumentFactory.java | 3 + .../storage/postgresql/SnapshotMapper.java | 3 + .../postgresql/StateArgumentFactory.java | 3 + .../postgresql/UuidArgumentFactory.java | 3 + .../storage/postgresql/UuidUtil.java | 3 + .../storage/postgresql/package-info.java | 3 + src/server/src/main/resources/assets/LICENSE | 202 ------------------ .../db/cassandra/001_Initialize_db.cql | 14 ++ .../db/cassandra/002_table_properties.cql | 16 +- .../db/cassandra/003_switch_to_uuids.cql | 16 +- .../cassandra/004_fault_tolerant_reaper.cql | 14 ++ .../cassandra/005_repair_specific_nodes.cql | 14 ++ .../db/cassandra/006_table_blacklist.cql | 14 ++ .../cassandra/007_segment_count_per_node.cql | 14 ++ .../db/cassandra/008_request_for_metrics.cql | 14 ++ .../db/cassandra/009_remove_nulls.cql | 16 +- .../db/cassandra/010_table_properties.cql | 16 +- .../db/cassandra/011_fix_start_times.cql | 16 +- .../db/cassandra/012_fix_start_times.cql | 16 +- .../resources/db/cassandra/013_snapshots.cql | 14 ++ .../db/cassandra/014_segment_coalescing.cql | 14 ++ .../db/cassandra/015_multithreaded_repair.cql | 14 ++ ...016_disable_dclocal_read_repair_chance.cql | 16 +- .../db/h2/V10_0_0__multithreaded_repair.sql | 14 ++ .../db/h2/V1_0_1__Initial_reaper_h2_db.sql | 14 ++ .../db/h2/V2_0_0__specific_nodes_repair.sql | 14 ++ .../db/h2/V3_0_0__table_blacklist.sql | 16 +- .../db/h2/V4_0_0__segment_count_per_node.sql | 16 +- .../h2/V5_0_0__fix_repair_segment_table.sql | 14 ++ .../h2/V6_0_0__fix_repair_segment_table.sql | 14 ++ .../h2/V7_0_0__fix_repair_segment_table.sql | 14 ++ .../resources/db/h2/V8_0_0__snapshots.sql | 14 ++ .../db/h2/V9_0_0__coalesce_segments.sql | 14 ++ .../postgres/V10_0_0__repair_thread_count.sql | 14 ++ .../V1_0_1__Initial_reaper_postgres_db.sql | 14 ++ .../V2.0.0__specific_nodes_repair.sql | 14 ++ .../db/postgres/V3.0.0__table_blacklist.sql | 14 ++ .../V4.0.0__segment_count_per_node.sql | 14 ++ .../V5_0_0__fix_repair_segment_table.sql | 14 ++ .../V6_0_0__fix_repair_segment_table.sql | 14 ++ .../V7_0_0__fix_repair_segment_table.sql | 14 ++ .../db/postgres/V8_0_0__snapshots.sql | 14 ++ .../db/postgres/V9_0_0__coalesce_segments.sql | 14 ++ .../io/cassandrareaper/AssertionTest.java | 3 + ...ReaperApplicationConfigurationBuilder.java | 3 + .../ReaperApplicationConfigurationTest.java | 3 + .../ReaperApplicationTest.java | 3 + .../cassandrareaper/SimpleReaperClient.java | 3 + .../acceptance/BasicSteps.java | 3 + .../acceptance/ReaperCassandraIT.java | 3 + .../acceptance/ReaperH2IT.java | 3 + .../cassandrareaper/acceptance/ReaperIT.java | 3 + .../acceptance/ReaperPostgresIT.java | 3 + .../acceptance/ReaperTestJettyRunner.java | 3 + .../acceptance/TestContext.java | 3 + .../io/cassandrareaper/core/ClusterTest.java | 3 + .../cassandrareaper/jmx/JmxAddressesTest.java | 5 +- .../jmx/JmxConnectionsInitializerTest.java | 3 + .../io/cassandrareaper/jmx/JmxProxyTest.java | 3 + .../resources/ClusterResourceTest.java | 3 + .../resources/RepairRunResourceTest.java | 3 + .../resources/view/NodesStatusTest.java | 3 + .../resources/view/RepairRunStatusTest.java | 3 + .../view/RepairScheduleStatusTest.java | 3 + .../service/AutoSchedulingManagerTest.java | 3 + .../service/ClusterRepairSchedulerTest.java | 3 + .../io/cassandrareaper/service/HeartTest.java | 3 + .../service/MetricsGrabberTest.java | 3 + .../service/PurgeManagerTest.java | 3 + .../service/RepairManagerTest.java | 3 + .../service/RepairRunServiceTest.java | 3 + .../service/RepairRunnerTest.java | 3 + .../service/RingRangeTest.java | 3 + .../service/SegmentGeneratorTest.java | 3 + .../service/SegmentRunnerTest.java | 3 + .../service/SnapshotManagerTest.java | 3 + .../service/StreamFactoryTest.java | 3 + .../service/StreamManagerTest.java | 3 + .../service/TestRepairConfiguration.java | 3 + .../storage/CassandraStorageTest.java | 3 + .../src/test/resources/assets/login.html | 16 +- ...ndra-reaper-at-access-control-enabled.yaml | 17 +- .../test/resources/cassandra-reaper-at.yaml | 17 +- .../cassandra-reaper-cassandra-at.yaml | 17 +- .../resources/cassandra-reaper-h2-at.yaml | 17 +- .../cassandra-reaper-postgres-at.yaml | 17 +- .../src/test/resources/cassandra-reaper.yaml | 17 +- .../access_control.feature | 14 ++ .../integration_reaper_functionality.feature | 15 ++ .../src/test/resources/logback-test.xml | 15 ++ .../org.mockito.plugins.MockMaker | 2 +- .../repair-samples/stream-report-2-1-20.txt | 2 +- src/server/src/test/resources/shiro.ini | 16 +- src/ui/LICENSE | 202 ------------------ src/ui/app/html_template.ejs | 14 ++ src/ui/app/index.js | 18 +- src/ui/app/jsx/active-compactions.jsx | 17 +- src/ui/app/jsx/client-request-latency.jsx | 17 +- src/ui/app/jsx/cluster-form.jsx | 16 ++ src/ui/app/jsx/cluster-list.jsx | 18 +- src/ui/app/jsx/cluster-screen.jsx | 15 ++ src/ui/app/jsx/component.jsx | 17 +- src/ui/app/jsx/dashboard-page.jsx | 17 +- src/ui/app/jsx/dropped-messages.jsx | 17 +- src/ui/app/jsx/login-form.jsx | 17 +- src/ui/app/jsx/mixin.jsx | 16 ++ src/ui/app/jsx/node-status.jsx | 17 +- src/ui/app/jsx/repair-form.jsx | 16 ++ src/ui/app/jsx/repair-list.jsx | 16 ++ src/ui/app/jsx/repair-screen.jsx | 15 ++ src/ui/app/jsx/schedule-form.jsx | 16 ++ src/ui/app/jsx/schedule-list.jsx | 16 ++ src/ui/app/jsx/schedule-screen.jsx | 15 ++ src/ui/app/jsx/segment-list.jsx | 17 +- src/ui/app/jsx/server-status.jsx | 16 ++ src/ui/app/jsx/sidebar.jsx | 18 +- src/ui/app/jsx/snapshot-form.jsx | 15 ++ src/ui/app/jsx/snapshot-list.jsx | 15 ++ src/ui/app/jsx/snapshot-screen.jsx | 15 ++ src/ui/app/jsx/snapshot.jsx | 17 +- src/ui/app/jsx/stream.jsx | 15 ++ src/ui/app/jsx/streams.jsx | 15 ++ src/ui/app/jsx/tpstats.jsx | 17 +- src/ui/app/login.js | 17 +- src/ui/app/navbar.template.jsx | 17 +- src/ui/app/observable.js | 16 ++ src/ui/app/repair.js | 16 ++ src/ui/app/schedules.js | 18 +- src/ui/app/segments.js | 16 +- src/ui/app/snapshot.js | 15 ++ src/ui/app/style.scss | 17 +- src/ui/package.json | 5 +- src/ui/server.js | 18 +- src/ui/start-webpack.sh | 14 ++ src/ui/webpack.config.js | 16 ++ 324 files changed, 2880 insertions(+), 501 deletions(-) create mode 100644 CONTRIBUTING.md create mode 100644 NOTICE.md delete mode 100644 src/server/src/main/resources/assets/LICENSE delete mode 100644 src/ui/LICENSE diff --git a/.circleci/config.yml b/.circleci/config.yml index 104eeab8d..dd9a8dfbd 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,3 +1,17 @@ +# Copyright 2017-2018 The Last Pickle Ltd +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Java Maven CircleCI 2.0 configuration file # # Check https://circleci.com/docs/2.0/language-java/ for more details diff --git a/.rultor.yml b/.rultor.yml index 126abdc1b..d857d4dfa 100644 --- a/.rultor.yml +++ b/.rultor.yml @@ -1,3 +1,17 @@ +# Copyright 2017-2018 The Last Pickle Ltd +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + architect: - velo diff --git a/.travis.yml b/.travis.yml index 8535202b8..e671239ed 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,3 +1,18 @@ +# Copyright 2014-2016 Spotify AB +# Copyright 2016-2018 The Last Pickle Ltd +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + sudo: required language: java addons: diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 000000000..dcbcdbb5b --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,8 @@ + +## Contributing Code + +Reaper is licensed under the Apache 2.0 License. See `NOTICE.md` for more information on the license. + +All contributions (code, documentation, or anything else) to Reaper imply a copyright grant to `The Last Pickle Ltd`. + +Larger contributions will require an explicit contributor license agreement. diff --git a/LICENSE.txt b/LICENSE.txt index acb073d88..4f7302810 100644 --- a/LICENSE.txt +++ b/LICENSE.txt @@ -186,7 +186,7 @@ Apache License same "printed page" as the copyright notice for easier identification within third-party archives. - Copyright 2014-2015 Spotify AB + Copyright [yyyy] [name of copyright owner] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/NOTICE.md b/NOTICE.md new file mode 100644 index 000000000..8ea78e57a --- /dev/null +++ b/NOTICE.md @@ -0,0 +1,20 @@ +Reaper for Apache Cassandra +Licensed under the Apache 2.0 License + +Files are copyrighted in one of the three following ways. + +a) +``` +Copyright 201X-2017 Spotify AB +Copyright 201X-2018 The Last Pickle Ltd +``` +b) +``` +Copyright 2015-2016 Stefan Podkowinski +Copyright 201X-2018 The Last Pickle Ltd +``` +c) +``` +Copyright 201X-2018 The Last Pickle Ltd +``` + diff --git a/pom.xml b/pom.xml index f06009cd2..16077ee5c 100755 --- a/pom.xml +++ b/pom.xml @@ -1,4 +1,19 @@ + 4.0.0 @@ -12,6 +27,12 @@ https://cassandra-reaper.io Reaper is a centralized, stateful, and highly configurable tool for running Apache Cassandra repairs against single or multi-site clusters + + org.apache + apache + 20 + + Apache 2 @@ -155,6 +176,39 @@ + + org.apache.rat + apache-rat-plugin + 0.12 + + + **/target/** + docs/** + src/docs/themes/** + src/docs/data/** + src/docs/layouts/** + src/docs/static/** + src/ui/node_modules/** + src/ui/bower_components/** + src/ui/build/** + **/*.md + **/*.json + **/*.access + **/*.password + **/*.txt + src/packaging/debian/compat + src/packaging/debian/changelog + + + + + verify + + check + + + + diff --git a/src/ci/after_failure.sh b/src/ci/after_failure.sh index e4d2716e3..5bf9a6cda 100755 --- a/src/ci/after_failure.sh +++ b/src/ci/after_failure.sh @@ -1,4 +1,17 @@ #!/bin/bash +# Copyright 2017-2018 The Last Pickle Ltd +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. echo "Starting After Failure step..." @@ -14,4 +27,4 @@ case "${TEST_TYPE}" in ;; *) echo "Skipping, no actions for TEST_TYPE=${TEST_TYPE}." -esac \ No newline at end of file +esac diff --git a/src/ci/after_success.sh b/src/ci/after_success.sh index e19eec8cd..d220d9128 100755 --- a/src/ci/after_success.sh +++ b/src/ci/after_success.sh @@ -1,4 +1,17 @@ #!/bin/bash +# Copyright 2017-2018 The Last Pickle Ltd +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. echo "Starting After Success step..." @@ -22,4 +35,4 @@ case "${TEST_TYPE}" in ;; *) echo "Skipping, no actions for TEST_TYPE=${TEST_TYPE}." -esac \ No newline at end of file +esac diff --git a/src/ci/before_deploy.sh b/src/ci/before_deploy.sh index 5693db84e..7c251a3ab 100755 --- a/src/ci/before_deploy.sh +++ b/src/ci/before_deploy.sh @@ -1,4 +1,17 @@ #!/bin/bash +# Copyright 2017-2018 The Last Pickle Ltd +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. echo "Starting Before Deploy step..." diff --git a/src/ci/before_install.sh b/src/ci/before_install.sh index 06dfd65ad..167904da4 100755 --- a/src/ci/before_install.sh +++ b/src/ci/before_install.sh @@ -1,4 +1,17 @@ #!/bin/bash +# Copyright 2017-2018 The Last Pickle Ltd +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. echo "Starting Before Install step..." @@ -22,4 +35,4 @@ then # Requests needed for the src/packaging/bin/spreaper python script which calls the Reaper API pip install --user requests > /dev/null -fi \ No newline at end of file +fi diff --git a/src/ci/before_script.sh b/src/ci/before_script.sh index 7af3a2731..1edd0df82 100755 --- a/src/ci/before_script.sh +++ b/src/ci/before_script.sh @@ -1,4 +1,17 @@ #!/bin/bash +# Copyright 2017-2018 The Last Pickle Ltd +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. echo "Starting Before Script step..." @@ -19,4 +32,4 @@ case "${TEST_TYPE}" in ;; *) echo "Skipping, no actions for TEST_TYPE=${TEST_TYPE}." -esac \ No newline at end of file +esac diff --git a/src/ci/install.sh b/src/ci/install.sh index 2ef373afc..c67fd826e 100755 --- a/src/ci/install.sh +++ b/src/ci/install.sh @@ -1,4 +1,17 @@ #!/bin/bash +# Copyright 2017-2018 The Last Pickle Ltd +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. echo "Starting Install step..." diff --git a/src/ci/script.sh b/src/ci/script.sh index 0c5b2f814..3e6b60166 100755 --- a/src/ci/script.sh +++ b/src/ci/script.sh @@ -1,4 +1,17 @@ #!/bin/bash +# Copyright 2017-2018 The Last Pickle Ltd +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. echo "Starting Script step..." diff --git a/src/docs/Makefile b/src/docs/Makefile index 4724a9ae2..095de8644 100644 --- a/src/docs/Makefile +++ b/src/docs/Makefile @@ -1,3 +1,17 @@ +# Copyright 2017-2018 The Last Pickle Ltd +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + .PHONY: dev build: diff --git a/src/docs/config.toml b/src/docs/config.toml index c8cbbac77..f3ef91704 100644 --- a/src/docs/config.toml +++ b/src/docs/config.toml @@ -1,3 +1,17 @@ +# Copyright 2017-2018 The Last Pickle Ltd +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + baseURL = "http://cassandra-reaper.io/" languageCode = "en-us" title = "Reaper: Easy Repair Management for Apache Cassandra" diff --git a/src/docs/content/docs/backends/cassandra.md b/src/docs/content/docs/backends/cassandra.md index 37377a806..b96dfd4dc 100644 --- a/src/docs/content/docs/backends/cassandra.md +++ b/src/docs/content/docs/backends/cassandra.md @@ -53,4 +53,4 @@ When operating Reaper in a production environment, it is recommended that: * An RF (Replication Factor) of 3 be used in each data center for the `reaper_db` keyspace. This is to ensure that all Reaper state data is still available should a node in the cluster be unavailable. * The `NetworkTopologyStrategy` should be used for the replication strategy of the keyspace. This is because `LOCAL_*` requests will fail if the `SimpleNetworkingStrategy` is used in an environment where there is more than one data center defined. -Schema initialization and migration will be done automatically upon startup. \ No newline at end of file +Schema initialization and migration will be done automatically upon startup. diff --git a/src/docs/content/docs/backends/memory.md b/src/docs/content/docs/backends/memory.md index 7d2ea2c2c..1a4ea1edb 100644 --- a/src/docs/content/docs/backends/memory.md +++ b/src/docs/content/docs/backends/memory.md @@ -13,4 +13,4 @@ To use in memory storage as the storage type for Reaper, the `storageType` setti storageType: memory ``` -In-memory storage is volatile and as such all registered cluster, column families and repair information will be lost upon service restart. This storage setting is intended for testing purposes only. \ No newline at end of file +In-memory storage is volatile and as such all registered cluster, column families and repair information will be lost upon service restart. This storage setting is intended for testing purposes only. diff --git a/src/docs/content/docs/community.md b/src/docs/content/docs/community.md index a53ea1b9c..7bbc34943 100644 --- a/src/docs/content/docs/community.md +++ b/src/docs/content/docs/community.md @@ -5,4 +5,4 @@ weight = 100 +++ -We have a [Mailing List](https://groups.google.com/forum/#!forum/tlp-apache-cassandra-reaper-users) and [Gitter chat](https://gitter.im/thelastpickle/cassandra-reaper) available. \ No newline at end of file +We have a [Mailing List](https://groups.google.com/forum/#!forum/tlp-apache-cassandra-reaper-users) and [Gitter chat](https://gitter.im/thelastpickle/cassandra-reaper) available. diff --git a/src/docs/content/docs/configuration/_index.md b/src/docs/content/docs/configuration/_index.md index c7d9977b2..9eb32b12d 100644 --- a/src/docs/content/docs/configuration/_index.md +++ b/src/docs/content/docs/configuration/_index.md @@ -18,4 +18,4 @@ The configuration is broken into the following sections: * [Backend Specific]({{}}) - Provides details on settings specific to the different backends that can be used with Reaper; Cassandra, H2 and Postgres. * [Docker Variables]({{}}) - Provides details on the Docker Variables that can be used to configure Reaper. -Note that Cassandra backend configuration relies on the [Dropwizard-Cassandra](https://github.com/composable-systems/dropwizard-cassandra) module. \ No newline at end of file +Note that Cassandra backend configuration relies on the [Dropwizard-Cassandra](https://github.com/composable-systems/dropwizard-cassandra) module. diff --git a/src/docs/content/docs/configuration/backend_specific.md b/src/docs/content/docs/configuration/backend_specific.md index a3c86fee2..a9401aa2d 100644 --- a/src/docs/content/docs/configuration/backend_specific.md +++ b/src/docs/content/docs/configuration/backend_specific.md @@ -167,4 +167,4 @@ Database username. Type: *String* -Database password. \ No newline at end of file +Database password. diff --git a/src/docs/content/docs/metrics/_index.md b/src/docs/content/docs/metrics/_index.md index fd671f2f2..b876d5ef4 100644 --- a/src/docs/content/docs/metrics/_index.md +++ b/src/docs/content/docs/metrics/_index.md @@ -14,4 +14,4 @@ metrics: frequency: 1 minute reporters: - type: -``` \ No newline at end of file +``` diff --git a/src/docs/content/docs/metrics/graphite.md b/src/docs/content/docs/metrics/graphite.md index 5bfe1945e..ce42d4261 100644 --- a/src/docs/content/docs/metrics/graphite.md +++ b/src/docs/content/docs/metrics/graphite.md @@ -24,4 +24,4 @@ Where: * `host_address` is hostname of the Graphite server to report to. * `port_number` is port of the Graphite server to report to. -* `prefix` is prefix for Metric key names that are reported to the Graphite server. Typically this will be the hostname sending the metrics to the Graphite server. \ No newline at end of file +* `prefix` is prefix for Metric key names that are reported to the Graphite server. Typically this will be the hostname sending the metrics to the Graphite server. diff --git a/src/docs/content/docs/usage/_index.md b/src/docs/content/docs/usage/_index.md index 90c16edd2..3a98c79db 100644 --- a/src/docs/content/docs/usage/_index.md +++ b/src/docs/content/docs/usage/_index.md @@ -17,4 +17,4 @@ The web interface provides the ability to: * [Add/remove](add_cluster) clusters * [Manage repair](schedule) schedules -* [Run manual repairs](single) and manage running repairs \ No newline at end of file +* [Run manual repairs](single) and manage running repairs diff --git a/src/docs/content/docs/usage/authentication.md b/src/docs/content/docs/usage/authentication.md index 0c5c36a1b..a4a94a239 100644 --- a/src/docs/content/docs/usage/authentication.md +++ b/src/docs/content/docs/usage/authentication.md @@ -92,4 +92,4 @@ a591a6d40bf420404a011733cfb7b190d62c65bf0bcda32b57b277d9ad9f146e Then start Reaper. -Both the REST API and the `/webui/login.html` pages will be accessible anonymously, but all other pages will require to be authenticated. \ No newline at end of file +Both the REST API and the `/webui/login.html` pages will be accessible anonymously, but all other pages will require to be authenticated. diff --git a/src/docs/content/docs/usage/schedule.md b/src/docs/content/docs/usage/schedule.md index 3c5142476..518bc98d6 100644 --- a/src/docs/content/docs/usage/schedule.md +++ b/src/docs/content/docs/usage/schedule.md @@ -39,4 +39,4 @@ Note that when choosing to add a new repair schedule, it is recommended to restr For example, if there are certain tables that contain valuable data or a business requirement for high consistency and high availability, they could be schedule to be repaired during low traffic periods. -Note that scheduled repairs can be paused and deleted by users with access to the Reaper web interface. To add authentication security the web UI see the [authentication](../authentication) section for further information. \ No newline at end of file +Note that scheduled repairs can be paused and deleted by users with access to the Reaper web interface. To add authentication security the web UI see the [authentication](../authentication) section for further information. diff --git a/src/docs/content/faq.md b/src/docs/content/faq.md index 213a39032..0d805300d 100644 --- a/src/docs/content/faq.md +++ b/src/docs/content/faq.md @@ -18,4 +18,4 @@ When we (The Last Pickle) took over development of Reaper, we found it cumbersom For small setups, using a local DB (H2) can make sense. This would allow reaper to run on a single node using EBS for storage. This is intentionally a very simple design to keep costs down and avoid extra operational work. -For new installations, we're recommending the Cassandra backend as it allows the most flexibility, with the highest level of availability. \ No newline at end of file +For new installations, we're recommending the Cassandra backend as it allows the most flexibility, with the highest level of availability. diff --git a/src/packaging/Makefile b/src/packaging/Makefile index 87d9fa389..decc24f78 100644 --- a/src/packaging/Makefile +++ b/src/packaging/Makefile @@ -1,3 +1,18 @@ +# Copyright 2016-2017 Spotify AB +# Copyright 2016-2018 The Last Pickle Ltd +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Using mvn: VERSION := `mvn org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate -Dexpression=project.version -f ../../pom.xml | grep -v '\['` diff --git a/src/packaging/bin/spreaper b/src/packaging/bin/spreaper index 66f6b2920..2b304319b 100755 --- a/src/packaging/bin/spreaper +++ b/src/packaging/bin/spreaper @@ -1,16 +1,19 @@ #!/usr/bin/env python # +# Copyright 2014-2017 Spotify AB +# Copyright 2016-2018 The Last Pickle Ltd +# # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. -# You may obtain a copy of the License at +# You may obtain a copy of the License at # -# http://www.apache.org/licenses/LICENSE-2.0 +# http://www.apache.org/licenses/LICENSE-2.0 # -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # import argparse import getpass diff --git a/src/packaging/debian/cassandra-reaper-cli.install b/src/packaging/debian/cassandra-reaper-cli.install index 057f1be8a..9cb7251a1 100644 --- a/src/packaging/debian/cassandra-reaper-cli.install +++ b/src/packaging/debian/cassandra-reaper-cli.install @@ -1,2 +1,17 @@ +# Copyright 2015-2017 Spotify AB +# Copyright 2016-2018 The Last Pickle Ltd +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + bin/spreaper usr/bin etc/bash_completion.d/spreaper etc/bash_completion.d diff --git a/src/packaging/debian/cassandra-reaper.install b/src/packaging/debian/cassandra-reaper.install index a227d4e9f..f481db1be 100644 --- a/src/packaging/debian/cassandra-reaper.install +++ b/src/packaging/debian/cassandra-reaper.install @@ -1,2 +1,17 @@ +# Copyright 2014-2017 Spotify AB +# Copyright 2016-2018 The Last Pickle Ltd +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + bin/cassandra-reaper usr/bin target/cassandra-reaper*.jar usr/share/cassandra-reaper/ diff --git a/src/packaging/debian/cassandra-reaper.service b/src/packaging/debian/cassandra-reaper.service index e3076d4bf..e89c8b678 100644 --- a/src/packaging/debian/cassandra-reaper.service +++ b/src/packaging/debian/cassandra-reaper.service @@ -1,3 +1,17 @@ +# Copyright 2018-2018 The Last Pickle Ltd +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + [Unit] Description=Cassandra Reaper Documentation=http://cassandra-reaper.io/ @@ -25,4 +39,4 @@ SendSIGKILL=no SuccessExitStatus=143 [Install] -WantedBy=multi-user.target \ No newline at end of file +WantedBy=multi-user.target diff --git a/src/packaging/debian/cassandra-reaper.upstart b/src/packaging/debian/cassandra-reaper.upstart index b94636dec..eddda3b9e 100644 --- a/src/packaging/debian/cassandra-reaper.upstart +++ b/src/packaging/debian/cassandra-reaper.upstart @@ -1,3 +1,18 @@ +# Copyright 2015-2017 Spotify AB +# Copyright 2016-2018 The Last Pickle Ltd +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + description "cassandra-reaper process" author "Bases " diff --git a/src/packaging/debian/control b/src/packaging/debian/control index 5380322d7..4b66bfabd 100644 --- a/src/packaging/debian/control +++ b/src/packaging/debian/control @@ -1,3 +1,18 @@ +# Copyright 2014-2017 Spotify AB +# Copyright 2016-2018 The Last Pickle Ltd +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + Source: cassandra-reaper Section: non-free/net Priority: extra diff --git a/src/packaging/debian/postinstall.sh b/src/packaging/debian/postinstall.sh index 730aea59c..8af2369bd 100644 --- a/src/packaging/debian/postinstall.sh +++ b/src/packaging/debian/postinstall.sh @@ -1,4 +1,18 @@ #!/usr/bin/env bash +# Copyright 2018-2018 The Last Pickle Ltd +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + mkdir -p /var/log/cassandra-reaper/ touch /var/log/cassandra-reaper/reaper.log -chown -R reaper: /var/log/cassandra-reaper/ \ No newline at end of file +chown -R reaper: /var/log/cassandra-reaper/ diff --git a/src/packaging/debian/preinstall.sh b/src/packaging/debian/preinstall.sh index 503d142d0..be90d245e 100644 --- a/src/packaging/debian/preinstall.sh +++ b/src/packaging/debian/preinstall.sh @@ -1,4 +1,19 @@ #!/bin/bash +# Copyright 2016-2017 Spotify AB +# Copyright 2016-2018 The Last Pickle Ltd +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + if id -u reaper; then echo "skipping user" else diff --git a/src/packaging/debian/reaper.init b/src/packaging/debian/reaper.init index 7903d58ac..765a1ae97 100644 --- a/src/packaging/debian/reaper.init +++ b/src/packaging/debian/reaper.init @@ -1,4 +1,19 @@ #!/bin/sh +# Copyright 2016-2017 Spotify AB +# Copyright 2016-2018 The Last Pickle Ltd +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ### BEGIN INIT INFO # Provides: cassandra-reaper # Required-Start: $remote_fs $syslog diff --git a/src/packaging/debian/rules b/src/packaging/debian/rules index 7e642124e..52b2c473e 100755 --- a/src/packaging/debian/rules +++ b/src/packaging/debian/rules @@ -1,4 +1,18 @@ #!/usr/bin/make -f +# Copyright 2014-2017 Spotify AB +# Copyright 2016-2018 The Last Pickle Ltd +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. DEB_DH_INSTALL_SOURCEDIR=debian/tmp DEB_DH_INSTALLINIT_ARGS=-n diff --git a/src/packaging/docker-build/Dockerfile b/src/packaging/docker-build/Dockerfile index 873fb4043..fd6eace73 100644 --- a/src/packaging/docker-build/Dockerfile +++ b/src/packaging/docker-build/Dockerfile @@ -1,3 +1,18 @@ +# Copyright 2017-2017 Spotify AB +# Copyright 2017-2018 The Last Pickle Ltd +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + FROM ubuntu:16.04 # use a common app path, copied from python-onbuild:latest diff --git a/src/packaging/docker-build/docker-compose.yml b/src/packaging/docker-build/docker-compose.yml index 7b52dac80..825c9072d 100644 --- a/src/packaging/docker-build/docker-compose.yml +++ b/src/packaging/docker-build/docker-compose.yml @@ -1,3 +1,18 @@ +# Copyright 2017-2017 Spotify AB +# Copyright 2017-2018 The Last Pickle Ltd +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + version: '2.1' services: diff --git a/src/packaging/docker-build/docker-entrypoint.sh b/src/packaging/docker-build/docker-entrypoint.sh index 6536b01d4..c464a6022 100755 --- a/src/packaging/docker-build/docker-entrypoint.sh +++ b/src/packaging/docker-build/docker-entrypoint.sh @@ -1,4 +1,18 @@ #!/usr/bin/env bash +# Copyright 2017-2017 Spotify AB +# Copyright 2017-2018 The Last Pickle Ltd +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. set -ex diff --git a/src/packaging/docker-compose.yml b/src/packaging/docker-compose.yml index c42322457..1c9715669 100644 --- a/src/packaging/docker-compose.yml +++ b/src/packaging/docker-compose.yml @@ -1,3 +1,18 @@ +# Copyright 2017-2017 Spotify AB +# Copyright 2017-2018 The Last Pickle Ltd +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + version: '2.1' services: @@ -151,4 +166,4 @@ services: env_file: - ./docker-services/reaper-in-memory/reaper-in-memory.env links: - - cassandra \ No newline at end of file + - cassandra diff --git a/src/packaging/docker-services/cassandra-ssl/cassandra-ssl.env b/src/packaging/docker-services/cassandra-ssl/cassandra-ssl.env index b66dbacd7..9f4b6350d 100644 --- a/src/packaging/docker-services/cassandra-ssl/cassandra-ssl.env +++ b/src/packaging/docker-services/cassandra-ssl/cassandra-ssl.env @@ -1,4 +1,18 @@ #!/usr/bin/env bash +# Copyright 2017-2017 Spotify AB +# Copyright 2017-2018 The Last Pickle Ltd +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. CASSANDRA_KEYSTORE_PASSWORD=keypassword -CASSANDRA_TRUSTSTORE_PASSWORD=trustpassword \ No newline at end of file +CASSANDRA_TRUSTSTORE_PASSWORD=trustpassword diff --git a/src/packaging/docker-services/cassandra-ssl/docker-entrypoint.sh b/src/packaging/docker-services/cassandra-ssl/docker-entrypoint.sh index 1b38dc5ba..146e13e7a 100755 --- a/src/packaging/docker-services/cassandra-ssl/docker-entrypoint.sh +++ b/src/packaging/docker-services/cassandra-ssl/docker-entrypoint.sh @@ -1,4 +1,18 @@ #!/bin/bash +# Copyright 2017-2017 Spotify AB +# Copyright 2017-2018 The Last Pickle Ltd +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # copied from: # https://github.com/docker-library/cassandra/blob/d83b850cd17bc9198876f8686197c730e29c7448/2.1/docker-entrypoint.sh @@ -110,4 +124,4 @@ if [ "$1" = 'cassandra' ]; then sed -ie "s/#JVM_OPTS=\"\$JVM_OPTS -Djavax.net.ssl.trustStorePassword=\"/JVM_OPTS=\"\$JVM_OPTS -Djavax.net.ssl.trustStorePassword=${CASSANDRA_TRUSTSTORE_PASSWORD}\"/g" /etc/cassandra/cassandra-env.sh fi -exec "$@" \ No newline at end of file +exec "$@" diff --git a/src/packaging/docker-services/cassandra/cassandra.env b/src/packaging/docker-services/cassandra/cassandra.env index bbb15ddee..07feeffb7 100644 --- a/src/packaging/docker-services/cassandra/cassandra.env +++ b/src/packaging/docker-services/cassandra/cassandra.env @@ -1,4 +1,18 @@ #!/usr/bin/env bash +# Copyright 2017-2017 Spotify AB +# Copyright 2017-2018 The Last Pickle Ltd +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # leave blank to auto configure CASSANDRA_BROADCAST_ADDRESS diff --git a/src/packaging/docker-services/cqlsh-initialize-reaper_db-ssl/cqlsh-initialize-reaper_db-ssl.env b/src/packaging/docker-services/cqlsh-initialize-reaper_db-ssl/cqlsh-initialize-reaper_db-ssl.env index 6ae7f1997..bc323025c 100644 --- a/src/packaging/docker-services/cqlsh-initialize-reaper_db-ssl/cqlsh-initialize-reaper_db-ssl.env +++ b/src/packaging/docker-services/cqlsh-initialize-reaper_db-ssl/cqlsh-initialize-reaper_db-ssl.env @@ -1,4 +1,18 @@ #!/usr/bin/env bash +# Copyright 2017-2017 Spotify AB +# Copyright 2017-2018 The Last Pickle Ltd +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. CQLSH_ENABLE_SSL=true @@ -8,4 +22,4 @@ CASSANDRA_HOSTNAME=cassandra-ssl CASSANDRA_DC=datacenter1 CASSANDRA_KEYSTORE_ALIAS=cassandra -CASSANDRA_KEYSTORE_PASSWORD=keypassword \ No newline at end of file +CASSANDRA_KEYSTORE_PASSWORD=keypassword diff --git a/src/packaging/docker-services/cqlsh-initialize-reaper_db-ssl/docker-entrypoint.sh b/src/packaging/docker-services/cqlsh-initialize-reaper_db-ssl/docker-entrypoint.sh index 400734409..57100f4d0 100755 --- a/src/packaging/docker-services/cqlsh-initialize-reaper_db-ssl/docker-entrypoint.sh +++ b/src/packaging/docker-services/cqlsh-initialize-reaper_db-ssl/docker-entrypoint.sh @@ -1,4 +1,18 @@ #!/usr/bin/env bash +# Copyright 2017-2017 Spotify AB +# Copyright 2017-2018 The Last Pickle Ltd +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. set -xe @@ -6,4 +20,4 @@ REPLICATION_FACTOR=${1:-1} CQLSH_COMMAND="CREATE KEYSPACE IF NOT EXISTS reaper_db WITH replication = {'class': 'NetworkTopologyStrategy', '$CASSANDRA_DC': $REPLICATION_FACTOR };" -/docker-entrypoint.sh \ No newline at end of file +/docker-entrypoint.sh diff --git a/src/packaging/docker-services/cqlsh-initialize-reaper_db/cqlsh-initialize-reaper_db.env b/src/packaging/docker-services/cqlsh-initialize-reaper_db/cqlsh-initialize-reaper_db.env index 7b12e2e3b..ae5c86abb 100644 --- a/src/packaging/docker-services/cqlsh-initialize-reaper_db/cqlsh-initialize-reaper_db.env +++ b/src/packaging/docker-services/cqlsh-initialize-reaper_db/cqlsh-initialize-reaper_db.env @@ -1,6 +1,20 @@ #!/usr/bin/env bash +# Copyright 2017-2017 Spotify AB +# Copyright 2017-2018 The Last Pickle Ltd +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. CASSANDRA_HOSTNAME=cassandra # use the same DC value set in the cassandra.env file -CASSANDRA_DC=datacenter1 \ No newline at end of file +CASSANDRA_DC=datacenter1 diff --git a/src/packaging/docker-services/cqlsh-initialize-reaper_db/docker-entrypoint.sh b/src/packaging/docker-services/cqlsh-initialize-reaper_db/docker-entrypoint.sh index 400734409..57100f4d0 100755 --- a/src/packaging/docker-services/cqlsh-initialize-reaper_db/docker-entrypoint.sh +++ b/src/packaging/docker-services/cqlsh-initialize-reaper_db/docker-entrypoint.sh @@ -1,4 +1,18 @@ #!/usr/bin/env bash +# Copyright 2017-2017 Spotify AB +# Copyright 2017-2018 The Last Pickle Ltd +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. set -xe @@ -6,4 +20,4 @@ REPLICATION_FACTOR=${1:-1} CQLSH_COMMAND="CREATE KEYSPACE IF NOT EXISTS reaper_db WITH replication = {'class': 'NetworkTopologyStrategy', '$CASSANDRA_DC': $REPLICATION_FACTOR };" -/docker-entrypoint.sh \ No newline at end of file +/docker-entrypoint.sh diff --git a/src/packaging/docker-services/cqlsh-ssl/cqlsh-ssl.env b/src/packaging/docker-services/cqlsh-ssl/cqlsh-ssl.env index cbac2440f..3bfcc24c9 100644 --- a/src/packaging/docker-services/cqlsh-ssl/cqlsh-ssl.env +++ b/src/packaging/docker-services/cqlsh-ssl/cqlsh-ssl.env @@ -1,8 +1,22 @@ #!/usr/bin/env bash +# Copyright 2017-2017 Spotify AB +# Copyright 2017-2018 The Last Pickle Ltd +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. CQLSH_ENABLE_SSL=true CASSANDRA_HOSTNAME=cassandra-ssl CASSANDRA_KEYSTORE_ALIAS=cassandra -CASSANDRA_KEYSTORE_PASSWORD=keypassword \ No newline at end of file +CASSANDRA_KEYSTORE_PASSWORD=keypassword diff --git a/src/packaging/docker-services/cqlsh/Dockerfile b/src/packaging/docker-services/cqlsh/Dockerfile index f59f58939..89c5c4d44 100644 --- a/src/packaging/docker-services/cqlsh/Dockerfile +++ b/src/packaging/docker-services/cqlsh/Dockerfile @@ -1,3 +1,18 @@ +# Copyright 2017-2017 Spotify AB +# Copyright 2017-2018 The Last Pickle Ltd +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + FROM cassandra:3.11 ENV CQLSH_COMMAND="" \ @@ -9,4 +24,4 @@ COPY docker-entrypoint.sh / ENTRYPOINT ["/docker-entrypoint.sh"] # use a default replication factor of 1 -CMD [""] \ No newline at end of file +CMD [""] diff --git a/src/packaging/docker-services/cqlsh/cql.env b/src/packaging/docker-services/cqlsh/cql.env index c9321df8e..4ec097b72 100644 --- a/src/packaging/docker-services/cqlsh/cql.env +++ b/src/packaging/docker-services/cqlsh/cql.env @@ -1,3 +1,17 @@ #!/usr/bin/env bash +# Copyright 2017-2017 Spotify AB +# Copyright 2017-2018 The Last Pickle Ltd +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. -CASSANDRA_HOSTNAME=cassandra \ No newline at end of file +CASSANDRA_HOSTNAME=cassandra diff --git a/src/packaging/docker-services/cqlsh/docker-entrypoint.sh b/src/packaging/docker-services/cqlsh/docker-entrypoint.sh index ef299dddf..701c70048 100755 --- a/src/packaging/docker-services/cqlsh/docker-entrypoint.sh +++ b/src/packaging/docker-services/cqlsh/docker-entrypoint.sh @@ -1,4 +1,18 @@ #!/usr/bin/env bash +# Copyright 2017-2017 Spotify AB +# Copyright 2017-2018 The Last Pickle Ltd +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. set -xe @@ -54,4 +68,4 @@ then exit fi -cqlsh ${CASSANDRA_HOSTNAME} ${CQLSH_OPTS} \ No newline at end of file +cqlsh ${CASSANDRA_HOSTNAME} ${CQLSH_OPTS} diff --git a/src/packaging/docker-services/generate-ssl-stores/Dockerfile b/src/packaging/docker-services/generate-ssl-stores/Dockerfile index 5e2c30ffd..babfc2da2 100644 --- a/src/packaging/docker-services/generate-ssl-stores/Dockerfile +++ b/src/packaging/docker-services/generate-ssl-stores/Dockerfile @@ -1,3 +1,18 @@ +# Copyright 2017-2017 Spotify AB +# Copyright 2017-2018 The Last Pickle Ltd +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + FROM openjdk:8-jre-alpine ENV WORKDIR /usr/src/app @@ -13,4 +28,4 @@ COPY docker-entrypoint.sh / ENTRYPOINT ["/docker-entrypoint.sh"] # default passwords if no arguments supplied -CMD ["keypassword", "trustpassword"] \ No newline at end of file +CMD ["keypassword", "trustpassword"] diff --git a/src/packaging/docker-services/generate-ssl-stores/docker-entrypoint.sh b/src/packaging/docker-services/generate-ssl-stores/docker-entrypoint.sh index 5098b1f5a..1f81ccd0d 100755 --- a/src/packaging/docker-services/generate-ssl-stores/docker-entrypoint.sh +++ b/src/packaging/docker-services/generate-ssl-stores/docker-entrypoint.sh @@ -1,4 +1,18 @@ #!/bin/sh +# Copyright 2017-2017 Spotify AB +# Copyright 2017-2018 The Last Pickle Ltd +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. set -ex @@ -112,4 +126,4 @@ keytool -keystore ${REAPER_KEYSTORE} -alias reaper -import -file reaper_cert_sig # Create the trust store. keytool -keystore ${GENERIC_TRUSTSTORE} -alias CARoot -importcert -file ${ROOT_CA_CERT} \ - -keypass ${CASSANDRA_TRUSTSTORE_PASSWORD} -storepass ${CASSANDRA_TRUSTSTORE_PASSWORD} -noprompt \ No newline at end of file + -keypass ${CASSANDRA_TRUSTSTORE_PASSWORD} -storepass ${CASSANDRA_TRUSTSTORE_PASSWORD} -noprompt diff --git a/src/packaging/docker-services/nodetool-ssl/nodetool-ssl.env b/src/packaging/docker-services/nodetool-ssl/nodetool-ssl.env index b1ef90490..6321485d9 100644 --- a/src/packaging/docker-services/nodetool-ssl/nodetool-ssl.env +++ b/src/packaging/docker-services/nodetool-ssl/nodetool-ssl.env @@ -1,8 +1,22 @@ #!/usr/bin/env bash +# Copyright 2017-2017 Spotify AB +# Copyright 2017-2018 The Last Pickle Ltd +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. CASSANDRA_HOSTNAME=cassandra-ssl NODETOOL_ENABLE_SSL=true CASSANDRA_KEYSTORE_PASSWORD=keypassword -CASSANDRA_TRUSTSTORE_PASSWORD=trustpassword \ No newline at end of file +CASSANDRA_TRUSTSTORE_PASSWORD=trustpassword diff --git a/src/packaging/docker-services/nodetool/Dockerfile b/src/packaging/docker-services/nodetool/Dockerfile index 81a1d7076..a747b8615 100644 --- a/src/packaging/docker-services/nodetool/Dockerfile +++ b/src/packaging/docker-services/nodetool/Dockerfile @@ -1,3 +1,18 @@ +# Copyright 2017-2017 Spotify AB +# Copyright 2017-2018 The Last Pickle Ltd +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + FROM cassandra:3.11 ENV WORKDIR /root @@ -11,4 +26,4 @@ COPY nodetool-ssl.properties ${WORKDIR}/.cassandra/nodetool-ssl.properties COPY docker-entrypoint.sh / ENTRYPOINT ["/docker-entrypoint.sh"] -CMD [""] \ No newline at end of file +CMD [""] diff --git a/src/packaging/docker-services/nodetool/docker-entrypoint.sh b/src/packaging/docker-services/nodetool/docker-entrypoint.sh index e9e5221dd..35ff96d7b 100755 --- a/src/packaging/docker-services/nodetool/docker-entrypoint.sh +++ b/src/packaging/docker-services/nodetool/docker-entrypoint.sh @@ -1,4 +1,18 @@ #!/bin/bash +# Copyright 2017-2017 Spotify AB +# Copyright 2017-2018 The Last Pickle Ltd +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. set -e @@ -11,4 +25,4 @@ if [ "true" = "${NODETOOL_ENABLE_SSL}" ]; then sed -ie "s/CASSANDRA_TRUSTSTORE_PASSWORD/${CASSANDRA_TRUSTSTORE_PASSWORD}/g" ${WORKDIR}/.cassandra/nodetool-ssl.properties fi -nodetool --host ${CASSANDRA_HOSTNAME} --username cassandraUser --password cassandraPass ${NODETOOL_OPTS} $1 \ No newline at end of file +nodetool --host ${CASSANDRA_HOSTNAME} --username cassandraUser --password cassandraPass ${NODETOOL_OPTS} $1 diff --git a/src/packaging/docker-services/nodetool/nodetool-ssl.properties b/src/packaging/docker-services/nodetool/nodetool-ssl.properties index e70e7e3af..e97167b9c 100644 --- a/src/packaging/docker-services/nodetool/nodetool-ssl.properties +++ b/src/packaging/docker-services/nodetool/nodetool-ssl.properties @@ -1,6 +1,21 @@ +# Copyright 2017-2017 Spotify AB +# Copyright 2017-2018 The Last Pickle Ltd +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + -Djavax.net.ssl.keyStore=/etc/ssl/cassandra-server-keystore.jks -Djavax.net.ssl.keyStorePassword=CASSANDRA_KEYSTORE_PASSWORD -Djavax.net.ssl.trustStore=/etc/ssl/generic-server-truststore.jks -Djavax.net.ssl.trustStorePassword=CASSANDRA_TRUSTSTORE_PASSWORD -Dcom.sun.management.jmxremote.ssl.need.client.auth=true --Dcom.sun.management.jmxremote.registry.ssl=true \ No newline at end of file +-Dcom.sun.management.jmxremote.registry.ssl=true diff --git a/src/packaging/docker-services/nodetool/nodetool.env b/src/packaging/docker-services/nodetool/nodetool.env index c9321df8e..4ec097b72 100644 --- a/src/packaging/docker-services/nodetool/nodetool.env +++ b/src/packaging/docker-services/nodetool/nodetool.env @@ -1,3 +1,17 @@ #!/usr/bin/env bash +# Copyright 2017-2017 Spotify AB +# Copyright 2017-2018 The Last Pickle Ltd +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. -CASSANDRA_HOSTNAME=cassandra \ No newline at end of file +CASSANDRA_HOSTNAME=cassandra diff --git a/src/packaging/docker-services/reaper-in-memory/reaper-in-memory.env b/src/packaging/docker-services/reaper-in-memory/reaper-in-memory.env index 2989d697e..6e2b9dc45 100644 --- a/src/packaging/docker-services/reaper-in-memory/reaper-in-memory.env +++ b/src/packaging/docker-services/reaper-in-memory/reaper-in-memory.env @@ -1,3 +1,17 @@ #!/usr/bin/env bash +# Copyright 2017-2017 Spotify AB +# Copyright 2017-2018 The Last Pickle Ltd +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. -REAPER_STORAGE_TYPE=memory \ No newline at end of file +REAPER_STORAGE_TYPE=memory diff --git a/src/packaging/docker-services/reaper-ssl/reaper-ssl.env b/src/packaging/docker-services/reaper-ssl/reaper-ssl.env index 9479f60c2..36617ad71 100644 --- a/src/packaging/docker-services/reaper-ssl/reaper-ssl.env +++ b/src/packaging/docker-services/reaper-ssl/reaper-ssl.env @@ -1,4 +1,18 @@ #!/usr/bin/env bash +# Copyright 2017-2017 Spotify AB +# Copyright 2017-2018 The Last Pickle Ltd +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. REAPER_CASS_CONTACT_POINTS=["cassandra-ssl"] @@ -7,4 +21,4 @@ REAPER_CASS_NATIVE_PROTOCOL_SSL_ENCRYPTION_ENABLED=true # use SSL encryption when connecting to Cassandra via JMX # use the passwords that match the generate-ssl-stores service defaults -JAVA_OPTS=-Dssl.enable=true -Djavax.net.ssl.keyStore=/etc/ssl/reaper-server-keystore.jks -Djavax.net.ssl.keyStorePassword=keypassword -Djavax.net.ssl.trustStore=/etc/ssl/generic-server-truststore.jks -Djavax.net.ssl.trustStorePassword=trustpassword \ No newline at end of file +JAVA_OPTS=-Dssl.enable=true -Djavax.net.ssl.keyStore=/etc/ssl/reaper-server-keystore.jks -Djavax.net.ssl.keyStorePassword=keypassword -Djavax.net.ssl.trustStore=/etc/ssl/generic-server-truststore.jks -Djavax.net.ssl.trustStorePassword=trustpassword diff --git a/src/packaging/docker-services/reaper/reaper.env b/src/packaging/docker-services/reaper/reaper.env index 7c14f60ed..a3f0b204e 100644 --- a/src/packaging/docker-services/reaper/reaper.env +++ b/src/packaging/docker-services/reaper/reaper.env @@ -1,4 +1,18 @@ #!/usr/bin/env bash +# Copyright 2017-2017 Spotify AB +# Copyright 2017-2018 The Last Pickle Ltd +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # use the credentials that match the ./docker/cassandra/jmxremote.* configurations REAPER_JMX_AUTH_USERNAME=reaperUser @@ -9,4 +23,4 @@ REAPER_JMX_AUTH_PASSWORD=reaperPass REAPER_STORAGE_TYPE=cassandra REAPER_CASS_CLUSTER_NAME="reaper-cluster" REAPER_CASS_CONTACT_POINTS=["cassandra"] -REAPER_CASS_KEYSPACE=reaper_db \ No newline at end of file +REAPER_CASS_KEYSPACE=reaper_db diff --git a/src/packaging/etc/bash_completion.d/spreaper b/src/packaging/etc/bash_completion.d/spreaper index 2ded95f0a..0f850e1c1 100644 --- a/src/packaging/etc/bash_completion.d/spreaper +++ b/src/packaging/etc/bash_completion.d/spreaper @@ -1,3 +1,17 @@ +# Copyright 2018-2018 The Last Pickle Ltd +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # spreaper(1) completion _list_clusters() diff --git a/src/packaging/redhat/postinstall.sh b/src/packaging/redhat/postinstall.sh index 730aea59c..8af2369bd 100644 --- a/src/packaging/redhat/postinstall.sh +++ b/src/packaging/redhat/postinstall.sh @@ -1,4 +1,18 @@ #!/usr/bin/env bash +# Copyright 2018-2018 The Last Pickle Ltd +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + mkdir -p /var/log/cassandra-reaper/ touch /var/log/cassandra-reaper/reaper.log -chown -R reaper: /var/log/cassandra-reaper/ \ No newline at end of file +chown -R reaper: /var/log/cassandra-reaper/ diff --git a/src/packaging/redhat/preinstall.sh b/src/packaging/redhat/preinstall.sh index a15e40599..2b5877a1e 100644 --- a/src/packaging/redhat/preinstall.sh +++ b/src/packaging/redhat/preinstall.sh @@ -1,2 +1,17 @@ +# Copyright 2017-2017 Spotify AB +# Copyright 2017-2018 The Last Pickle Ltd +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + /usr/bin/getent group reaper > /dev/null || /usr/sbin/groupadd -r reaper /usr/bin/getent passwd reaper > /dev/null || /usr/sbin/useradd -r -g reaper -s /sbin/nologin -d /var/empty -c 'cassandra reaper' reaper || : diff --git a/src/packaging/resource/ca_cert.conf b/src/packaging/resource/ca_cert.conf index 4878385c1..f61df3c56 100644 --- a/src/packaging/resource/ca_cert.conf +++ b/src/packaging/resource/ca_cert.conf @@ -1,3 +1,18 @@ +# Copyright 2017-2017 Spotify AB +# Copyright 2017-2018 The Last Pickle Ltd +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + [ req ] distinguished_name = req_distinguished_name prompt = no @@ -11,4 +26,4 @@ L = Sydney O = TLP OU = TestCluster CN = TestClusterMasterCA -emailAddress = no-reply@thelastpickle.com \ No newline at end of file +emailAddress = no-reply@thelastpickle.com diff --git a/src/packaging/resource/cassandra-reaper-cassandra-ssl.yaml b/src/packaging/resource/cassandra-reaper-cassandra-ssl.yaml index 425bea4cf..09896d422 100644 --- a/src/packaging/resource/cassandra-reaper-cassandra-ssl.yaml +++ b/src/packaging/resource/cassandra-reaper-cassandra-ssl.yaml @@ -1,3 +1,18 @@ +# Copyright 2015-2017 Spotify AB +# Copyright 2016-2018 The Last Pickle Ltd +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Cassandra Reaper Configuration Example. # See a bit more complete example in: # src/server/src/test/resources/cassandra-reaper.yaml diff --git a/src/packaging/resource/cassandra-reaper-cassandra.yaml b/src/packaging/resource/cassandra-reaper-cassandra.yaml index 687330f01..f39b76307 100644 --- a/src/packaging/resource/cassandra-reaper-cassandra.yaml +++ b/src/packaging/resource/cassandra-reaper-cassandra.yaml @@ -1,3 +1,18 @@ +# Copyright 2015-2017 Spotify AB +# Copyright 2016-2018 The Last Pickle Ltd +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Cassandra Reaper Configuration Example. # See a bit more complete example in: # src/server/src/test/resources/cassandra-reaper.yaml diff --git a/src/packaging/resource/cassandra-reaper-h2.yaml b/src/packaging/resource/cassandra-reaper-h2.yaml index 2397c9650..aea1c8ce4 100644 --- a/src/packaging/resource/cassandra-reaper-h2.yaml +++ b/src/packaging/resource/cassandra-reaper-h2.yaml @@ -1,3 +1,18 @@ +# Copyright 2015-2017 Spotify AB +# Copyright 2016-2018 The Last Pickle Ltd +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Cassandra Reaper Configuration Example. # See a bit more complete example in: # src/server/src/test/resources/cassandra-reaper.yaml diff --git a/src/packaging/resource/cassandra-reaper-memory.yaml b/src/packaging/resource/cassandra-reaper-memory.yaml index 01c62e1ce..b2f0d8497 100644 --- a/src/packaging/resource/cassandra-reaper-memory.yaml +++ b/src/packaging/resource/cassandra-reaper-memory.yaml @@ -1,3 +1,18 @@ +# Copyright 2015-2017 Spotify AB +# Copyright 2016-2018 The Last Pickle Ltd +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Cassandra Reaper Configuration Example. # See a bit more complete example in: # src/server/src/test/resources/cassandra-reaper.yaml diff --git a/src/packaging/resource/cassandra-reaper-postgres.yaml b/src/packaging/resource/cassandra-reaper-postgres.yaml index 8fcc40c52..907210e95 100644 --- a/src/packaging/resource/cassandra-reaper-postgres.yaml +++ b/src/packaging/resource/cassandra-reaper-postgres.yaml @@ -1,3 +1,18 @@ +# Copyright 2015-2017 Spotify AB +# Copyright 2016-2018 The Last Pickle Ltd +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Cassandra Reaper Configuration Example. # See a bit more complete example in: # src/server/src/test/resources/cassandra-reaper.yaml diff --git a/src/packaging/resource/cassandra-reaper.yaml b/src/packaging/resource/cassandra-reaper.yaml index 1b30850ad..afaf35efd 100644 --- a/src/packaging/resource/cassandra-reaper.yaml +++ b/src/packaging/resource/cassandra-reaper.yaml @@ -1,3 +1,18 @@ +# Copyright 2015-2017 Spotify AB +# Copyright 2016-2018 The Last Pickle Ltd +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Cassandra Reaper Configuration Example. # See a bit more complete example in: # src/server/src/test/resources/cassandra-reaper.yaml diff --git a/src/packaging/resource/shiro.ini b/src/packaging/resource/shiro.ini index e45e8bfb0..b054c9575 100644 --- a/src/packaging/resource/shiro.ini +++ b/src/packaging/resource/shiro.ini @@ -1,3 +1,17 @@ +# Copyright 2018-2018 The Last Pickle Ltd +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + [main] authc = org.apache.shiro.web.filter.authc.PassThruAuthenticationFilter authc.loginUrl = /webui/login.html diff --git a/src/server/checkstyle.xml b/src/server/checkstyle.xml index 445fd8120..3f9b98c2d 100644 --- a/src/server/checkstyle.xml +++ b/src/server/checkstyle.xml @@ -1,4 +1,18 @@ + @@ -27,7 +41,7 @@ - + diff --git a/src/server/pom.xml b/src/server/pom.xml index ebe27c632..db24cda94 100755 --- a/src/server/pom.xml +++ b/src/server/pom.xml @@ -1,4 +1,19 @@ + 4.0.0 @@ -528,6 +543,13 @@ + + org.apache.rat + apache-rat-plugin + + true + + diff --git a/src/server/src/checkstyle/java.header b/src/server/src/checkstyle/java.header index fff8ccde9..b66defe4f 100644 --- a/src/server/src/checkstyle/java.header +++ b/src/server/src/checkstyle/java.header @@ -1,5 +1,8 @@ /* - * Licensed under the Apache License, Version 2.0 (the "License"); +( * Copyright 2014-2017 Spotify AB)? +( * Copyright \d\d\d\d-2018 The Last Pickle Ltd)? + * + * Licensed under the Apache License, Version 2.0 \(the "License"\); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * @@ -10,4 +13,4 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ \ No newline at end of file + */ diff --git a/src/server/src/checkstyle/suppressions.xml b/src/server/src/checkstyle/suppressions.xml index c0ab905b1..43c02d5dd 100644 --- a/src/server/src/checkstyle/suppressions.xml +++ b/src/server/src/checkstyle/suppressions.xml @@ -1,4 +1,19 @@ + diff --git a/src/server/src/main/docker/Dockerfile b/src/server/src/main/docker/Dockerfile index 6550ccf8f..bcb898b2c 100644 --- a/src/server/src/main/docker/Dockerfile +++ b/src/server/src/main/docker/Dockerfile @@ -1,3 +1,18 @@ +# Copyright 2017-2017 Spotify AB +# Copyright 2017-2018 The Last Pickle Ltd +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + FROM openjdk:8-jre-alpine ARG SHADED_JAR diff --git a/src/server/src/main/docker/cassandra-reaper.yml b/src/server/src/main/docker/cassandra-reaper.yml index 7b4955439..6a9057c64 100644 --- a/src/server/src/main/docker/cassandra-reaper.yml +++ b/src/server/src/main/docker/cassandra-reaper.yml @@ -1,3 +1,17 @@ +# Copyright 2017-2017 Spotify AB +# Copyright 2017-2018 The Last Pickle Ltd +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. segmentCount: ${REAPER_SEGMENT_COUNT} repairParallelism: ${REAPER_REPAIR_PARALELLISM} diff --git a/src/server/src/main/docker/configure-metrics.sh b/src/server/src/main/docker/configure-metrics.sh index 844c00aac..080375eb7 100644 --- a/src/server/src/main/docker/configure-metrics.sh +++ b/src/server/src/main/docker/configure-metrics.sh @@ -1,4 +1,18 @@ #!/bin/sh +# Copyright 2017-2017 Spotify AB +# Copyright 2017-2018 The Last Pickle Ltd +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. if [ "true" = "${REAPER_METRICS_ENABLED}" ]; then cat <> /etc/cassandra-reaper.yml @@ -6,4 +20,4 @@ metrics: frequency: ${REAPER_METRICS_FREQUENCY} reporters: ${REAPER_METRICS_REPORTERS} EOT -fi \ No newline at end of file +fi diff --git a/src/server/src/main/docker/configure-persistence.sh b/src/server/src/main/docker/configure-persistence.sh index a81cd7502..1fb3cd493 100644 --- a/src/server/src/main/docker/configure-persistence.sh +++ b/src/server/src/main/docker/configure-persistence.sh @@ -1,4 +1,18 @@ #!/bin/sh +# Copyright 2017-2017 Spotify AB +# Copyright 2017-2018 The Last Pickle Ltd +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. case ${REAPER_STORAGE_TYPE} in "cassandra") diff --git a/src/server/src/main/docker/configure-webui-authentication.sh b/src/server/src/main/docker/configure-webui-authentication.sh index 8fb1038fd..ee3219cfc 100644 --- a/src/server/src/main/docker/configure-webui-authentication.sh +++ b/src/server/src/main/docker/configure-webui-authentication.sh @@ -1,4 +1,17 @@ #!/bin/sh +# Copyright 2018-2018 The Last Pickle Ltd +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. if [ "true" = "${REAPER_ENABLE_WEBUI_AUTH}" ]; then cat <> /etc/cassandra-reaper.yml @@ -13,4 +26,4 @@ if [ "true" = "${REAPER_ENABLE_WEBUI_AUTH}" ]; then cat <> /etc/shiro.ini ${REAPER_WEBUI_USER} = ${REAPER_WEBUI_PASSWORD} EOT2 -fi \ No newline at end of file +fi diff --git a/src/server/src/main/docker/entrypoint.sh b/src/server/src/main/docker/entrypoint.sh index 4671c1307..e60cc5f33 100644 --- a/src/server/src/main/docker/entrypoint.sh +++ b/src/server/src/main/docker/entrypoint.sh @@ -1,4 +1,18 @@ #!/bin/sh +# Copyright 2017-2017 Spotify AB +# Copyright 2017-2018 The Last Pickle Ltd +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. if [ "$1" = 'cassandra-reaper' ]; then set -x diff --git a/src/server/src/main/docker/shiro.ini b/src/server/src/main/docker/shiro.ini index 27df216dd..524e541be 100644 --- a/src/server/src/main/docker/shiro.ini +++ b/src/server/src/main/docker/shiro.ini @@ -1,3 +1,17 @@ +# Copyright 2018-2018 The Last Pickle Ltd +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + [main] authc = org.apache.shiro.web.filter.authc.PassThruAuthenticationFilter authc.loginUrl = /webui/login.html diff --git a/src/server/src/main/java/io/cassandrareaper/AppContext.java b/src/server/src/main/java/io/cassandrareaper/AppContext.java index 5617dbf72..4c80fa082 100644 --- a/src/server/src/main/java/io/cassandrareaper/AppContext.java +++ b/src/server/src/main/java/io/cassandrareaper/AppContext.java @@ -1,4 +1,7 @@ /* + * Copyright 2015-2017 Spotify AB + * Copyright 2016-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/ReaperApplication.java b/src/server/src/main/java/io/cassandrareaper/ReaperApplication.java index 90e678a77..07ec2278a 100644 --- a/src/server/src/main/java/io/cassandrareaper/ReaperApplication.java +++ b/src/server/src/main/java/io/cassandrareaper/ReaperApplication.java @@ -1,4 +1,7 @@ /* + * Copyright 2014-2017 Spotify AB + * Copyright 2016-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/ReaperApplicationConfiguration.java b/src/server/src/main/java/io/cassandrareaper/ReaperApplicationConfiguration.java index a394cbf05..980211d52 100644 --- a/src/server/src/main/java/io/cassandrareaper/ReaperApplicationConfiguration.java +++ b/src/server/src/main/java/io/cassandrareaper/ReaperApplicationConfiguration.java @@ -1,4 +1,7 @@ /* + * Copyright 2014-2017 Spotify AB + * Copyright 2016-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/ReaperException.java b/src/server/src/main/java/io/cassandrareaper/ReaperException.java index 12e183981..8e53dd508 100644 --- a/src/server/src/main/java/io/cassandrareaper/ReaperException.java +++ b/src/server/src/main/java/io/cassandrareaper/ReaperException.java @@ -1,4 +1,7 @@ /* + * Copyright 2014-2017 Spotify AB + * Copyright 2016-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/core/Cluster.java b/src/server/src/main/java/io/cassandrareaper/core/Cluster.java index 339962815..81aac0d69 100644 --- a/src/server/src/main/java/io/cassandrareaper/core/Cluster.java +++ b/src/server/src/main/java/io/cassandrareaper/core/Cluster.java @@ -1,4 +1,7 @@ /* + * Copyright 2014-2017 Spotify AB + * Copyright 2016-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/core/Compaction.java b/src/server/src/main/java/io/cassandrareaper/core/Compaction.java index afed20983..c9b2cdc0f 100644 --- a/src/server/src/main/java/io/cassandrareaper/core/Compaction.java +++ b/src/server/src/main/java/io/cassandrareaper/core/Compaction.java @@ -1,4 +1,7 @@ /* + * Copyright 2018-2018 The Last Pickle Ltd + * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/core/DroppedMessages.java b/src/server/src/main/java/io/cassandrareaper/core/DroppedMessages.java index e9d7d8835..6d30d0e4f 100644 --- a/src/server/src/main/java/io/cassandrareaper/core/DroppedMessages.java +++ b/src/server/src/main/java/io/cassandrareaper/core/DroppedMessages.java @@ -1,4 +1,7 @@ /* + * Copyright 2018-2018 The Last Pickle Ltd + * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/core/JmxStat.java b/src/server/src/main/java/io/cassandrareaper/core/JmxStat.java index 057a2a66d..97f5b38b6 100644 --- a/src/server/src/main/java/io/cassandrareaper/core/JmxStat.java +++ b/src/server/src/main/java/io/cassandrareaper/core/JmxStat.java @@ -1,4 +1,7 @@ /* + * Copyright 2018-2018 The Last Pickle Ltd + * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -90,4 +93,4 @@ public JmxStat build() { return new JmxStat(this); } } -} \ No newline at end of file +} diff --git a/src/server/src/main/java/io/cassandrareaper/core/MetricsHistogram.java b/src/server/src/main/java/io/cassandrareaper/core/MetricsHistogram.java index b031aca34..9da07c272 100644 --- a/src/server/src/main/java/io/cassandrareaper/core/MetricsHistogram.java +++ b/src/server/src/main/java/io/cassandrareaper/core/MetricsHistogram.java @@ -1,4 +1,7 @@ /* + * Copyright 2018-2018 The Last Pickle Ltd + * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/core/Node.java b/src/server/src/main/java/io/cassandrareaper/core/Node.java index 70c3198f9..c5819c823 100644 --- a/src/server/src/main/java/io/cassandrareaper/core/Node.java +++ b/src/server/src/main/java/io/cassandrareaper/core/Node.java @@ -1,4 +1,7 @@ /* + * Copyright 2018-2018 The Last Pickle Ltd + * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/core/NodeMetrics.java b/src/server/src/main/java/io/cassandrareaper/core/NodeMetrics.java index c29fd5320..72ba07ada 100644 --- a/src/server/src/main/java/io/cassandrareaper/core/NodeMetrics.java +++ b/src/server/src/main/java/io/cassandrareaper/core/NodeMetrics.java @@ -1,4 +1,7 @@ /* + * Copyright 2017-2017 Spotify AB + * Copyright 2017-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/core/RepairRun.java b/src/server/src/main/java/io/cassandrareaper/core/RepairRun.java index a3499c974..a8f206dd3 100644 --- a/src/server/src/main/java/io/cassandrareaper/core/RepairRun.java +++ b/src/server/src/main/java/io/cassandrareaper/core/RepairRun.java @@ -1,4 +1,7 @@ /* + * Copyright 2014-2017 Spotify AB + * Copyright 2016-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/core/RepairSchedule.java b/src/server/src/main/java/io/cassandrareaper/core/RepairSchedule.java index b6f2eb272..b91630ac2 100644 --- a/src/server/src/main/java/io/cassandrareaper/core/RepairSchedule.java +++ b/src/server/src/main/java/io/cassandrareaper/core/RepairSchedule.java @@ -1,4 +1,7 @@ /* + * Copyright 2014-2017 Spotify AB + * Copyright 2016-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/core/RepairSegment.java b/src/server/src/main/java/io/cassandrareaper/core/RepairSegment.java index 2ce511bc3..cead39af7 100644 --- a/src/server/src/main/java/io/cassandrareaper/core/RepairSegment.java +++ b/src/server/src/main/java/io/cassandrareaper/core/RepairSegment.java @@ -1,4 +1,7 @@ /* + * Copyright 2014-2017 Spotify AB + * Copyright 2016-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/core/RepairUnit.java b/src/server/src/main/java/io/cassandrareaper/core/RepairUnit.java index 02a00eac7..14b7cd607 100644 --- a/src/server/src/main/java/io/cassandrareaper/core/RepairUnit.java +++ b/src/server/src/main/java/io/cassandrareaper/core/RepairUnit.java @@ -1,4 +1,7 @@ /* + * Copyright 2014-2017 Spotify AB + * Copyright 2016-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/core/Segment.java b/src/server/src/main/java/io/cassandrareaper/core/Segment.java index 02c06a691..8d945562b 100644 --- a/src/server/src/main/java/io/cassandrareaper/core/Segment.java +++ b/src/server/src/main/java/io/cassandrareaper/core/Segment.java @@ -1,4 +1,7 @@ /* + * Copyright 2018-2018 The Last Pickle Ltd + * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/core/Snapshot.java b/src/server/src/main/java/io/cassandrareaper/core/Snapshot.java index 8883d033f..0e20a54a8 100644 --- a/src/server/src/main/java/io/cassandrareaper/core/Snapshot.java +++ b/src/server/src/main/java/io/cassandrareaper/core/Snapshot.java @@ -1,4 +1,7 @@ /* + * Copyright 2018-2018 The Last Pickle Ltd + * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/core/Stream.java b/src/server/src/main/java/io/cassandrareaper/core/Stream.java index 1788b7461..5797eed02 100644 --- a/src/server/src/main/java/io/cassandrareaper/core/Stream.java +++ b/src/server/src/main/java/io/cassandrareaper/core/Stream.java @@ -1,4 +1,7 @@ /* + * Copyright 2018-2018 The Last Pickle Ltd + * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/core/StreamSession.java b/src/server/src/main/java/io/cassandrareaper/core/StreamSession.java index 4cb609dbf..23cff7b3f 100644 --- a/src/server/src/main/java/io/cassandrareaper/core/StreamSession.java +++ b/src/server/src/main/java/io/cassandrareaper/core/StreamSession.java @@ -1,4 +1,7 @@ /* + * Copyright 2018-2018 The Last Pickle Ltd + * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/core/ThreadPoolStat.java b/src/server/src/main/java/io/cassandrareaper/core/ThreadPoolStat.java index 5e1585e74..09ee3a455 100644 --- a/src/server/src/main/java/io/cassandrareaper/core/ThreadPoolStat.java +++ b/src/server/src/main/java/io/cassandrareaper/core/ThreadPoolStat.java @@ -1,4 +1,7 @@ /* + * Copyright 2018-2018 The Last Pickle Ltd + * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/core/package-info.java b/src/server/src/main/java/io/cassandrareaper/core/package-info.java index 096102dde..34061d3eb 100644 --- a/src/server/src/main/java/io/cassandrareaper/core/package-info.java +++ b/src/server/src/main/java/io/cassandrareaper/core/package-info.java @@ -1,4 +1,7 @@ /* + * Copyright 2014-2017 Spotify AB + * Copyright 2016-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/jmx/ColumnFamilyStoreMBeanIterator.java b/src/server/src/main/java/io/cassandrareaper/jmx/ColumnFamilyStoreMBeanIterator.java index 8786da35c..389ff0df1 100644 --- a/src/server/src/main/java/io/cassandrareaper/jmx/ColumnFamilyStoreMBeanIterator.java +++ b/src/server/src/main/java/io/cassandrareaper/jmx/ColumnFamilyStoreMBeanIterator.java @@ -1,4 +1,7 @@ /* + * Copyright 2017-2017 Spotify AB + * Copyright 2017-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/jmx/CompactionProxy.java b/src/server/src/main/java/io/cassandrareaper/jmx/CompactionProxy.java index 702a29824..a764c5e29 100644 --- a/src/server/src/main/java/io/cassandrareaper/jmx/CompactionProxy.java +++ b/src/server/src/main/java/io/cassandrareaper/jmx/CompactionProxy.java @@ -1,4 +1,7 @@ /* + * Copyright 2018-2018 The Last Pickle Ltd + * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/jmx/EndpointSnitchInfoProxy.java b/src/server/src/main/java/io/cassandrareaper/jmx/EndpointSnitchInfoProxy.java index dcd0f63b7..de1fb1d78 100644 --- a/src/server/src/main/java/io/cassandrareaper/jmx/EndpointSnitchInfoProxy.java +++ b/src/server/src/main/java/io/cassandrareaper/jmx/EndpointSnitchInfoProxy.java @@ -1,4 +1,7 @@ /* + * Copyright 2018-2018 The Last Pickle Ltd + * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/jmx/FailureDetectorProxy.java b/src/server/src/main/java/io/cassandrareaper/jmx/FailureDetectorProxy.java index d85bc9654..b086b17d2 100644 --- a/src/server/src/main/java/io/cassandrareaper/jmx/FailureDetectorProxy.java +++ b/src/server/src/main/java/io/cassandrareaper/jmx/FailureDetectorProxy.java @@ -1,4 +1,7 @@ /* + * Copyright 2018-2018 The Last Pickle Ltd + * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/jmx/HostConnectionCounters.java b/src/server/src/main/java/io/cassandrareaper/jmx/HostConnectionCounters.java index 5000fd83a..31720514a 100644 --- a/src/server/src/main/java/io/cassandrareaper/jmx/HostConnectionCounters.java +++ b/src/server/src/main/java/io/cassandrareaper/jmx/HostConnectionCounters.java @@ -1,4 +1,7 @@ /* + * Copyright 2017-2017 Spotify AB + * Copyright 2017-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/jmx/JmxAddresses.java b/src/server/src/main/java/io/cassandrareaper/jmx/JmxAddresses.java index ba876345e..a3c8350cc 100644 --- a/src/server/src/main/java/io/cassandrareaper/jmx/JmxAddresses.java +++ b/src/server/src/main/java/io/cassandrareaper/jmx/JmxAddresses.java @@ -1,4 +1,7 @@ /* + * Copyright 2018-2018 The Last Pickle Ltd + * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/jmx/JmxConnectionFactory.java b/src/server/src/main/java/io/cassandrareaper/jmx/JmxConnectionFactory.java index 74e7fde92..9ac18ac50 100644 --- a/src/server/src/main/java/io/cassandrareaper/jmx/JmxConnectionFactory.java +++ b/src/server/src/main/java/io/cassandrareaper/jmx/JmxConnectionFactory.java @@ -1,4 +1,7 @@ /* + * Copyright 2014-2017 Spotify AB + * Copyright 2016-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/jmx/JmxConnectionsInitializer.java b/src/server/src/main/java/io/cassandrareaper/jmx/JmxConnectionsInitializer.java index 920aa9fc4..f451c8de0 100644 --- a/src/server/src/main/java/io/cassandrareaper/jmx/JmxConnectionsInitializer.java +++ b/src/server/src/main/java/io/cassandrareaper/jmx/JmxConnectionsInitializer.java @@ -1,4 +1,7 @@ /* + * Copyright 2017-2017 Spotify AB + * Copyright 2017-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/jmx/JmxProxy.java b/src/server/src/main/java/io/cassandrareaper/jmx/JmxProxy.java index d80ace38c..9bc614ea5 100644 --- a/src/server/src/main/java/io/cassandrareaper/jmx/JmxProxy.java +++ b/src/server/src/main/java/io/cassandrareaper/jmx/JmxProxy.java @@ -1,4 +1,7 @@ /* + * Copyright 2014-2017 Spotify AB + * Copyright 2016-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/jmx/JmxProxyImpl.java b/src/server/src/main/java/io/cassandrareaper/jmx/JmxProxyImpl.java index ce277c3cc..eb7161d45 100644 --- a/src/server/src/main/java/io/cassandrareaper/jmx/JmxProxyImpl.java +++ b/src/server/src/main/java/io/cassandrareaper/jmx/JmxProxyImpl.java @@ -1,4 +1,7 @@ /* + * Copyright 2014-2017 Spotify AB + * Copyright 2016-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/jmx/RepairStatusHandler.java b/src/server/src/main/java/io/cassandrareaper/jmx/RepairStatusHandler.java index ddf1798d0..a7a824fad 100644 --- a/src/server/src/main/java/io/cassandrareaper/jmx/RepairStatusHandler.java +++ b/src/server/src/main/java/io/cassandrareaper/jmx/RepairStatusHandler.java @@ -1,4 +1,7 @@ /* + * Copyright 2014-2017 Spotify AB + * Copyright 2016-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/jmx/SnapshotProxy.java b/src/server/src/main/java/io/cassandrareaper/jmx/SnapshotProxy.java index 500d59347..05cc2ef89 100644 --- a/src/server/src/main/java/io/cassandrareaper/jmx/SnapshotProxy.java +++ b/src/server/src/main/java/io/cassandrareaper/jmx/SnapshotProxy.java @@ -1,4 +1,7 @@ /* + * Copyright 2018-2018 The Last Pickle Ltd + * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/jmx/StorageServiceMBean20.java b/src/server/src/main/java/io/cassandrareaper/jmx/StorageServiceMBean20.java index 9ee8778b7..c929f8fba 100644 --- a/src/server/src/main/java/io/cassandrareaper/jmx/StorageServiceMBean20.java +++ b/src/server/src/main/java/io/cassandrareaper/jmx/StorageServiceMBean20.java @@ -1,4 +1,7 @@ /* + * Copyright 2016-2017 Spotify AB + * Copyright 2016-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/jmx/StreamStatusHandler.java b/src/server/src/main/java/io/cassandrareaper/jmx/StreamStatusHandler.java index 05aac632d..474d64e70 100644 --- a/src/server/src/main/java/io/cassandrareaper/jmx/StreamStatusHandler.java +++ b/src/server/src/main/java/io/cassandrareaper/jmx/StreamStatusHandler.java @@ -1,4 +1,7 @@ /* + * Copyright 2014-2017 Spotify AB + * Copyright 2016-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/jmx/StreamsProxy.java b/src/server/src/main/java/io/cassandrareaper/jmx/StreamsProxy.java index 2b136b566..d45f394fc 100644 --- a/src/server/src/main/java/io/cassandrareaper/jmx/StreamsProxy.java +++ b/src/server/src/main/java/io/cassandrareaper/jmx/StreamsProxy.java @@ -1,4 +1,7 @@ /* + * Copyright 2014-2017 Spotify AB + * Copyright 2016-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/jmx/package-info.java b/src/server/src/main/java/io/cassandrareaper/jmx/package-info.java index 7b250d2bb..d6b51b007 100644 --- a/src/server/src/main/java/io/cassandrareaper/jmx/package-info.java +++ b/src/server/src/main/java/io/cassandrareaper/jmx/package-info.java @@ -1,4 +1,7 @@ /* + * Copyright 2014-2017 Spotify AB + * Copyright 2016-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/package-info.java b/src/server/src/main/java/io/cassandrareaper/package-info.java index f4a2e8ed3..439f9a747 100644 --- a/src/server/src/main/java/io/cassandrareaper/package-info.java +++ b/src/server/src/main/java/io/cassandrareaper/package-info.java @@ -1,4 +1,7 @@ /* + * Copyright 2014-2017 Spotify AB + * Copyright 2016-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/resources/ClusterResource.java b/src/server/src/main/java/io/cassandrareaper/resources/ClusterResource.java index 58eb222b1..f2c74ee8b 100644 --- a/src/server/src/main/java/io/cassandrareaper/resources/ClusterResource.java +++ b/src/server/src/main/java/io/cassandrareaper/resources/ClusterResource.java @@ -1,4 +1,7 @@ /* + * Copyright 2014-2017 Spotify AB + * Copyright 2016-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/resources/NodeStatsResource.java b/src/server/src/main/java/io/cassandrareaper/resources/NodeStatsResource.java index 547cd62d2..0f8f37e2b 100644 --- a/src/server/src/main/java/io/cassandrareaper/resources/NodeStatsResource.java +++ b/src/server/src/main/java/io/cassandrareaper/resources/NodeStatsResource.java @@ -1,4 +1,7 @@ /* + * Copyright 2018-2018 The Last Pickle Ltd + * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/resources/PingResource.java b/src/server/src/main/java/io/cassandrareaper/resources/PingResource.java index ce2ca3619..684e6a693 100644 --- a/src/server/src/main/java/io/cassandrareaper/resources/PingResource.java +++ b/src/server/src/main/java/io/cassandrareaper/resources/PingResource.java @@ -1,4 +1,7 @@ /* + * Copyright 2014-2017 Spotify AB + * Copyright 2016-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/resources/ReaperHealthCheck.java b/src/server/src/main/java/io/cassandrareaper/resources/ReaperHealthCheck.java index da0acb3ff..d04b46135 100644 --- a/src/server/src/main/java/io/cassandrareaper/resources/ReaperHealthCheck.java +++ b/src/server/src/main/java/io/cassandrareaper/resources/ReaperHealthCheck.java @@ -1,4 +1,7 @@ /* + * Copyright 2014-2017 Spotify AB + * Copyright 2016-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/resources/RepairRunResource.java b/src/server/src/main/java/io/cassandrareaper/resources/RepairRunResource.java index 021ca1ddd..cd78e75cb 100644 --- a/src/server/src/main/java/io/cassandrareaper/resources/RepairRunResource.java +++ b/src/server/src/main/java/io/cassandrareaper/resources/RepairRunResource.java @@ -1,4 +1,7 @@ /* + * Copyright 2014-2017 Spotify AB + * Copyright 2016-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/resources/RepairScheduleResource.java b/src/server/src/main/java/io/cassandrareaper/resources/RepairScheduleResource.java index f64f41daa..2df7c798f 100644 --- a/src/server/src/main/java/io/cassandrareaper/resources/RepairScheduleResource.java +++ b/src/server/src/main/java/io/cassandrareaper/resources/RepairScheduleResource.java @@ -1,4 +1,7 @@ /* + * Copyright 2015-2017 Spotify AB + * Copyright 2016-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/resources/SnapshotResource.java b/src/server/src/main/java/io/cassandrareaper/resources/SnapshotResource.java index 0e1dbff98..e24b1b7b3 100644 --- a/src/server/src/main/java/io/cassandrareaper/resources/SnapshotResource.java +++ b/src/server/src/main/java/io/cassandrareaper/resources/SnapshotResource.java @@ -1,4 +1,7 @@ /* + * Copyright 2018-2018 The Last Pickle Ltd + * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/resources/auth/LoginResource.java b/src/server/src/main/java/io/cassandrareaper/resources/auth/LoginResource.java index 98669f45e..30fd67dab 100644 --- a/src/server/src/main/java/io/cassandrareaper/resources/auth/LoginResource.java +++ b/src/server/src/main/java/io/cassandrareaper/resources/auth/LoginResource.java @@ -1,4 +1,7 @@ /* + * Copyright 2018-2018 The Last Pickle Ltd + * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/resources/auth/ShiroExceptionMapper.java b/src/server/src/main/java/io/cassandrareaper/resources/auth/ShiroExceptionMapper.java index 04eb598fa..afd40b190 100644 --- a/src/server/src/main/java/io/cassandrareaper/resources/auth/ShiroExceptionMapper.java +++ b/src/server/src/main/java/io/cassandrareaper/resources/auth/ShiroExceptionMapper.java @@ -1,4 +1,7 @@ /* + * Copyright 2018-2018 The Last Pickle Ltd + * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/resources/package-info.java b/src/server/src/main/java/io/cassandrareaper/resources/package-info.java index b8346380a..dc1896c65 100644 --- a/src/server/src/main/java/io/cassandrareaper/resources/package-info.java +++ b/src/server/src/main/java/io/cassandrareaper/resources/package-info.java @@ -1,4 +1,7 @@ /* + * Copyright 2014-2017 Spotify AB + * Copyright 2016-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/resources/view/ClusterStatus.java b/src/server/src/main/java/io/cassandrareaper/resources/view/ClusterStatus.java index 646e34196..b153b702a 100644 --- a/src/server/src/main/java/io/cassandrareaper/resources/view/ClusterStatus.java +++ b/src/server/src/main/java/io/cassandrareaper/resources/view/ClusterStatus.java @@ -1,4 +1,7 @@ /* + * Copyright 2014-2017 Spotify AB + * Copyright 2016-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/resources/view/NodesStatus.java b/src/server/src/main/java/io/cassandrareaper/resources/view/NodesStatus.java index 4b8e19fa0..03d04efbf 100644 --- a/src/server/src/main/java/io/cassandrareaper/resources/view/NodesStatus.java +++ b/src/server/src/main/java/io/cassandrareaper/resources/view/NodesStatus.java @@ -1,4 +1,7 @@ /* + * Copyright 2017-2017 Spotify AB + * Copyright 2017-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/resources/view/RepairRunStatus.java b/src/server/src/main/java/io/cassandrareaper/resources/view/RepairRunStatus.java index ad20b2f6f..26fc52fc9 100644 --- a/src/server/src/main/java/io/cassandrareaper/resources/view/RepairRunStatus.java +++ b/src/server/src/main/java/io/cassandrareaper/resources/view/RepairRunStatus.java @@ -1,4 +1,7 @@ /* + * Copyright 2014-2017 Spotify AB + * Copyright 2016-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/resources/view/RepairScheduleStatus.java b/src/server/src/main/java/io/cassandrareaper/resources/view/RepairScheduleStatus.java index e094a0f2f..696038dee 100644 --- a/src/server/src/main/java/io/cassandrareaper/resources/view/RepairScheduleStatus.java +++ b/src/server/src/main/java/io/cassandrareaper/resources/view/RepairScheduleStatus.java @@ -1,4 +1,7 @@ /* + * Copyright 2014-2017 Spotify AB + * Copyright 2016-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -352,4 +355,4 @@ public void setRepairThreadCount(int repairThreadCount) { } -} \ No newline at end of file +} diff --git a/src/server/src/main/java/io/cassandrareaper/resources/view/package-info.java b/src/server/src/main/java/io/cassandrareaper/resources/view/package-info.java index 324a69e5f..bf8f7f04f 100644 --- a/src/server/src/main/java/io/cassandrareaper/resources/view/package-info.java +++ b/src/server/src/main/java/io/cassandrareaper/resources/view/package-info.java @@ -1,4 +1,7 @@ /* + * Copyright 2014-2017 Spotify AB + * Copyright 2016-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/service/AutoSchedulingManager.java b/src/server/src/main/java/io/cassandrareaper/service/AutoSchedulingManager.java index d404e54ff..5fd4afb31 100644 --- a/src/server/src/main/java/io/cassandrareaper/service/AutoSchedulingManager.java +++ b/src/server/src/main/java/io/cassandrareaper/service/AutoSchedulingManager.java @@ -1,4 +1,7 @@ /* + * Copyright 2017-2017 Spotify AB + * Copyright 2017-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/service/ClusterRepairScheduler.java b/src/server/src/main/java/io/cassandrareaper/service/ClusterRepairScheduler.java index 58746162a..d2c8cf296 100644 --- a/src/server/src/main/java/io/cassandrareaper/service/ClusterRepairScheduler.java +++ b/src/server/src/main/java/io/cassandrareaper/service/ClusterRepairScheduler.java @@ -1,4 +1,7 @@ /* + * Copyright 2017-2017 Spotify AB + * Copyright 2017-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/service/CompactionService.java b/src/server/src/main/java/io/cassandrareaper/service/CompactionService.java index 9d27e1afa..bf44a6284 100644 --- a/src/server/src/main/java/io/cassandrareaper/service/CompactionService.java +++ b/src/server/src/main/java/io/cassandrareaper/service/CompactionService.java @@ -1,4 +1,7 @@ /* + * Copyright 2018-2018 The Last Pickle Ltd + * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/service/Heart.java b/src/server/src/main/java/io/cassandrareaper/service/Heart.java index 0115b8e47..f191bb248 100644 --- a/src/server/src/main/java/io/cassandrareaper/service/Heart.java +++ b/src/server/src/main/java/io/cassandrareaper/service/Heart.java @@ -1,4 +1,7 @@ /* + * Copyright 2017-2017 Spotify AB + * Copyright 2017-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/service/MetricsGrabber.java b/src/server/src/main/java/io/cassandrareaper/service/MetricsGrabber.java index d17c31ed7..71920f67d 100644 --- a/src/server/src/main/java/io/cassandrareaper/service/MetricsGrabber.java +++ b/src/server/src/main/java/io/cassandrareaper/service/MetricsGrabber.java @@ -1,4 +1,7 @@ /* + * Copyright 2018-2018 The Last Pickle Ltd + * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/service/PurgeManager.java b/src/server/src/main/java/io/cassandrareaper/service/PurgeManager.java index bf3463fb2..1d000ceeb 100644 --- a/src/server/src/main/java/io/cassandrareaper/service/PurgeManager.java +++ b/src/server/src/main/java/io/cassandrareaper/service/PurgeManager.java @@ -1,4 +1,7 @@ /* + * Copyright 2018-2018 The Last Pickle Ltd + * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/service/RepairManager.java b/src/server/src/main/java/io/cassandrareaper/service/RepairManager.java index 298fc7035..a4c060cba 100644 --- a/src/server/src/main/java/io/cassandrareaper/service/RepairManager.java +++ b/src/server/src/main/java/io/cassandrareaper/service/RepairManager.java @@ -1,4 +1,7 @@ /* + * Copyright 2015-2017 Spotify AB + * Copyright 2016-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/service/RepairParameters.java b/src/server/src/main/java/io/cassandrareaper/service/RepairParameters.java index c965c4ec3..ff4d2c197 100644 --- a/src/server/src/main/java/io/cassandrareaper/service/RepairParameters.java +++ b/src/server/src/main/java/io/cassandrareaper/service/RepairParameters.java @@ -1,4 +1,7 @@ /* + * Copyright 2015-2017 Spotify AB + * Copyright 2016-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/service/RepairRunService.java b/src/server/src/main/java/io/cassandrareaper/service/RepairRunService.java index d2c7b0780..efb076735 100644 --- a/src/server/src/main/java/io/cassandrareaper/service/RepairRunService.java +++ b/src/server/src/main/java/io/cassandrareaper/service/RepairRunService.java @@ -1,4 +1,7 @@ /* + * Copyright 2015-2017 Spotify AB + * Copyright 2016-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/service/RepairRunner.java b/src/server/src/main/java/io/cassandrareaper/service/RepairRunner.java index c52473f9b..4efb9bca4 100644 --- a/src/server/src/main/java/io/cassandrareaper/service/RepairRunner.java +++ b/src/server/src/main/java/io/cassandrareaper/service/RepairRunner.java @@ -1,4 +1,7 @@ /* + * Copyright 2014-2017 Spotify AB + * Copyright 2016-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/service/RepairScheduleService.java b/src/server/src/main/java/io/cassandrareaper/service/RepairScheduleService.java index e05f2ccdf..662846e36 100644 --- a/src/server/src/main/java/io/cassandrareaper/service/RepairScheduleService.java +++ b/src/server/src/main/java/io/cassandrareaper/service/RepairScheduleService.java @@ -1,4 +1,7 @@ /* + * Copyright 2017-2017 Spotify AB + * Copyright 2017-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/service/RepairUnitService.java b/src/server/src/main/java/io/cassandrareaper/service/RepairUnitService.java index ea13dcd6d..6f3ca3f65 100644 --- a/src/server/src/main/java/io/cassandrareaper/service/RepairUnitService.java +++ b/src/server/src/main/java/io/cassandrareaper/service/RepairUnitService.java @@ -1,4 +1,7 @@ /* + * Copyright 2017-2017 Spotify AB + * Copyright 2017-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/service/RingRange.java b/src/server/src/main/java/io/cassandrareaper/service/RingRange.java index 4b8fe88db..702c097cd 100644 --- a/src/server/src/main/java/io/cassandrareaper/service/RingRange.java +++ b/src/server/src/main/java/io/cassandrareaper/service/RingRange.java @@ -1,4 +1,7 @@ /* + * Copyright 2014-2017 Spotify AB + * Copyright 2016-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/service/SchedulingManager.java b/src/server/src/main/java/io/cassandrareaper/service/SchedulingManager.java index 59cff334f..8417798a3 100644 --- a/src/server/src/main/java/io/cassandrareaper/service/SchedulingManager.java +++ b/src/server/src/main/java/io/cassandrareaper/service/SchedulingManager.java @@ -1,4 +1,7 @@ /* + * Copyright 2015-2017 Spotify AB + * Copyright 2016-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/service/SegmentGenerator.java b/src/server/src/main/java/io/cassandrareaper/service/SegmentGenerator.java index 9c7f8250e..516948660 100644 --- a/src/server/src/main/java/io/cassandrareaper/service/SegmentGenerator.java +++ b/src/server/src/main/java/io/cassandrareaper/service/SegmentGenerator.java @@ -1,4 +1,7 @@ /* + * Copyright 2014-2017 Spotify AB + * Copyright 2016-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/service/SegmentRunner.java b/src/server/src/main/java/io/cassandrareaper/service/SegmentRunner.java index 343450420..01a20be8d 100644 --- a/src/server/src/main/java/io/cassandrareaper/service/SegmentRunner.java +++ b/src/server/src/main/java/io/cassandrareaper/service/SegmentRunner.java @@ -1,4 +1,7 @@ /* + * Copyright 2015-2017 Spotify AB + * Copyright 2016-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/service/SimpleCondition.java b/src/server/src/main/java/io/cassandrareaper/service/SimpleCondition.java index 0fdcb124c..043aae3cd 100644 --- a/src/server/src/main/java/io/cassandrareaper/service/SimpleCondition.java +++ b/src/server/src/main/java/io/cassandrareaper/service/SimpleCondition.java @@ -1,4 +1,7 @@ /* + * Copyright 2015-2017 Spotify AB + * Copyright 2016-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/service/SnapshotManager.java b/src/server/src/main/java/io/cassandrareaper/service/SnapshotManager.java index cbff6d824..492b27a9d 100644 --- a/src/server/src/main/java/io/cassandrareaper/service/SnapshotManager.java +++ b/src/server/src/main/java/io/cassandrareaper/service/SnapshotManager.java @@ -1,4 +1,7 @@ /* + * Copyright 2018-2018 The Last Pickle Ltd + * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/service/StreamFactory.java b/src/server/src/main/java/io/cassandrareaper/service/StreamFactory.java index 744956125..714f12cf2 100644 --- a/src/server/src/main/java/io/cassandrareaper/service/StreamFactory.java +++ b/src/server/src/main/java/io/cassandrareaper/service/StreamFactory.java @@ -1,4 +1,7 @@ /* + * Copyright 2018-2018 The Last Pickle Ltd + * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/service/StreamManager.java b/src/server/src/main/java/io/cassandrareaper/service/StreamManager.java index 93f98053c..cab2681e0 100644 --- a/src/server/src/main/java/io/cassandrareaper/service/StreamManager.java +++ b/src/server/src/main/java/io/cassandrareaper/service/StreamManager.java @@ -1,4 +1,7 @@ /* + * Copyright 2018-2018 The Last Pickle Ltd + * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/service/StreamSessionFactory.java b/src/server/src/main/java/io/cassandrareaper/service/StreamSessionFactory.java index a5a259a1d..b18242c64 100644 --- a/src/server/src/main/java/io/cassandrareaper/service/StreamSessionFactory.java +++ b/src/server/src/main/java/io/cassandrareaper/service/StreamSessionFactory.java @@ -1,4 +1,7 @@ /* + * Copyright 2018-2018 The Last Pickle Ltd + * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/service/package-info.java b/src/server/src/main/java/io/cassandrareaper/service/package-info.java index 0e3d00b90..7c568819e 100644 --- a/src/server/src/main/java/io/cassandrareaper/service/package-info.java +++ b/src/server/src/main/java/io/cassandrareaper/service/package-info.java @@ -1,4 +1,7 @@ /* + * Copyright 2014-2017 Spotify AB + * Copyright 2016-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/storage/CassandraStorage.java b/src/server/src/main/java/io/cassandrareaper/storage/CassandraStorage.java index 9cd9a9ff3..5789e8f4a 100644 --- a/src/server/src/main/java/io/cassandrareaper/storage/CassandraStorage.java +++ b/src/server/src/main/java/io/cassandrareaper/storage/CassandraStorage.java @@ -1,4 +1,7 @@ /* + * Copyright 2016-2017 Spotify AB + * Copyright 2016-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/storage/IDistributedStorage.java b/src/server/src/main/java/io/cassandrareaper/storage/IDistributedStorage.java index bb6563819..7cfb8f11f 100644 --- a/src/server/src/main/java/io/cassandrareaper/storage/IDistributedStorage.java +++ b/src/server/src/main/java/io/cassandrareaper/storage/IDistributedStorage.java @@ -1,4 +1,7 @@ /* + * Copyright 2017-2017 Spotify AB + * Copyright 2017-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/storage/IStorage.java b/src/server/src/main/java/io/cassandrareaper/storage/IStorage.java index a5261add5..4d1a07ced 100644 --- a/src/server/src/main/java/io/cassandrareaper/storage/IStorage.java +++ b/src/server/src/main/java/io/cassandrareaper/storage/IStorage.java @@ -1,4 +1,7 @@ /* + * Copyright 2014-2017 Spotify AB + * Copyright 2016-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/storage/JsonParseUtils.java b/src/server/src/main/java/io/cassandrareaper/storage/JsonParseUtils.java index c18e448cd..f5ac3c38d 100644 --- a/src/server/src/main/java/io/cassandrareaper/storage/JsonParseUtils.java +++ b/src/server/src/main/java/io/cassandrareaper/storage/JsonParseUtils.java @@ -1,4 +1,7 @@ /* + * Copyright 2018-2018 The Last Pickle Ltd + * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/storage/MemoryStorage.java b/src/server/src/main/java/io/cassandrareaper/storage/MemoryStorage.java index bae9e00af..b61b2925c 100644 --- a/src/server/src/main/java/io/cassandrareaper/storage/MemoryStorage.java +++ b/src/server/src/main/java/io/cassandrareaper/storage/MemoryStorage.java @@ -1,4 +1,7 @@ /* + * Copyright 2014-2017 Spotify AB + * Copyright 2016-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/storage/PostgresStorage.java b/src/server/src/main/java/io/cassandrareaper/storage/PostgresStorage.java index ce1a61a02..b94eba05e 100644 --- a/src/server/src/main/java/io/cassandrareaper/storage/PostgresStorage.java +++ b/src/server/src/main/java/io/cassandrareaper/storage/PostgresStorage.java @@ -1,4 +1,7 @@ /* + * Copyright 2014-2017 Spotify AB + * Copyright 2016-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/storage/cassandra/DateTimeCodec.java b/src/server/src/main/java/io/cassandrareaper/storage/cassandra/DateTimeCodec.java index 337ed1b26..f16d439ba 100644 --- a/src/server/src/main/java/io/cassandrareaper/storage/cassandra/DateTimeCodec.java +++ b/src/server/src/main/java/io/cassandrareaper/storage/cassandra/DateTimeCodec.java @@ -1,4 +1,7 @@ /* + * Copyright 2016-2017 Spotify AB + * Copyright 2016-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/storage/cassandra/Migration003.java b/src/server/src/main/java/io/cassandrareaper/storage/cassandra/Migration003.java index a7192e2e0..8837502bc 100644 --- a/src/server/src/main/java/io/cassandrareaper/storage/cassandra/Migration003.java +++ b/src/server/src/main/java/io/cassandrareaper/storage/cassandra/Migration003.java @@ -1,4 +1,7 @@ /* + * Copyright 2017-2017 Spotify AB + * Copyright 2017-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/storage/cassandra/Migration009.java b/src/server/src/main/java/io/cassandrareaper/storage/cassandra/Migration009.java index aaa518c6e..5dcf38b81 100644 --- a/src/server/src/main/java/io/cassandrareaper/storage/cassandra/Migration009.java +++ b/src/server/src/main/java/io/cassandrareaper/storage/cassandra/Migration009.java @@ -1,4 +1,7 @@ /* + * Copyright 2017-2017 Spotify AB + * Copyright 2017-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/storage/cassandra/Migration011.java b/src/server/src/main/java/io/cassandrareaper/storage/cassandra/Migration011.java index fa1bab5fa..77bfa89fc 100644 --- a/src/server/src/main/java/io/cassandrareaper/storage/cassandra/Migration011.java +++ b/src/server/src/main/java/io/cassandrareaper/storage/cassandra/Migration011.java @@ -1,4 +1,7 @@ /* + * Copyright 2014-2017 Spotify AB + * Copyright 2016-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/storage/cassandra/Migration012.java b/src/server/src/main/java/io/cassandrareaper/storage/cassandra/Migration012.java index e2355ffd8..bcb12c39d 100644 --- a/src/server/src/main/java/io/cassandrareaper/storage/cassandra/Migration012.java +++ b/src/server/src/main/java/io/cassandrareaper/storage/cassandra/Migration012.java @@ -1,4 +1,7 @@ /* + * Copyright 2014-2017 Spotify AB + * Copyright 2016-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/storage/cassandra/Migration016.java b/src/server/src/main/java/io/cassandrareaper/storage/cassandra/Migration016.java index 692834d16..24d886adb 100644 --- a/src/server/src/main/java/io/cassandrareaper/storage/cassandra/Migration016.java +++ b/src/server/src/main/java/io/cassandrareaper/storage/cassandra/Migration016.java @@ -1,4 +1,7 @@ /* + * Copyright 2018-2018 The Last Pickle Ltd + * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/storage/cassandra/package-info.java b/src/server/src/main/java/io/cassandrareaper/storage/cassandra/package-info.java index e2623fc03..d1c072091 100644 --- a/src/server/src/main/java/io/cassandrareaper/storage/cassandra/package-info.java +++ b/src/server/src/main/java/io/cassandrareaper/storage/cassandra/package-info.java @@ -1,4 +1,7 @@ /* + * Copyright 2014-2017 Spotify AB + * Copyright 2016-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/storage/package-info.java b/src/server/src/main/java/io/cassandrareaper/storage/package-info.java index 288578d91..b12c2fe78 100644 --- a/src/server/src/main/java/io/cassandrareaper/storage/package-info.java +++ b/src/server/src/main/java/io/cassandrareaper/storage/package-info.java @@ -1,4 +1,7 @@ /* + * Copyright 2014-2017 Spotify AB + * Copyright 2016-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/storage/postgresql/BigIntegerArgumentFactory.java b/src/server/src/main/java/io/cassandrareaper/storage/postgresql/BigIntegerArgumentFactory.java index c3dcc9704..7f7e4d804 100644 --- a/src/server/src/main/java/io/cassandrareaper/storage/postgresql/BigIntegerArgumentFactory.java +++ b/src/server/src/main/java/io/cassandrareaper/storage/postgresql/BigIntegerArgumentFactory.java @@ -1,4 +1,7 @@ /* + * Copyright 2014-2017 Spotify AB + * Copyright 2016-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/storage/postgresql/ClusterMapper.java b/src/server/src/main/java/io/cassandrareaper/storage/postgresql/ClusterMapper.java index 57f5ba351..928189207 100644 --- a/src/server/src/main/java/io/cassandrareaper/storage/postgresql/ClusterMapper.java +++ b/src/server/src/main/java/io/cassandrareaper/storage/postgresql/ClusterMapper.java @@ -1,4 +1,7 @@ /* + * Copyright 2014-2017 Spotify AB + * Copyright 2016-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/storage/postgresql/IStoragePostgreSql.java b/src/server/src/main/java/io/cassandrareaper/storage/postgresql/IStoragePostgreSql.java index d9d113539..29780480b 100644 --- a/src/server/src/main/java/io/cassandrareaper/storage/postgresql/IStoragePostgreSql.java +++ b/src/server/src/main/java/io/cassandrareaper/storage/postgresql/IStoragePostgreSql.java @@ -1,4 +1,7 @@ /* + * Copyright 2014-2017 Spotify AB + * Copyright 2016-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/storage/postgresql/LongCollectionSqlTypeArgumentFactory.java b/src/server/src/main/java/io/cassandrareaper/storage/postgresql/LongCollectionSqlTypeArgumentFactory.java index 4534973d2..84b6f2de8 100644 --- a/src/server/src/main/java/io/cassandrareaper/storage/postgresql/LongCollectionSqlTypeArgumentFactory.java +++ b/src/server/src/main/java/io/cassandrareaper/storage/postgresql/LongCollectionSqlTypeArgumentFactory.java @@ -1,4 +1,7 @@ /* + * Copyright 2017-2017 Spotify AB + * Copyright 2017-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/storage/postgresql/PostgresArrayArgumentFactory.java b/src/server/src/main/java/io/cassandrareaper/storage/postgresql/PostgresArrayArgumentFactory.java index 161743328..cacab238d 100644 --- a/src/server/src/main/java/io/cassandrareaper/storage/postgresql/PostgresArrayArgumentFactory.java +++ b/src/server/src/main/java/io/cassandrareaper/storage/postgresql/PostgresArrayArgumentFactory.java @@ -1,4 +1,7 @@ /* + * Copyright 2014-2017 Spotify AB + * Copyright 2016-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/storage/postgresql/PostgresRepairSegment.java b/src/server/src/main/java/io/cassandrareaper/storage/postgresql/PostgresRepairSegment.java index db54a81c1..f584fbad5 100644 --- a/src/server/src/main/java/io/cassandrareaper/storage/postgresql/PostgresRepairSegment.java +++ b/src/server/src/main/java/io/cassandrareaper/storage/postgresql/PostgresRepairSegment.java @@ -1,4 +1,7 @@ /* + * Copyright 2018-2018 The Last Pickle Ltd + * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/storage/postgresql/RepairParallelismArgumentFactory.java b/src/server/src/main/java/io/cassandrareaper/storage/postgresql/RepairParallelismArgumentFactory.java index b12ec54a4..0ba597918 100644 --- a/src/server/src/main/java/io/cassandrareaper/storage/postgresql/RepairParallelismArgumentFactory.java +++ b/src/server/src/main/java/io/cassandrareaper/storage/postgresql/RepairParallelismArgumentFactory.java @@ -1,4 +1,7 @@ /* + * Copyright 2014-2017 Spotify AB + * Copyright 2016-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/storage/postgresql/RepairParametersMapper.java b/src/server/src/main/java/io/cassandrareaper/storage/postgresql/RepairParametersMapper.java index cc8ee5013..357eebff1 100644 --- a/src/server/src/main/java/io/cassandrareaper/storage/postgresql/RepairParametersMapper.java +++ b/src/server/src/main/java/io/cassandrareaper/storage/postgresql/RepairParametersMapper.java @@ -1,4 +1,7 @@ /* + * Copyright 2014-2017 Spotify AB + * Copyright 2016-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/storage/postgresql/RepairRunMapper.java b/src/server/src/main/java/io/cassandrareaper/storage/postgresql/RepairRunMapper.java index 4f61d0a29..c33a6b3b0 100644 --- a/src/server/src/main/java/io/cassandrareaper/storage/postgresql/RepairRunMapper.java +++ b/src/server/src/main/java/io/cassandrareaper/storage/postgresql/RepairRunMapper.java @@ -1,4 +1,7 @@ /* + * Copyright 2014-2017 Spotify AB + * Copyright 2016-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/storage/postgresql/RepairRunStatusMapper.java b/src/server/src/main/java/io/cassandrareaper/storage/postgresql/RepairRunStatusMapper.java index 4365373ec..f5bdbc464 100644 --- a/src/server/src/main/java/io/cassandrareaper/storage/postgresql/RepairRunStatusMapper.java +++ b/src/server/src/main/java/io/cassandrareaper/storage/postgresql/RepairRunStatusMapper.java @@ -1,4 +1,7 @@ /* + * Copyright 2015-2017 Spotify AB + * Copyright 2016-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/storage/postgresql/RepairScheduleMapper.java b/src/server/src/main/java/io/cassandrareaper/storage/postgresql/RepairScheduleMapper.java index 57b59349c..c35e6c865 100644 --- a/src/server/src/main/java/io/cassandrareaper/storage/postgresql/RepairScheduleMapper.java +++ b/src/server/src/main/java/io/cassandrareaper/storage/postgresql/RepairScheduleMapper.java @@ -1,4 +1,7 @@ /* + * Copyright 2015-2017 Spotify AB + * Copyright 2016-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/storage/postgresql/RepairScheduleStatusMapper.java b/src/server/src/main/java/io/cassandrareaper/storage/postgresql/RepairScheduleStatusMapper.java index a03b8f5f6..3e5afade9 100644 --- a/src/server/src/main/java/io/cassandrareaper/storage/postgresql/RepairScheduleStatusMapper.java +++ b/src/server/src/main/java/io/cassandrareaper/storage/postgresql/RepairScheduleStatusMapper.java @@ -1,4 +1,7 @@ /* + * Copyright 2015-2017 Spotify AB + * Copyright 2016-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/storage/postgresql/RepairSegmentMapper.java b/src/server/src/main/java/io/cassandrareaper/storage/postgresql/RepairSegmentMapper.java index 49cdeca5b..4dfa18128 100644 --- a/src/server/src/main/java/io/cassandrareaper/storage/postgresql/RepairSegmentMapper.java +++ b/src/server/src/main/java/io/cassandrareaper/storage/postgresql/RepairSegmentMapper.java @@ -1,4 +1,7 @@ /* + * Copyright 2014-2017 Spotify AB + * Copyright 2016-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/storage/postgresql/RepairUnitMapper.java b/src/server/src/main/java/io/cassandrareaper/storage/postgresql/RepairUnitMapper.java index 563bc9644..5e4059faf 100644 --- a/src/server/src/main/java/io/cassandrareaper/storage/postgresql/RepairUnitMapper.java +++ b/src/server/src/main/java/io/cassandrareaper/storage/postgresql/RepairUnitMapper.java @@ -1,4 +1,7 @@ /* + * Copyright 2014-2017 Spotify AB + * Copyright 2016-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/storage/postgresql/RunStateArgumentFactory.java b/src/server/src/main/java/io/cassandrareaper/storage/postgresql/RunStateArgumentFactory.java index d150587af..1cf8275ce 100644 --- a/src/server/src/main/java/io/cassandrareaper/storage/postgresql/RunStateArgumentFactory.java +++ b/src/server/src/main/java/io/cassandrareaper/storage/postgresql/RunStateArgumentFactory.java @@ -1,4 +1,7 @@ /* + * Copyright 2014-2017 Spotify AB + * Copyright 2016-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/storage/postgresql/ScheduleStateArgumentFactory.java b/src/server/src/main/java/io/cassandrareaper/storage/postgresql/ScheduleStateArgumentFactory.java index 1adb99510..2bee58b46 100644 --- a/src/server/src/main/java/io/cassandrareaper/storage/postgresql/ScheduleStateArgumentFactory.java +++ b/src/server/src/main/java/io/cassandrareaper/storage/postgresql/ScheduleStateArgumentFactory.java @@ -1,4 +1,7 @@ /* + * Copyright 2014-2017 Spotify AB + * Copyright 2016-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/storage/postgresql/SnapshotMapper.java b/src/server/src/main/java/io/cassandrareaper/storage/postgresql/SnapshotMapper.java index 8c8a4f1aa..96b03781c 100644 --- a/src/server/src/main/java/io/cassandrareaper/storage/postgresql/SnapshotMapper.java +++ b/src/server/src/main/java/io/cassandrareaper/storage/postgresql/SnapshotMapper.java @@ -1,4 +1,7 @@ /* + * Copyright 2014-2017 Spotify AB + * Copyright 2016-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/storage/postgresql/StateArgumentFactory.java b/src/server/src/main/java/io/cassandrareaper/storage/postgresql/StateArgumentFactory.java index 9efac39ac..9046a904e 100644 --- a/src/server/src/main/java/io/cassandrareaper/storage/postgresql/StateArgumentFactory.java +++ b/src/server/src/main/java/io/cassandrareaper/storage/postgresql/StateArgumentFactory.java @@ -1,4 +1,7 @@ /* + * Copyright 2014-2017 Spotify AB + * Copyright 2016-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/storage/postgresql/UuidArgumentFactory.java b/src/server/src/main/java/io/cassandrareaper/storage/postgresql/UuidArgumentFactory.java index 8a70fd6a5..fea4512ec 100644 --- a/src/server/src/main/java/io/cassandrareaper/storage/postgresql/UuidArgumentFactory.java +++ b/src/server/src/main/java/io/cassandrareaper/storage/postgresql/UuidArgumentFactory.java @@ -1,4 +1,7 @@ /* + * Copyright 2017-2017 Spotify AB + * Copyright 2017-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/storage/postgresql/UuidUtil.java b/src/server/src/main/java/io/cassandrareaper/storage/postgresql/UuidUtil.java index 5c4fc7ccb..aceecb00e 100644 --- a/src/server/src/main/java/io/cassandrareaper/storage/postgresql/UuidUtil.java +++ b/src/server/src/main/java/io/cassandrareaper/storage/postgresql/UuidUtil.java @@ -1,4 +1,7 @@ /* + * Copyright 2017-2017 Spotify AB + * Copyright 2017-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/java/io/cassandrareaper/storage/postgresql/package-info.java b/src/server/src/main/java/io/cassandrareaper/storage/postgresql/package-info.java index 2b0a2b66d..91cd4d02f 100644 --- a/src/server/src/main/java/io/cassandrareaper/storage/postgresql/package-info.java +++ b/src/server/src/main/java/io/cassandrareaper/storage/postgresql/package-info.java @@ -1,4 +1,7 @@ /* + * Copyright 2014-2017 Spotify AB + * Copyright 2016-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/main/resources/assets/LICENSE b/src/server/src/main/resources/assets/LICENSE deleted file mode 100644 index 294b6b86d..000000000 --- a/src/server/src/main/resources/assets/LICENSE +++ /dev/null @@ -1,202 +0,0 @@ -Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2015 Stefan Podkowinski - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - diff --git a/src/server/src/main/resources/db/cassandra/001_Initialize_db.cql b/src/server/src/main/resources/db/cassandra/001_Initialize_db.cql index d1ff566d5..995cd1923 100644 --- a/src/server/src/main/resources/db/cassandra/001_Initialize_db.cql +++ b/src/server/src/main/resources/db/cassandra/001_Initialize_db.cql @@ -1,4 +1,18 @@ -- +-- Copyright 2016-2017 Spotify AB +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- -- Cassandra schema for cassandra-reaper database -- CREATE KEYSPACE IF NOT EXISTS reaper_db WITH REPLICATION={'class':'SimpleStrategy', 'replication_factor':3}; diff --git a/src/server/src/main/resources/db/cassandra/002_table_properties.cql b/src/server/src/main/resources/db/cassandra/002_table_properties.cql index ef9240217..1ef89bd5b 100644 --- a/src/server/src/main/resources/db/cassandra/002_table_properties.cql +++ b/src/server/src/main/resources/db/cassandra/002_table_properties.cql @@ -1,4 +1,18 @@ - +-- +-- Copyright 2017-2017 Spotify AB +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- -- Optimal table properties ALTER TABLE cluster diff --git a/src/server/src/main/resources/db/cassandra/003_switch_to_uuids.cql b/src/server/src/main/resources/db/cassandra/003_switch_to_uuids.cql index 104b0af9c..dd03998a4 100644 --- a/src/server/src/main/resources/db/cassandra/003_switch_to_uuids.cql +++ b/src/server/src/main/resources/db/cassandra/003_switch_to_uuids.cql @@ -1,4 +1,18 @@ -- +-- Copyright 2017-2017 Spotify AB +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- -- Cassandra schema for cassandra-reaper database -- CREATE KEYSPACE IF NOT EXISTS reaper_db WITH REPLICATION={'class':'SimpleStrategy', 'replication_factor':3}; @@ -109,4 +123,4 @@ CREATE TABLE IF NOT EXISTS repair_schedule_by_cluster_and_keyspace ( DROP TABLE IF EXISTS repair_segment; DROP TABLE IF EXISTS repair_segment_by_run_id; -DROP TABLE IF EXISTS repair_id; \ No newline at end of file +DROP TABLE IF EXISTS repair_id; diff --git a/src/server/src/main/resources/db/cassandra/004_fault_tolerant_reaper.cql b/src/server/src/main/resources/db/cassandra/004_fault_tolerant_reaper.cql index e2aecd46a..78768e1d2 100644 --- a/src/server/src/main/resources/db/cassandra/004_fault_tolerant_reaper.cql +++ b/src/server/src/main/resources/db/cassandra/004_fault_tolerant_reaper.cql @@ -1,4 +1,18 @@ -- +-- Copyright 2017-2017 Spotify AB +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- -- Upgrade for fault tolerance addons CREATE TABLE IF NOT EXISTS leader ( diff --git a/src/server/src/main/resources/db/cassandra/005_repair_specific_nodes.cql b/src/server/src/main/resources/db/cassandra/005_repair_specific_nodes.cql index 219ad30c6..d89f2be86 100644 --- a/src/server/src/main/resources/db/cassandra/005_repair_specific_nodes.cql +++ b/src/server/src/main/resources/db/cassandra/005_repair_specific_nodes.cql @@ -1,4 +1,18 @@ -- +-- Copyright 2017-2017 Spotify AB +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- -- Upgrade to handle repair on specific nodes ALTER TABLE repair_unit_v1 ADD nodes set; diff --git a/src/server/src/main/resources/db/cassandra/006_table_blacklist.cql b/src/server/src/main/resources/db/cassandra/006_table_blacklist.cql index 4125b1175..d91755731 100644 --- a/src/server/src/main/resources/db/cassandra/006_table_blacklist.cql +++ b/src/server/src/main/resources/db/cassandra/006_table_blacklist.cql @@ -1,4 +1,18 @@ -- +-- Copyright 2017-2017 Spotify AB +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- -- Upgrade to handle repair on specific nodes ALTER TABLE repair_unit_v1 ADD blacklisted_tables set; diff --git a/src/server/src/main/resources/db/cassandra/007_segment_count_per_node.cql b/src/server/src/main/resources/db/cassandra/007_segment_count_per_node.cql index 79bc2b303..02e0e9498 100644 --- a/src/server/src/main/resources/db/cassandra/007_segment_count_per_node.cql +++ b/src/server/src/main/resources/db/cassandra/007_segment_count_per_node.cql @@ -1,4 +1,18 @@ -- +-- Copyright 2017-2017 Spotify AB +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- -- Upgrade to handle the new segment count per node ALTER TABLE repair_schedule_v1 ADD segment_count_per_node int; diff --git a/src/server/src/main/resources/db/cassandra/008_request_for_metrics.cql b/src/server/src/main/resources/db/cassandra/008_request_for_metrics.cql index dcfd28de2..354ffaa15 100644 --- a/src/server/src/main/resources/db/cassandra/008_request_for_metrics.cql +++ b/src/server/src/main/resources/db/cassandra/008_request_for_metrics.cql @@ -1,4 +1,18 @@ -- +-- Copyright 2017-2017 Spotify AB +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- -- Upgrade to handle the metrics request mechanism diff --git a/src/server/src/main/resources/db/cassandra/009_remove_nulls.cql b/src/server/src/main/resources/db/cassandra/009_remove_nulls.cql index 0f6b96b2f..a19089947 100644 --- a/src/server/src/main/resources/db/cassandra/009_remove_nulls.cql +++ b/src/server/src/main/resources/db/cassandra/009_remove_nulls.cql @@ -1,4 +1,18 @@ -- +-- Copyright 2017-2017 Spotify AB +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- -- Intentionally blank -- --- Placeholder for Migration009 \ No newline at end of file +-- Placeholder for Migration009 diff --git a/src/server/src/main/resources/db/cassandra/010_table_properties.cql b/src/server/src/main/resources/db/cassandra/010_table_properties.cql index 9329081af..d10a0a5fa 100644 --- a/src/server/src/main/resources/db/cassandra/010_table_properties.cql +++ b/src/server/src/main/resources/db/cassandra/010_table_properties.cql @@ -1,4 +1,18 @@ - +-- +-- Copyright 2017-2017 Spotify AB +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- -- Optimal table properties ALTER TABLE repair_unit_v1 diff --git a/src/server/src/main/resources/db/cassandra/011_fix_start_times.cql b/src/server/src/main/resources/db/cassandra/011_fix_start_times.cql index ed7fd9b46..5c0276f48 100644 --- a/src/server/src/main/resources/db/cassandra/011_fix_start_times.cql +++ b/src/server/src/main/resources/db/cassandra/011_fix_start_times.cql @@ -1,4 +1,18 @@ -- +-- Copyright 2017-2017 Spotify AB +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- -- Intentionally blank -- --- Placeholder for Migration011 \ No newline at end of file +-- Placeholder for Migration011 diff --git a/src/server/src/main/resources/db/cassandra/012_fix_start_times.cql b/src/server/src/main/resources/db/cassandra/012_fix_start_times.cql index 2ee2d7b6c..aa8136773 100644 --- a/src/server/src/main/resources/db/cassandra/012_fix_start_times.cql +++ b/src/server/src/main/resources/db/cassandra/012_fix_start_times.cql @@ -1,4 +1,18 @@ -- +-- Copyright 2017-2017 Spotify AB +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- -- Intentionally blank -- --- Placeholder for Migration012 \ No newline at end of file +-- Placeholder for Migration012 diff --git a/src/server/src/main/resources/db/cassandra/013_snapshots.cql b/src/server/src/main/resources/db/cassandra/013_snapshots.cql index 8d08dba73..46c43af80 100644 --- a/src/server/src/main/resources/db/cassandra/013_snapshots.cql +++ b/src/server/src/main/resources/db/cassandra/013_snapshots.cql @@ -1,4 +1,18 @@ -- +-- Copyright 2018-2018 The Last Pickle Ltd +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- -- Upgrade to handle snapshots metadata CREATE TABLE IF NOT EXISTS snapshot ( diff --git a/src/server/src/main/resources/db/cassandra/014_segment_coalescing.cql b/src/server/src/main/resources/db/cassandra/014_segment_coalescing.cql index c707be664..d5f59b5ab 100644 --- a/src/server/src/main/resources/db/cassandra/014_segment_coalescing.cql +++ b/src/server/src/main/resources/db/cassandra/014_segment_coalescing.cql @@ -1,4 +1,18 @@ -- +-- Copyright 2018-2018 The Last Pickle Ltd +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- -- Upgrade to allow segments to contain several token ranges ALTER TABLE repair_run ADD token_ranges text; diff --git a/src/server/src/main/resources/db/cassandra/015_multithreaded_repair.cql b/src/server/src/main/resources/db/cassandra/015_multithreaded_repair.cql index 46f277fc6..ac732679f 100644 --- a/src/server/src/main/resources/db/cassandra/015_multithreaded_repair.cql +++ b/src/server/src/main/resources/db/cassandra/015_multithreaded_repair.cql @@ -1,4 +1,18 @@ -- +-- Copyright 2018-2018 The Last Pickle Ltd +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- -- Upgrade to allow segments to contain several token ranges ALTER TABLE repair_unit_v1 ADD repair_thread_count int; diff --git a/src/server/src/main/resources/db/cassandra/016_disable_dclocal_read_repair_chance.cql b/src/server/src/main/resources/db/cassandra/016_disable_dclocal_read_repair_chance.cql index e785e8059..660098ee3 100644 --- a/src/server/src/main/resources/db/cassandra/016_disable_dclocal_read_repair_chance.cql +++ b/src/server/src/main/resources/db/cassandra/016_disable_dclocal_read_repair_chance.cql @@ -1,4 +1,18 @@ -- +-- Copyright 2018-2018 The Last Pickle Ltd +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- -- Intentionally blank -- --- Placeholder for Migration014 \ No newline at end of file +-- Placeholder for Migration014 diff --git a/src/server/src/main/resources/db/h2/V10_0_0__multithreaded_repair.sql b/src/server/src/main/resources/db/h2/V10_0_0__multithreaded_repair.sql index 3003e9bc1..35fc9e561 100644 --- a/src/server/src/main/resources/db/h2/V10_0_0__multithreaded_repair.sql +++ b/src/server/src/main/resources/db/h2/V10_0_0__multithreaded_repair.sql @@ -1,4 +1,18 @@ -- +-- Copyright 2018-2018 The Last Pickle Ltd +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- -- Support for segment coalescing -- diff --git a/src/server/src/main/resources/db/h2/V1_0_1__Initial_reaper_h2_db.sql b/src/server/src/main/resources/db/h2/V1_0_1__Initial_reaper_h2_db.sql index c9c66ab09..d719d9f3d 100644 --- a/src/server/src/main/resources/db/h2/V1_0_1__Initial_reaper_h2_db.sql +++ b/src/server/src/main/resources/db/h2/V1_0_1__Initial_reaper_h2_db.sql @@ -1,4 +1,18 @@ -- +-- Copyright 2017-2017 Spotify AB +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- -- H2 schema for cassandra-reaper database -- diff --git a/src/server/src/main/resources/db/h2/V2_0_0__specific_nodes_repair.sql b/src/server/src/main/resources/db/h2/V2_0_0__specific_nodes_repair.sql index 94952a426..a62a8e7b2 100644 --- a/src/server/src/main/resources/db/h2/V2_0_0__specific_nodes_repair.sql +++ b/src/server/src/main/resources/db/h2/V2_0_0__specific_nodes_repair.sql @@ -1,4 +1,18 @@ -- +-- Copyright 2017-2017 Spotify AB +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- -- H2 schema addition for repair on specific nodes -- diff --git a/src/server/src/main/resources/db/h2/V3_0_0__table_blacklist.sql b/src/server/src/main/resources/db/h2/V3_0_0__table_blacklist.sql index f62087c2b..df2e78eea 100644 --- a/src/server/src/main/resources/db/h2/V3_0_0__table_blacklist.sql +++ b/src/server/src/main/resources/db/h2/V3_0_0__table_blacklist.sql @@ -1,6 +1,20 @@ -- +-- Copyright 2017-2017 Spotify AB +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- -- H2 schema addition for repair on specific nodes -- ALTER TABLE repair_unit -ADD blacklisted_tables ARRAY; \ No newline at end of file +ADD blacklisted_tables ARRAY; diff --git a/src/server/src/main/resources/db/h2/V4_0_0__segment_count_per_node.sql b/src/server/src/main/resources/db/h2/V4_0_0__segment_count_per_node.sql index cc7bb98f5..63a1f06ea 100644 --- a/src/server/src/main/resources/db/h2/V4_0_0__segment_count_per_node.sql +++ b/src/server/src/main/resources/db/h2/V4_0_0__segment_count_per_node.sql @@ -1,6 +1,20 @@ -- +-- Copyright 2017-2017 Spotify AB +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- -- Upgrade to handle the new segment count per node -- ALTER TABLE repair_schedule -ADD segment_count_per_node INT NOT NULL DEFAULT 0; \ No newline at end of file +ADD segment_count_per_node INT NOT NULL DEFAULT 0; diff --git a/src/server/src/main/resources/db/h2/V5_0_0__fix_repair_segment_table.sql b/src/server/src/main/resources/db/h2/V5_0_0__fix_repair_segment_table.sql index b9cb18ab4..03c7c787e 100644 --- a/src/server/src/main/resources/db/h2/V5_0_0__fix_repair_segment_table.sql +++ b/src/server/src/main/resources/db/h2/V5_0_0__fix_repair_segment_table.sql @@ -1,4 +1,18 @@ -- +-- Copyright 2017-2017 Spotify AB +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- -- Fix inconsistencies in the repair_segment table -- to comply with new safety policies on segments -- diff --git a/src/server/src/main/resources/db/h2/V6_0_0__fix_repair_segment_table.sql b/src/server/src/main/resources/db/h2/V6_0_0__fix_repair_segment_table.sql index ea680f674..811dfd4b7 100644 --- a/src/server/src/main/resources/db/h2/V6_0_0__fix_repair_segment_table.sql +++ b/src/server/src/main/resources/db/h2/V6_0_0__fix_repair_segment_table.sql @@ -1,4 +1,18 @@ -- +-- Copyright 2017-2017 Spotify AB +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- -- fix segment start and end times in the repair_run table -- diff --git a/src/server/src/main/resources/db/h2/V7_0_0__fix_repair_segment_table.sql b/src/server/src/main/resources/db/h2/V7_0_0__fix_repair_segment_table.sql index ea680f674..811dfd4b7 100644 --- a/src/server/src/main/resources/db/h2/V7_0_0__fix_repair_segment_table.sql +++ b/src/server/src/main/resources/db/h2/V7_0_0__fix_repair_segment_table.sql @@ -1,4 +1,18 @@ -- +-- Copyright 2017-2017 Spotify AB +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- -- fix segment start and end times in the repair_run table -- diff --git a/src/server/src/main/resources/db/h2/V8_0_0__snapshots.sql b/src/server/src/main/resources/db/h2/V8_0_0__snapshots.sql index 441e55856..c572fdb4e 100644 --- a/src/server/src/main/resources/db/h2/V8_0_0__snapshots.sql +++ b/src/server/src/main/resources/db/h2/V8_0_0__snapshots.sql @@ -1,4 +1,18 @@ -- +-- Copyright 2018-2018 The Last Pickle Ltd +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- -- Support for snapshots -- diff --git a/src/server/src/main/resources/db/h2/V9_0_0__coalesce_segments.sql b/src/server/src/main/resources/db/h2/V9_0_0__coalesce_segments.sql index a81af5a92..d8788fa6e 100644 --- a/src/server/src/main/resources/db/h2/V9_0_0__coalesce_segments.sql +++ b/src/server/src/main/resources/db/h2/V9_0_0__coalesce_segments.sql @@ -1,4 +1,18 @@ -- +-- Copyright 2018-2018 The Last Pickle Ltd +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- -- Support for segment coalescing -- diff --git a/src/server/src/main/resources/db/postgres/V10_0_0__repair_thread_count.sql b/src/server/src/main/resources/db/postgres/V10_0_0__repair_thread_count.sql index 2f38831f9..4f636d435 100644 --- a/src/server/src/main/resources/db/postgres/V10_0_0__repair_thread_count.sql +++ b/src/server/src/main/resources/db/postgres/V10_0_0__repair_thread_count.sql @@ -1,4 +1,18 @@ -- +-- Copyright 2018-2018 The Last Pickle Ltd +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- -- Support for segment coalescing -- diff --git a/src/server/src/main/resources/db/postgres/V1_0_1__Initial_reaper_postgres_db.sql b/src/server/src/main/resources/db/postgres/V1_0_1__Initial_reaper_postgres_db.sql index 491c4150c..e7bac7d3b 100644 --- a/src/server/src/main/resources/db/postgres/V1_0_1__Initial_reaper_postgres_db.sql +++ b/src/server/src/main/resources/db/postgres/V1_0_1__Initial_reaper_postgres_db.sql @@ -1,4 +1,18 @@ -- +-- Copyright 2014-2017 Spotify AB +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- -- PostgreSQL schema for cassandra-reaper database -- Assumes PostgreSQL version 9.3 or newer -- diff --git a/src/server/src/main/resources/db/postgres/V2.0.0__specific_nodes_repair.sql b/src/server/src/main/resources/db/postgres/V2.0.0__specific_nodes_repair.sql index ab1ae78bc..a23093b97 100644 --- a/src/server/src/main/resources/db/postgres/V2.0.0__specific_nodes_repair.sql +++ b/src/server/src/main/resources/db/postgres/V2.0.0__specific_nodes_repair.sql @@ -1,4 +1,18 @@ -- +-- Copyright 2017-2017 Spotify AB +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- -- PostgreSQL schema addition for repair on specific nodes -- diff --git a/src/server/src/main/resources/db/postgres/V3.0.0__table_blacklist.sql b/src/server/src/main/resources/db/postgres/V3.0.0__table_blacklist.sql index 4382394e6..94cf6abe9 100644 --- a/src/server/src/main/resources/db/postgres/V3.0.0__table_blacklist.sql +++ b/src/server/src/main/resources/db/postgres/V3.0.0__table_blacklist.sql @@ -1,4 +1,18 @@ -- +-- Copyright 2017-2017 Spotify AB +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- -- PostgreSQL schema addition for repair on specific nodes -- diff --git a/src/server/src/main/resources/db/postgres/V4.0.0__segment_count_per_node.sql b/src/server/src/main/resources/db/postgres/V4.0.0__segment_count_per_node.sql index e68ea2cf6..df2e6bec7 100644 --- a/src/server/src/main/resources/db/postgres/V4.0.0__segment_count_per_node.sql +++ b/src/server/src/main/resources/db/postgres/V4.0.0__segment_count_per_node.sql @@ -1,4 +1,18 @@ -- +-- Copyright 2017-2017 Spotify AB +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- -- Upgrade to handle the new segment count per node -- diff --git a/src/server/src/main/resources/db/postgres/V5_0_0__fix_repair_segment_table.sql b/src/server/src/main/resources/db/postgres/V5_0_0__fix_repair_segment_table.sql index b9cb18ab4..03c7c787e 100644 --- a/src/server/src/main/resources/db/postgres/V5_0_0__fix_repair_segment_table.sql +++ b/src/server/src/main/resources/db/postgres/V5_0_0__fix_repair_segment_table.sql @@ -1,4 +1,18 @@ -- +-- Copyright 2017-2017 Spotify AB +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- -- Fix inconsistencies in the repair_segment table -- to comply with new safety policies on segments -- diff --git a/src/server/src/main/resources/db/postgres/V6_0_0__fix_repair_segment_table.sql b/src/server/src/main/resources/db/postgres/V6_0_0__fix_repair_segment_table.sql index ea680f674..811dfd4b7 100644 --- a/src/server/src/main/resources/db/postgres/V6_0_0__fix_repair_segment_table.sql +++ b/src/server/src/main/resources/db/postgres/V6_0_0__fix_repair_segment_table.sql @@ -1,4 +1,18 @@ -- +-- Copyright 2017-2017 Spotify AB +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- -- fix segment start and end times in the repair_run table -- diff --git a/src/server/src/main/resources/db/postgres/V7_0_0__fix_repair_segment_table.sql b/src/server/src/main/resources/db/postgres/V7_0_0__fix_repair_segment_table.sql index ea680f674..811dfd4b7 100644 --- a/src/server/src/main/resources/db/postgres/V7_0_0__fix_repair_segment_table.sql +++ b/src/server/src/main/resources/db/postgres/V7_0_0__fix_repair_segment_table.sql @@ -1,4 +1,18 @@ -- +-- Copyright 2017-2017 Spotify AB +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- -- fix segment start and end times in the repair_run table -- diff --git a/src/server/src/main/resources/db/postgres/V8_0_0__snapshots.sql b/src/server/src/main/resources/db/postgres/V8_0_0__snapshots.sql index 915615b6d..19daa3c9e 100644 --- a/src/server/src/main/resources/db/postgres/V8_0_0__snapshots.sql +++ b/src/server/src/main/resources/db/postgres/V8_0_0__snapshots.sql @@ -1,4 +1,18 @@ -- +-- Copyright 2018-2018 The Last Pickle Ltd +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- -- Support for snapshots -- diff --git a/src/server/src/main/resources/db/postgres/V9_0_0__coalesce_segments.sql b/src/server/src/main/resources/db/postgres/V9_0_0__coalesce_segments.sql index 79e669220..31d95a4eb 100644 --- a/src/server/src/main/resources/db/postgres/V9_0_0__coalesce_segments.sql +++ b/src/server/src/main/resources/db/postgres/V9_0_0__coalesce_segments.sql @@ -1,4 +1,18 @@ -- +-- Copyright 2018-2018 The Last Pickle Ltd +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- -- Support for segment coalescing -- diff --git a/src/server/src/test/java/io/cassandrareaper/AssertionTest.java b/src/server/src/test/java/io/cassandrareaper/AssertionTest.java index a9c5bcb66..462f05820 100644 --- a/src/server/src/test/java/io/cassandrareaper/AssertionTest.java +++ b/src/server/src/test/java/io/cassandrareaper/AssertionTest.java @@ -1,4 +1,7 @@ /* + * Copyright 2017-2017 Spotify AB + * Copyright 2017-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/test/java/io/cassandrareaper/ReaperApplicationConfigurationBuilder.java b/src/server/src/test/java/io/cassandrareaper/ReaperApplicationConfigurationBuilder.java index 23cefe6e9..af61d84d3 100644 --- a/src/server/src/test/java/io/cassandrareaper/ReaperApplicationConfigurationBuilder.java +++ b/src/server/src/test/java/io/cassandrareaper/ReaperApplicationConfigurationBuilder.java @@ -1,4 +1,7 @@ /* + * Copyright 2017-2017 Spotify AB + * Copyright 2017-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/test/java/io/cassandrareaper/ReaperApplicationConfigurationTest.java b/src/server/src/test/java/io/cassandrareaper/ReaperApplicationConfigurationTest.java index 0021704ba..b98645597 100644 --- a/src/server/src/test/java/io/cassandrareaper/ReaperApplicationConfigurationTest.java +++ b/src/server/src/test/java/io/cassandrareaper/ReaperApplicationConfigurationTest.java @@ -1,4 +1,7 @@ /* + * Copyright 2015-2017 Spotify AB + * Copyright 2016-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/test/java/io/cassandrareaper/ReaperApplicationTest.java b/src/server/src/test/java/io/cassandrareaper/ReaperApplicationTest.java index d27c1e3dc..2c4160f81 100644 --- a/src/server/src/test/java/io/cassandrareaper/ReaperApplicationTest.java +++ b/src/server/src/test/java/io/cassandrareaper/ReaperApplicationTest.java @@ -1,4 +1,7 @@ /* + * Copyright 2017-2017 Spotify AB + * Copyright 2017-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/test/java/io/cassandrareaper/SimpleReaperClient.java b/src/server/src/test/java/io/cassandrareaper/SimpleReaperClient.java index 39dfcee2f..63115ed04 100644 --- a/src/server/src/test/java/io/cassandrareaper/SimpleReaperClient.java +++ b/src/server/src/test/java/io/cassandrareaper/SimpleReaperClient.java @@ -1,4 +1,7 @@ /* + * Copyright 2015-2017 Spotify AB + * Copyright 2016-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/test/java/io/cassandrareaper/acceptance/BasicSteps.java b/src/server/src/test/java/io/cassandrareaper/acceptance/BasicSteps.java index e38a52cd8..caa446d29 100644 --- a/src/server/src/test/java/io/cassandrareaper/acceptance/BasicSteps.java +++ b/src/server/src/test/java/io/cassandrareaper/acceptance/BasicSteps.java @@ -1,4 +1,7 @@ /* + * Copyright 2015-2017 Spotify AB + * Copyright 2016-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/test/java/io/cassandrareaper/acceptance/ReaperCassandraIT.java b/src/server/src/test/java/io/cassandrareaper/acceptance/ReaperCassandraIT.java index 1cf57e5fb..0c105d3c1 100644 --- a/src/server/src/test/java/io/cassandrareaper/acceptance/ReaperCassandraIT.java +++ b/src/server/src/test/java/io/cassandrareaper/acceptance/ReaperCassandraIT.java @@ -1,4 +1,7 @@ /* + * Copyright 2017-2017 Spotify AB + * Copyright 2017-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/test/java/io/cassandrareaper/acceptance/ReaperH2IT.java b/src/server/src/test/java/io/cassandrareaper/acceptance/ReaperH2IT.java index 8e5739372..982eb9a9b 100644 --- a/src/server/src/test/java/io/cassandrareaper/acceptance/ReaperH2IT.java +++ b/src/server/src/test/java/io/cassandrareaper/acceptance/ReaperH2IT.java @@ -1,4 +1,7 @@ /* + * Copyright 2017-2017 Spotify AB + * Copyright 2017-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/test/java/io/cassandrareaper/acceptance/ReaperIT.java b/src/server/src/test/java/io/cassandrareaper/acceptance/ReaperIT.java index c48a2bab1..de1fd3682 100644 --- a/src/server/src/test/java/io/cassandrareaper/acceptance/ReaperIT.java +++ b/src/server/src/test/java/io/cassandrareaper/acceptance/ReaperIT.java @@ -1,4 +1,7 @@ /* + * Copyright 2014-2017 Spotify AB + * Copyright 2016-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/test/java/io/cassandrareaper/acceptance/ReaperPostgresIT.java b/src/server/src/test/java/io/cassandrareaper/acceptance/ReaperPostgresIT.java index be6b748ee..3271a8288 100644 --- a/src/server/src/test/java/io/cassandrareaper/acceptance/ReaperPostgresIT.java +++ b/src/server/src/test/java/io/cassandrareaper/acceptance/ReaperPostgresIT.java @@ -1,4 +1,7 @@ /* + * Copyright 2014-2017 Spotify AB + * Copyright 2016-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/test/java/io/cassandrareaper/acceptance/ReaperTestJettyRunner.java b/src/server/src/test/java/io/cassandrareaper/acceptance/ReaperTestJettyRunner.java index 8275af898..8456a5bd7 100644 --- a/src/server/src/test/java/io/cassandrareaper/acceptance/ReaperTestJettyRunner.java +++ b/src/server/src/test/java/io/cassandrareaper/acceptance/ReaperTestJettyRunner.java @@ -1,4 +1,7 @@ /* + * Copyright 2015-2017 Spotify AB + * Copyright 2016-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/test/java/io/cassandrareaper/acceptance/TestContext.java b/src/server/src/test/java/io/cassandrareaper/acceptance/TestContext.java index cc35168fe..97cfbcb59 100644 --- a/src/server/src/test/java/io/cassandrareaper/acceptance/TestContext.java +++ b/src/server/src/test/java/io/cassandrareaper/acceptance/TestContext.java @@ -1,4 +1,7 @@ /* + * Copyright 2015-2017 Spotify AB + * Copyright 2016-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/test/java/io/cassandrareaper/core/ClusterTest.java b/src/server/src/test/java/io/cassandrareaper/core/ClusterTest.java index f515a396a..1f4d6df37 100644 --- a/src/server/src/test/java/io/cassandrareaper/core/ClusterTest.java +++ b/src/server/src/test/java/io/cassandrareaper/core/ClusterTest.java @@ -1,4 +1,7 @@ /* + * Copyright 2014-2017 Spotify AB + * Copyright 2016-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/test/java/io/cassandrareaper/jmx/JmxAddressesTest.java b/src/server/src/test/java/io/cassandrareaper/jmx/JmxAddressesTest.java index 9f88bfcf4..daf350a94 100644 --- a/src/server/src/test/java/io/cassandrareaper/jmx/JmxAddressesTest.java +++ b/src/server/src/test/java/io/cassandrareaper/jmx/JmxAddressesTest.java @@ -1,4 +1,7 @@ /* + * Copyright 2018-2018 The Last Pickle Ltd + * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -62,4 +65,4 @@ public void getJmxServiceUrlIPv6NumericTest() throws Exception { private String jmxUrlPath(String host, int port) { return String.format("/jndi/rmi://%s:%d/jmxrmi", host, port); } -} \ No newline at end of file +} diff --git a/src/server/src/test/java/io/cassandrareaper/jmx/JmxConnectionsInitializerTest.java b/src/server/src/test/java/io/cassandrareaper/jmx/JmxConnectionsInitializerTest.java index 45843bf6e..df2b74c43 100644 --- a/src/server/src/test/java/io/cassandrareaper/jmx/JmxConnectionsInitializerTest.java +++ b/src/server/src/test/java/io/cassandrareaper/jmx/JmxConnectionsInitializerTest.java @@ -1,4 +1,7 @@ /* + * Copyright 2018-2018 The Last Pickle Ltd + * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/test/java/io/cassandrareaper/jmx/JmxProxyTest.java b/src/server/src/test/java/io/cassandrareaper/jmx/JmxProxyTest.java index e4439ddba..b3d01a209 100644 --- a/src/server/src/test/java/io/cassandrareaper/jmx/JmxProxyTest.java +++ b/src/server/src/test/java/io/cassandrareaper/jmx/JmxProxyTest.java @@ -1,4 +1,7 @@ /* + * Copyright 2017-2017 Spotify AB + * Copyright 2017-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/test/java/io/cassandrareaper/resources/ClusterResourceTest.java b/src/server/src/test/java/io/cassandrareaper/resources/ClusterResourceTest.java index 8103022b5..573921925 100644 --- a/src/server/src/test/java/io/cassandrareaper/resources/ClusterResourceTest.java +++ b/src/server/src/test/java/io/cassandrareaper/resources/ClusterResourceTest.java @@ -1,4 +1,7 @@ /* + * Copyright 2015-2017 Spotify AB + * Copyright 2016-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/test/java/io/cassandrareaper/resources/RepairRunResourceTest.java b/src/server/src/test/java/io/cassandrareaper/resources/RepairRunResourceTest.java index 9b6762657..317ba0227 100644 --- a/src/server/src/test/java/io/cassandrareaper/resources/RepairRunResourceTest.java +++ b/src/server/src/test/java/io/cassandrareaper/resources/RepairRunResourceTest.java @@ -1,4 +1,7 @@ /* + * Copyright 2015-2017 Spotify AB + * Copyright 2016-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/test/java/io/cassandrareaper/resources/view/NodesStatusTest.java b/src/server/src/test/java/io/cassandrareaper/resources/view/NodesStatusTest.java index 6af966f8f..90bc87dbe 100644 --- a/src/server/src/test/java/io/cassandrareaper/resources/view/NodesStatusTest.java +++ b/src/server/src/test/java/io/cassandrareaper/resources/view/NodesStatusTest.java @@ -1,4 +1,7 @@ /* + * Copyright 2017-2017 Spotify AB + * Copyright 2017-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/test/java/io/cassandrareaper/resources/view/RepairRunStatusTest.java b/src/server/src/test/java/io/cassandrareaper/resources/view/RepairRunStatusTest.java index 1e2b081ab..05607ace7 100644 --- a/src/server/src/test/java/io/cassandrareaper/resources/view/RepairRunStatusTest.java +++ b/src/server/src/test/java/io/cassandrareaper/resources/view/RepairRunStatusTest.java @@ -1,4 +1,7 @@ /* + * Copyright 2015-2017 Spotify AB + * Copyright 2016-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/test/java/io/cassandrareaper/resources/view/RepairScheduleStatusTest.java b/src/server/src/test/java/io/cassandrareaper/resources/view/RepairScheduleStatusTest.java index fc979b88d..43f3adf17 100644 --- a/src/server/src/test/java/io/cassandrareaper/resources/view/RepairScheduleStatusTest.java +++ b/src/server/src/test/java/io/cassandrareaper/resources/view/RepairScheduleStatusTest.java @@ -1,4 +1,7 @@ /* + * Copyright 2015-2017 Spotify AB + * Copyright 2016-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/test/java/io/cassandrareaper/service/AutoSchedulingManagerTest.java b/src/server/src/test/java/io/cassandrareaper/service/AutoSchedulingManagerTest.java index 294a3cc63..e459a48a6 100644 --- a/src/server/src/test/java/io/cassandrareaper/service/AutoSchedulingManagerTest.java +++ b/src/server/src/test/java/io/cassandrareaper/service/AutoSchedulingManagerTest.java @@ -1,4 +1,7 @@ /* + * Copyright 2017-2017 Spotify AB + * Copyright 2017-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/test/java/io/cassandrareaper/service/ClusterRepairSchedulerTest.java b/src/server/src/test/java/io/cassandrareaper/service/ClusterRepairSchedulerTest.java index b899ff214..e40ee1415 100644 --- a/src/server/src/test/java/io/cassandrareaper/service/ClusterRepairSchedulerTest.java +++ b/src/server/src/test/java/io/cassandrareaper/service/ClusterRepairSchedulerTest.java @@ -1,4 +1,7 @@ /* + * Copyright 2017-2017 Spotify AB + * Copyright 2017-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/test/java/io/cassandrareaper/service/HeartTest.java b/src/server/src/test/java/io/cassandrareaper/service/HeartTest.java index 238aca53d..0d23b32d9 100644 --- a/src/server/src/test/java/io/cassandrareaper/service/HeartTest.java +++ b/src/server/src/test/java/io/cassandrareaper/service/HeartTest.java @@ -1,4 +1,7 @@ /* + * Copyright 2017-2017 Spotify AB + * Copyright 2017-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/test/java/io/cassandrareaper/service/MetricsGrabberTest.java b/src/server/src/test/java/io/cassandrareaper/service/MetricsGrabberTest.java index 2c5aa7fe0..a766e40a6 100644 --- a/src/server/src/test/java/io/cassandrareaper/service/MetricsGrabberTest.java +++ b/src/server/src/test/java/io/cassandrareaper/service/MetricsGrabberTest.java @@ -1,4 +1,7 @@ /* + * Copyright 2018-2018 The Last Pickle Ltd + * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/test/java/io/cassandrareaper/service/PurgeManagerTest.java b/src/server/src/test/java/io/cassandrareaper/service/PurgeManagerTest.java index 851a2115c..aad6bf323 100644 --- a/src/server/src/test/java/io/cassandrareaper/service/PurgeManagerTest.java +++ b/src/server/src/test/java/io/cassandrareaper/service/PurgeManagerTest.java @@ -1,4 +1,7 @@ /* + * Copyright 2018-2018 The Last Pickle Ltd + * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/test/java/io/cassandrareaper/service/RepairManagerTest.java b/src/server/src/test/java/io/cassandrareaper/service/RepairManagerTest.java index fcd60b1d1..9f663b6a2 100644 --- a/src/server/src/test/java/io/cassandrareaper/service/RepairManagerTest.java +++ b/src/server/src/test/java/io/cassandrareaper/service/RepairManagerTest.java @@ -1,4 +1,7 @@ /* + * Copyright 2017-2017 Spotify AB + * Copyright 2017-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/test/java/io/cassandrareaper/service/RepairRunServiceTest.java b/src/server/src/test/java/io/cassandrareaper/service/RepairRunServiceTest.java index 449e85200..6feb7272c 100644 --- a/src/server/src/test/java/io/cassandrareaper/service/RepairRunServiceTest.java +++ b/src/server/src/test/java/io/cassandrareaper/service/RepairRunServiceTest.java @@ -1,4 +1,7 @@ /* + * Copyright 2017-2017 Spotify AB + * Copyright 2017-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/test/java/io/cassandrareaper/service/RepairRunnerTest.java b/src/server/src/test/java/io/cassandrareaper/service/RepairRunnerTest.java index 46670a55b..96d9d8934 100644 --- a/src/server/src/test/java/io/cassandrareaper/service/RepairRunnerTest.java +++ b/src/server/src/test/java/io/cassandrareaper/service/RepairRunnerTest.java @@ -1,4 +1,7 @@ /* + * Copyright 2015-2017 Spotify AB + * Copyright 2016-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/test/java/io/cassandrareaper/service/RingRangeTest.java b/src/server/src/test/java/io/cassandrareaper/service/RingRangeTest.java index b900f569b..1351fd293 100644 --- a/src/server/src/test/java/io/cassandrareaper/service/RingRangeTest.java +++ b/src/server/src/test/java/io/cassandrareaper/service/RingRangeTest.java @@ -1,4 +1,7 @@ /* + * Copyright 2017-2017 Spotify AB + * Copyright 2017-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/test/java/io/cassandrareaper/service/SegmentGeneratorTest.java b/src/server/src/test/java/io/cassandrareaper/service/SegmentGeneratorTest.java index f373dc81a..1d95f9894 100644 --- a/src/server/src/test/java/io/cassandrareaper/service/SegmentGeneratorTest.java +++ b/src/server/src/test/java/io/cassandrareaper/service/SegmentGeneratorTest.java @@ -1,4 +1,7 @@ /* + * Copyright 2014-2017 Spotify AB + * Copyright 2016-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/test/java/io/cassandrareaper/service/SegmentRunnerTest.java b/src/server/src/test/java/io/cassandrareaper/service/SegmentRunnerTest.java index 047a81d0c..af063a4cc 100644 --- a/src/server/src/test/java/io/cassandrareaper/service/SegmentRunnerTest.java +++ b/src/server/src/test/java/io/cassandrareaper/service/SegmentRunnerTest.java @@ -1,4 +1,7 @@ /* + * Copyright 2015-2017 Spotify AB + * Copyright 2016-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/test/java/io/cassandrareaper/service/SnapshotManagerTest.java b/src/server/src/test/java/io/cassandrareaper/service/SnapshotManagerTest.java index f28d1b5f3..d8362767a 100644 --- a/src/server/src/test/java/io/cassandrareaper/service/SnapshotManagerTest.java +++ b/src/server/src/test/java/io/cassandrareaper/service/SnapshotManagerTest.java @@ -1,4 +1,7 @@ /* + * Copyright 2018-2018 The Last Pickle Ltd + * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/test/java/io/cassandrareaper/service/StreamFactoryTest.java b/src/server/src/test/java/io/cassandrareaper/service/StreamFactoryTest.java index 65800f1b1..09190f02f 100644 --- a/src/server/src/test/java/io/cassandrareaper/service/StreamFactoryTest.java +++ b/src/server/src/test/java/io/cassandrareaper/service/StreamFactoryTest.java @@ -1,4 +1,7 @@ /* + * Copyright 2018-2018 The Last Pickle Ltd + * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/test/java/io/cassandrareaper/service/StreamManagerTest.java b/src/server/src/test/java/io/cassandrareaper/service/StreamManagerTest.java index 96bb969c5..f034df6c8 100644 --- a/src/server/src/test/java/io/cassandrareaper/service/StreamManagerTest.java +++ b/src/server/src/test/java/io/cassandrareaper/service/StreamManagerTest.java @@ -1,4 +1,7 @@ /* + * Copyright 2018-2018 The Last Pickle Ltd + * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/test/java/io/cassandrareaper/service/TestRepairConfiguration.java b/src/server/src/test/java/io/cassandrareaper/service/TestRepairConfiguration.java index 00bd7206f..6117d78c7 100644 --- a/src/server/src/test/java/io/cassandrareaper/service/TestRepairConfiguration.java +++ b/src/server/src/test/java/io/cassandrareaper/service/TestRepairConfiguration.java @@ -1,4 +1,7 @@ /* + * Copyright 2017-2017 Spotify AB + * Copyright 2017-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/test/java/io/cassandrareaper/storage/CassandraStorageTest.java b/src/server/src/test/java/io/cassandrareaper/storage/CassandraStorageTest.java index 24c792675..8e4c23e5e 100644 --- a/src/server/src/test/java/io/cassandrareaper/storage/CassandraStorageTest.java +++ b/src/server/src/test/java/io/cassandrareaper/storage/CassandraStorageTest.java @@ -1,4 +1,7 @@ /* + * Copyright 2014-2017 Spotify AB + * Copyright 2016-2018 The Last Pickle Ltd + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/src/server/src/test/resources/assets/login.html b/src/server/src/test/resources/assets/login.html index 3a83e1ea6..ed0169ede 100644 --- a/src/server/src/test/resources/assets/login.html +++ b/src/server/src/test/resources/assets/login.html @@ -1,4 +1,18 @@ + @@ -9,4 +23,4 @@ - \ No newline at end of file + diff --git a/src/server/src/test/resources/cassandra-reaper-at-access-control-enabled.yaml b/src/server/src/test/resources/cassandra-reaper-at-access-control-enabled.yaml index b823ccc9e..00775b609 100644 --- a/src/server/src/test/resources/cassandra-reaper-at-access-control-enabled.yaml +++ b/src/server/src/test/resources/cassandra-reaper-at-access-control-enabled.yaml @@ -1,3 +1,18 @@ +# Copyright 2014-2017 Spotify AB +# Copyright 2016-2018 The Last Pickle Ltd +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# # Cassandra Reaper Configuration for Acceptance Tests. # segmentCount: 200 @@ -61,4 +76,4 @@ metrics: accessControl: sessionTimeout: PT30S shiro: - iniConfigs: ["classpath:shiro.ini"] \ No newline at end of file + iniConfigs: ["classpath:shiro.ini"] diff --git a/src/server/src/test/resources/cassandra-reaper-at.yaml b/src/server/src/test/resources/cassandra-reaper-at.yaml index de2203b90..cbb6e2a25 100644 --- a/src/server/src/test/resources/cassandra-reaper-at.yaml +++ b/src/server/src/test/resources/cassandra-reaper-at.yaml @@ -1,3 +1,18 @@ +# Copyright 2014-2017 Spotify AB +# Copyright 2016-2018 The Last Pickle Ltd +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# # Cassandra Reaper Configuration for Acceptance Tests. # segmentCountPerNode: 16 @@ -57,4 +72,4 @@ metrics: frequency: 1 second reporters: - type: csv - file: target/dropwizard-metrics \ No newline at end of file + file: target/dropwizard-metrics diff --git a/src/server/src/test/resources/cassandra-reaper-cassandra-at.yaml b/src/server/src/test/resources/cassandra-reaper-cassandra-at.yaml index d487250ce..33d76ce59 100644 --- a/src/server/src/test/resources/cassandra-reaper-cassandra-at.yaml +++ b/src/server/src/test/resources/cassandra-reaper-cassandra-at.yaml @@ -1,3 +1,18 @@ +# Copyright 2017-2017 Spotify AB +# Copyright 2017-2018 The Last Pickle Ltd +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# # Cassandra Reaper Configuration for Acceptance Tests. # segmentCountPerNode: 16 @@ -82,4 +97,4 @@ metrics: frequency: 1 second reporters: - type: csv - file: target/dropwizard-metrics \ No newline at end of file + file: target/dropwizard-metrics diff --git a/src/server/src/test/resources/cassandra-reaper-h2-at.yaml b/src/server/src/test/resources/cassandra-reaper-h2-at.yaml index fabe73232..6fb9e6851 100644 --- a/src/server/src/test/resources/cassandra-reaper-h2-at.yaml +++ b/src/server/src/test/resources/cassandra-reaper-h2-at.yaml @@ -1,3 +1,18 @@ +# Copyright 2017-2017 Spotify AB +# Copyright 2017-2018 The Last Pickle Ltd +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# # Cassandra Reaper Configuration for Acceptance Tests. # segmentCountPerNode: 16 @@ -55,4 +70,4 @@ metrics: frequency: 1 second reporters: - type: csv - file: target/dropwizard-metrics \ No newline at end of file + file: target/dropwizard-metrics diff --git a/src/server/src/test/resources/cassandra-reaper-postgres-at.yaml b/src/server/src/test/resources/cassandra-reaper-postgres-at.yaml index 6db8e1364..2cac8802e 100644 --- a/src/server/src/test/resources/cassandra-reaper-postgres-at.yaml +++ b/src/server/src/test/resources/cassandra-reaper-postgres-at.yaml @@ -1,3 +1,18 @@ +# Copyright 2017-2017 Spotify AB +# Copyright 2017-2018 The Last Pickle Ltd +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# # Cassandra Reaper Configuration for Acceptance Tests. # segmentCountPerNode: 16 @@ -54,4 +69,4 @@ metrics: frequency: 1 second reporters: - type: csv - file: target/dropwizard-metrics \ No newline at end of file + file: target/dropwizard-metrics diff --git a/src/server/src/test/resources/cassandra-reaper.yaml b/src/server/src/test/resources/cassandra-reaper.yaml index 024145c92..fbb00bb86 100644 --- a/src/server/src/test/resources/cassandra-reaper.yaml +++ b/src/server/src/test/resources/cassandra-reaper.yaml @@ -1,3 +1,18 @@ +# Copyright 2014-2017 Spotify AB +# Copyright 2016-2018 The Last Pickle Ltd +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# # Cassandra Reaper Configuration Example. # This configuration is used mainly for testing. # See the README.md file for explanations of configuration keys. @@ -91,4 +106,4 @@ metrics: frequency: 1 second reporters: - type: csv - file: target/dropwizard-metrics \ No newline at end of file + file: target/dropwizard-metrics diff --git a/src/server/src/test/resources/io.cassandrareaper.acceptance/access_control.feature b/src/server/src/test/resources/io.cassandrareaper.acceptance/access_control.feature index 03cef4b0c..df5d3b882 100644 --- a/src/server/src/test/resources/io.cassandrareaper.acceptance/access_control.feature +++ b/src/server/src/test/resources/io.cassandrareaper.acceptance/access_control.feature @@ -1,3 +1,17 @@ +# Copyright 2018-2018 The Last Pickle Ltd +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + Feature: Access Control Scenario Outline: Request to protected resource is redirected to login page when accessed without login diff --git a/src/server/src/test/resources/io.cassandrareaper.acceptance/integration_reaper_functionality.feature b/src/server/src/test/resources/io.cassandrareaper.acceptance/integration_reaper_functionality.feature index 8ed5da372..c91fbbba4 100644 --- a/src/server/src/test/resources/io.cassandrareaper.acceptance/integration_reaper_functionality.feature +++ b/src/server/src/test/resources/io.cassandrareaper.acceptance/integration_reaper_functionality.feature @@ -1,3 +1,18 @@ +# Copyright 2016-2017 Spotify AB +# Copyright 2016-2018 The Last Pickle Ltd +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + Feature: Using Reaper to launch repairs and schedule them ## TODO: clean-up and split the scenarios to be more like Given -> When -> Then [-> But] diff --git a/src/server/src/test/resources/logback-test.xml b/src/server/src/test/resources/logback-test.xml index 8ad4d3214..45143cb84 100644 --- a/src/server/src/test/resources/logback-test.xml +++ b/src/server/src/test/resources/logback-test.xml @@ -1,4 +1,19 @@ + tests.log diff --git a/src/server/src/test/resources/mockito-extensions/org.mockito.plugins.MockMaker b/src/server/src/test/resources/mockito-extensions/org.mockito.plugins.MockMaker index ca6ee9cea..1f0955d45 100644 --- a/src/server/src/test/resources/mockito-extensions/org.mockito.plugins.MockMaker +++ b/src/server/src/test/resources/mockito-extensions/org.mockito.plugins.MockMaker @@ -1 +1 @@ -mock-maker-inline \ No newline at end of file +mock-maker-inline diff --git a/src/server/src/test/resources/repair-samples/stream-report-2-1-20.txt b/src/server/src/test/resources/repair-samples/stream-report-2-1-20.txt index 20694f637..0b7e7d06b 100644 --- a/src/server/src/test/resources/repair-samples/stream-report-2-1-20.txt +++ b/src/server/src/test/resources/repair-samples/stream-report-2-1-20.txt @@ -157,4 +157,4 @@ contents={ totalTxBytes=53556352, txPercentage=2.0 } -) \ No newline at end of file +) diff --git a/src/server/src/test/resources/shiro.ini b/src/server/src/test/resources/shiro.ini index de734f0dc..b054c9575 100644 --- a/src/server/src/test/resources/shiro.ini +++ b/src/server/src/test/resources/shiro.ini @@ -1,3 +1,17 @@ +# Copyright 2018-2018 The Last Pickle Ltd +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + [main] authc = org.apache.shiro.web.filter.authc.PassThruAuthenticationFilter authc.loginUrl = /webui/login.html @@ -14,4 +28,4 @@ myuser = mypassword /webui/*.js* = anon /ping = anon /login = anon -/** = anon \ No newline at end of file +/** = anon diff --git a/src/ui/LICENSE b/src/ui/LICENSE deleted file mode 100644 index 294b6b86d..000000000 --- a/src/ui/LICENSE +++ /dev/null @@ -1,202 +0,0 @@ -Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2015 Stefan Podkowinski - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - diff --git a/src/ui/app/html_template.ejs b/src/ui/app/html_template.ejs index 06acf1519..130410c08 100644 --- a/src/ui/app/html_template.ejs +++ b/src/ui/app/html_template.ejs @@ -1,4 +1,18 @@ + diff --git a/src/ui/app/index.js b/src/ui/app/index.js index 685dabd2a..5f1dd4aad 100644 --- a/src/ui/app/index.js +++ b/src/ui/app/index.js @@ -1,3 +1,19 @@ +// +// Copyright 2015-2016 Stefan Podkowinski +// Copyright 2016-2018 The Last Pickle Ltd +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import jQuery from "jquery"; import ReactDOM from "react-dom"; import React from "react"; @@ -37,4 +53,4 @@ jQuery(document).ready(function($){ deleteResult: deleteClusterResult, statusObservableTimer}), document.getElementById('wrapper') ); -}); \ No newline at end of file +}); diff --git a/src/ui/app/jsx/active-compactions.jsx b/src/ui/app/jsx/active-compactions.jsx index 2cc3540c8..a69cc28d8 100644 --- a/src/ui/app/jsx/active-compactions.jsx +++ b/src/ui/app/jsx/active-compactions.jsx @@ -1,3 +1,18 @@ +// +// Copyright 2018-2018 The Last Pickle Ltd +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import React from "react"; import Table from 'react-bootstrap/lib/Table'; import {DeleteStatusMessageMixin, humanFileSize, getUrlPrefix, toast} from "jsx/mixin"; @@ -95,4 +110,4 @@ const ActiveCompactions = React.createClass({ } }) - export default ActiveCompactions; \ No newline at end of file + export default ActiveCompactions; diff --git a/src/ui/app/jsx/client-request-latency.jsx b/src/ui/app/jsx/client-request-latency.jsx index 6321ac901..5752214af 100644 --- a/src/ui/app/jsx/client-request-latency.jsx +++ b/src/ui/app/jsx/client-request-latency.jsx @@ -1,3 +1,18 @@ +// +// Copyright 2018-2018 The Last Pickle Ltd +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import React from "react"; import Table from 'react-bootstrap/lib/Table'; import Tooltip from 'react-bootstrap/lib/Tooltip'; @@ -178,4 +193,4 @@ const ClientRequestLatency = React.createClass({ } }) - export default ClientRequestLatency; \ No newline at end of file + export default ClientRequestLatency; diff --git a/src/ui/app/jsx/cluster-form.jsx b/src/ui/app/jsx/cluster-form.jsx index c6fb34592..ae08a71a9 100644 --- a/src/ui/app/jsx/cluster-form.jsx +++ b/src/ui/app/jsx/cluster-form.jsx @@ -1,3 +1,19 @@ +// +// Copyright 2015-2016 Stefan Podkowinski +// Copyright 2016-2018 The Last Pickle Ltd +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import React from "react"; diff --git a/src/ui/app/jsx/cluster-list.jsx b/src/ui/app/jsx/cluster-list.jsx index 465f8ea48..b4e52d4e8 100644 --- a/src/ui/app/jsx/cluster-list.jsx +++ b/src/ui/app/jsx/cluster-list.jsx @@ -1,3 +1,19 @@ +// +// Copyright 2015-2016 Stefan Podkowinski +// Copyright 2016-2018 The Last Pickle Ltd +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import React from "react"; import NodeStatus from "jsx/node-status"; import {DeleteStatusMessageMixin, humanFileSize, getUrlPrefix} from "jsx/mixin"; @@ -328,4 +344,4 @@ const clusterList = React.createClass({ } }); -export default clusterList; \ No newline at end of file +export default clusterList; diff --git a/src/ui/app/jsx/cluster-screen.jsx b/src/ui/app/jsx/cluster-screen.jsx index be98a4f5e..fd47d596f 100644 --- a/src/ui/app/jsx/cluster-screen.jsx +++ b/src/ui/app/jsx/cluster-screen.jsx @@ -1,3 +1,18 @@ +// +// Copyright 2017-2018 The Last Pickle Ltd +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import React from "react"; import moment from "moment"; import ServerStatus from "jsx/server-status"; diff --git a/src/ui/app/jsx/component.jsx b/src/ui/app/jsx/component.jsx index c64926f7a..d384009cd 100644 --- a/src/ui/app/jsx/component.jsx +++ b/src/ui/app/jsx/component.jsx @@ -1,3 +1,18 @@ +// +// Copyright 2016-2018 The Last Pickle Ltd +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import React from "react"; var mainPage = React.createClass({ @@ -8,4 +23,4 @@ var mainPage = React.createClass({ } }); -export default mainPage; \ No newline at end of file +export default mainPage; diff --git a/src/ui/app/jsx/dashboard-page.jsx b/src/ui/app/jsx/dashboard-page.jsx index 38490415f..6327c90df 100644 --- a/src/ui/app/jsx/dashboard-page.jsx +++ b/src/ui/app/jsx/dashboard-page.jsx @@ -1,3 +1,18 @@ +// +// Copyright 2016-2018 The Last Pickle Ltd +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import React from "react"; import Component from "jsx/component"; @@ -12,4 +27,4 @@ var mainPage = React.createClass({ } }); -export default mainPage; \ No newline at end of file +export default mainPage; diff --git a/src/ui/app/jsx/dropped-messages.jsx b/src/ui/app/jsx/dropped-messages.jsx index e7a3edca8..62cd9b540 100644 --- a/src/ui/app/jsx/dropped-messages.jsx +++ b/src/ui/app/jsx/dropped-messages.jsx @@ -1,3 +1,18 @@ +// +// Copyright 2018-2018 The Last Pickle Ltd +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import React from "react"; import Table from 'react-bootstrap/lib/Table'; import {DeleteStatusMessageMixin, humanFileSize, getUrlPrefix, toast} from "jsx/mixin"; @@ -83,4 +98,4 @@ const DroppedMessages = React.createClass({ } }) - export default DroppedMessages; \ No newline at end of file + export default DroppedMessages; diff --git a/src/ui/app/jsx/login-form.jsx b/src/ui/app/jsx/login-form.jsx index cd8e5e710..c6deacc34 100644 --- a/src/ui/app/jsx/login-form.jsx +++ b/src/ui/app/jsx/login-form.jsx @@ -1,3 +1,18 @@ +// +// Copyright 2018-2018 The Last Pickle Ltd +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import React from "react"; import ReactDOM from "react-dom"; @@ -82,4 +97,4 @@ const loginForm = React.createClass({ } }); -export default loginForm; \ No newline at end of file +export default loginForm; diff --git a/src/ui/app/jsx/mixin.jsx b/src/ui/app/jsx/mixin.jsx index 90b4d991f..830bd9014 100644 --- a/src/ui/app/jsx/mixin.jsx +++ b/src/ui/app/jsx/mixin.jsx @@ -1,3 +1,19 @@ +// +// Copyright 2015-2016 Stefan Podkowinski +// Copyright 2016-2018 The Last Pickle Ltd +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import React from "react"; export const RowDeleteMixin = { diff --git a/src/ui/app/jsx/node-status.jsx b/src/ui/app/jsx/node-status.jsx index 65a64bae3..4291a9d93 100644 --- a/src/ui/app/jsx/node-status.jsx +++ b/src/ui/app/jsx/node-status.jsx @@ -1,3 +1,18 @@ +// +// Copyright 2018-2018 The Last Pickle Ltd +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import React from "react"; import Snapshot from "jsx/snapshot"; import TpStats from "jsx/tpstats"; @@ -275,4 +290,4 @@ const NodeStatus = React.createClass({ }) -export default NodeStatus; \ No newline at end of file +export default NodeStatus; diff --git a/src/ui/app/jsx/repair-form.jsx b/src/ui/app/jsx/repair-form.jsx index bfc764c73..96e946ff7 100644 --- a/src/ui/app/jsx/repair-form.jsx +++ b/src/ui/app/jsx/repair-form.jsx @@ -1,3 +1,19 @@ +// +// Copyright 2015-2016 Stefan Podkowinski +// Copyright 2016-2018 The Last Pickle Ltd +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import React from "react"; import { WithContext as ReactTags } from 'react-tag-input'; import { getUrlPrefix } from "jsx/mixin"; diff --git a/src/ui/app/jsx/repair-list.jsx b/src/ui/app/jsx/repair-list.jsx index 8e3102ce4..7e1d7c81d 100644 --- a/src/ui/app/jsx/repair-list.jsx +++ b/src/ui/app/jsx/repair-list.jsx @@ -1,3 +1,19 @@ +// +// Copyright 2015-2016 Stefan Podkowinski +// Copyright 2016-2018 The Last Pickle Ltd +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import React from "react"; import moment from "moment"; import {RowDeleteMixin, RowAbortMixin, StatusUpdateMixin, DeleteStatusMessageMixin, CFsListRender} from "jsx/mixin"; diff --git a/src/ui/app/jsx/repair-screen.jsx b/src/ui/app/jsx/repair-screen.jsx index 4d8082df0..6e19d5e70 100644 --- a/src/ui/app/jsx/repair-screen.jsx +++ b/src/ui/app/jsx/repair-screen.jsx @@ -1,3 +1,18 @@ +// +// Copyright 2017-2018 The Last Pickle Ltd +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import React from "react"; import moment from "moment"; import ServerStatus from "jsx/server-status"; diff --git a/src/ui/app/jsx/schedule-form.jsx b/src/ui/app/jsx/schedule-form.jsx index 9d559cf00..b360c0d67 100644 --- a/src/ui/app/jsx/schedule-form.jsx +++ b/src/ui/app/jsx/schedule-form.jsx @@ -1,3 +1,19 @@ +// +// Copyright 2015-2016 Stefan Podkowinski +// Copyright 2016-2018 The Last Pickle Ltd +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import React from "react"; import { WithContext as ReactTags } from 'react-tag-input'; import $ from "jquery"; diff --git a/src/ui/app/jsx/schedule-list.jsx b/src/ui/app/jsx/schedule-list.jsx index 04c57a11b..cd34148ee 100644 --- a/src/ui/app/jsx/schedule-list.jsx +++ b/src/ui/app/jsx/schedule-list.jsx @@ -1,3 +1,19 @@ +// +// Copyright 2015-2016 Stefan Podkowinski +// Copyright 2016-2018 The Last Pickle Ltd +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import React from "react"; import moment from "moment"; import {RowDeleteMixin, StatusUpdateMixin, DeleteStatusMessageMixin, CFsListRender, toast, getUrlPrefix} from "jsx/mixin"; diff --git a/src/ui/app/jsx/schedule-screen.jsx b/src/ui/app/jsx/schedule-screen.jsx index a93870f8e..ddfd6d9f1 100644 --- a/src/ui/app/jsx/schedule-screen.jsx +++ b/src/ui/app/jsx/schedule-screen.jsx @@ -1,3 +1,18 @@ +// +// Copyright 2017-2018 The Last Pickle Ltd +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import React from "react"; import moment from "moment"; import ServerStatus from "jsx/server-status"; diff --git a/src/ui/app/jsx/segment-list.jsx b/src/ui/app/jsx/segment-list.jsx index 831e0fc3e..dbc8631b0 100644 --- a/src/ui/app/jsx/segment-list.jsx +++ b/src/ui/app/jsx/segment-list.jsx @@ -1,3 +1,18 @@ +// +// Copyright 2017-2018 The Last Pickle Ltd +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import React from "react"; import moment from "moment"; import {CFsListRender, getUrlPrefix} from "jsx/mixin"; @@ -381,4 +396,4 @@ const Segment = React.createClass({ } }); -export default SegmentList; \ No newline at end of file +export default SegmentList; diff --git a/src/ui/app/jsx/server-status.jsx b/src/ui/app/jsx/server-status.jsx index d21c0f351..3ba4f0c7b 100644 --- a/src/ui/app/jsx/server-status.jsx +++ b/src/ui/app/jsx/server-status.jsx @@ -1,3 +1,19 @@ +// +// Copyright 2015-2016 Stefan Podkowinski +// Copyright 2016-2018 The Last Pickle Ltd +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import React from "react"; var serverStatus = React.createClass({ diff --git a/src/ui/app/jsx/sidebar.jsx b/src/ui/app/jsx/sidebar.jsx index 0e78042a7..586d9fc1a 100644 --- a/src/ui/app/jsx/sidebar.jsx +++ b/src/ui/app/jsx/sidebar.jsx @@ -1,3 +1,19 @@ +// +// Copyright 2015-2016 Stefan Podkowinski +// Copyright 2016-2018 The Last Pickle Ltd +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import React from "react"; const sidebar = React.createClass({ @@ -69,4 +85,4 @@ const sidebar = React.createClass({ } }); -export default sidebar; \ No newline at end of file +export default sidebar; diff --git a/src/ui/app/jsx/snapshot-form.jsx b/src/ui/app/jsx/snapshot-form.jsx index 9e1fc271b..1aa13de13 100644 --- a/src/ui/app/jsx/snapshot-form.jsx +++ b/src/ui/app/jsx/snapshot-form.jsx @@ -1,3 +1,18 @@ +// +// Copyright 2018-2018 The Last Pickle Ltd +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import React from "react"; import { WithContext as ReactTags } from 'react-tag-input'; import {getUrlPrefix, toast} from "jsx/mixin"; diff --git a/src/ui/app/jsx/snapshot-list.jsx b/src/ui/app/jsx/snapshot-list.jsx index 7cb2ef346..87cf6ed16 100644 --- a/src/ui/app/jsx/snapshot-list.jsx +++ b/src/ui/app/jsx/snapshot-list.jsx @@ -1,3 +1,18 @@ +// +// Copyright 2018-2018 The Last Pickle Ltd +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import React from "react"; import moment from "moment"; import {CFsListRender, getUrlPrefix, humanFileSize, toast} from "jsx/mixin"; diff --git a/src/ui/app/jsx/snapshot-screen.jsx b/src/ui/app/jsx/snapshot-screen.jsx index 967ffc614..6aea79b13 100644 --- a/src/ui/app/jsx/snapshot-screen.jsx +++ b/src/ui/app/jsx/snapshot-screen.jsx @@ -1,3 +1,18 @@ +// +// Copyright 2018-2018 The Last Pickle Ltd +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import React from "react"; import moment from "moment"; import ServerStatus from "jsx/server-status"; diff --git a/src/ui/app/jsx/snapshot.jsx b/src/ui/app/jsx/snapshot.jsx index 52a3e65d8..6df0e5cab 100644 --- a/src/ui/app/jsx/snapshot.jsx +++ b/src/ui/app/jsx/snapshot.jsx @@ -1,3 +1,18 @@ +// +// Copyright 2018-2018 The Last Pickle Ltd +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import React from "react"; import {DeleteStatusMessageMixin, humanFileSize, getUrlPrefix, toast} from "jsx/mixin"; import Modal from 'react-bootstrap/lib/Modal'; @@ -159,4 +174,4 @@ const Snapshot = React.createClass({ } }) - export default Snapshot; \ No newline at end of file + export default Snapshot; diff --git a/src/ui/app/jsx/stream.jsx b/src/ui/app/jsx/stream.jsx index 567a769ee..ee8ff1a50 100644 --- a/src/ui/app/jsx/stream.jsx +++ b/src/ui/app/jsx/stream.jsx @@ -1,3 +1,18 @@ +// +// Copyright 2018-2018 The Last Pickle Ltd +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import React from "react"; import ProgressBar from 'react-bootstrap/lib/ProgressBar'; import Table from 'react-bootstrap/lib/Table'; diff --git a/src/ui/app/jsx/streams.jsx b/src/ui/app/jsx/streams.jsx index ccfdd2a5b..30cdba952 100644 --- a/src/ui/app/jsx/streams.jsx +++ b/src/ui/app/jsx/streams.jsx @@ -1,3 +1,18 @@ +// +// Copyright 2018-2018 The Last Pickle Ltd +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import React from "react"; import Table from 'react-bootstrap/lib/Table'; import Stream from 'jsx/stream'; diff --git a/src/ui/app/jsx/tpstats.jsx b/src/ui/app/jsx/tpstats.jsx index ddf952e4c..326822cf1 100644 --- a/src/ui/app/jsx/tpstats.jsx +++ b/src/ui/app/jsx/tpstats.jsx @@ -1,3 +1,18 @@ +// +// Copyright 2018-2018 The Last Pickle Ltd +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import React from "react"; import Table from 'react-bootstrap/lib/Table'; import {DeleteStatusMessageMixin, humanFileSize, getUrlPrefix, toast} from "jsx/mixin"; @@ -83,4 +98,4 @@ const TpStats = React.createClass({ } }) - export default TpStats; \ No newline at end of file + export default TpStats; diff --git a/src/ui/app/login.js b/src/ui/app/login.js index 24b2cb79a..e6904c6de 100644 --- a/src/ui/app/login.js +++ b/src/ui/app/login.js @@ -1,3 +1,18 @@ +// +// Copyright 2018-2018 The Last Pickle Ltd +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import jQuery from "jquery"; import ReactDOM from "react-dom"; import React from "react"; @@ -14,4 +29,4 @@ jQuery(document).ready(function($){ document.getElementById('wrapper') ); -}); \ No newline at end of file +}); diff --git a/src/ui/app/navbar.template.jsx b/src/ui/app/navbar.template.jsx index 0a5c2fb72..2c2217ff7 100644 --- a/src/ui/app/navbar.template.jsx +++ b/src/ui/app/navbar.template.jsx @@ -1,3 +1,18 @@ +// +// Copyright 2017-2018 The Last Pickle Ltd +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import React from "react"; import Label from 'react-bootstrap/lib/Label'; import Modal from 'react-bootstrap/lib/Modal'; @@ -57,4 +72,4 @@ const NavBar = React.createClass({ } }); -export default NavBar; \ No newline at end of file +export default NavBar; diff --git a/src/ui/app/observable.js b/src/ui/app/observable.js index 544f90b3c..1c3d1feea 100644 --- a/src/ui/app/observable.js +++ b/src/ui/app/observable.js @@ -1,3 +1,19 @@ +// +// Copyright 2015-2016 Stefan Podkowinski +// Copyright 2016-2018 The Last Pickle Ltd +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import Rx from "rxjs"; import $ from "jquery"; import { getUrlPrefix } from "jsx/mixin"; diff --git a/src/ui/app/repair.js b/src/ui/app/repair.js index b3987e575..a5bb952db 100644 --- a/src/ui/app/repair.js +++ b/src/ui/app/repair.js @@ -1,3 +1,19 @@ +// +// Copyright 2015-2016 Stefan Podkowinski +// Copyright 2016-2018 The Last Pickle Ltd +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import jQuery from "jquery"; import React from "react"; import ReactDOM from "react-dom"; diff --git a/src/ui/app/schedules.js b/src/ui/app/schedules.js index 6b2622132..c9a4c6a37 100644 --- a/src/ui/app/schedules.js +++ b/src/ui/app/schedules.js @@ -1,3 +1,19 @@ +// +// Copyright 2015-2016 Stefan Podkowinski +// Copyright 2016-2018 The Last Pickle Ltd +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import jQuery from "jquery"; import React from "react"; import ReactDOM from "react-dom"; @@ -37,4 +53,4 @@ jQuery(document).ready(function($){ deleteResult: deleteScheduleResult, updateStatusSubject: updateScheduleStatusSubject, statusObservableTimer}), document.getElementById('wrapper') ); -}); \ No newline at end of file +}); diff --git a/src/ui/app/segments.js b/src/ui/app/segments.js index 29162a93c..18fecfa3a 100644 --- a/src/ui/app/segments.js +++ b/src/ui/app/segments.js @@ -1,3 +1,17 @@ +// Copyright 2016-2018 The Last Pickle Ltd +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import jQuery from "jquery"; import ReactDOM from "react-dom"; import React from "react"; @@ -32,4 +46,4 @@ jQuery(document).ready(function($){ React.createElement(SegmentList, {repairRunId, logoutSubject: logoutSubject, logoutResult: logoutResult, }), document.getElementById('wrapper') ); -}); \ No newline at end of file +}); diff --git a/src/ui/app/snapshot.js b/src/ui/app/snapshot.js index 10a721b65..f3dcd0eb0 100644 --- a/src/ui/app/snapshot.js +++ b/src/ui/app/snapshot.js @@ -1,3 +1,18 @@ +// +// Copyright 2016-2018 The Last Pickle Ltd +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import jQuery from "jquery"; import React from "react"; import ReactDOM from "react-dom"; diff --git a/src/ui/app/style.scss b/src/ui/app/style.scss index d0d28c263..656dc2897 100644 --- a/src/ui/app/style.scss +++ b/src/ui/app/style.scss @@ -1,3 +1,18 @@ +// +// Copyright 2018-2018 The Last Pickle Ltd +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //colors $black: #000; $color_concrete_approx: #f3f3f3; @@ -133,4 +148,4 @@ td > button { $font-size: 16px; $input-height: 2.5em; // at 16px, this an even 40px -@import '~react-widgets/lib/scss/react-widgets'; \ No newline at end of file +@import '~react-widgets/lib/scss/react-widgets'; diff --git a/src/ui/package.json b/src/ui/package.json index 861e04484..7400ef8f0 100644 --- a/src/ui/package.json +++ b/src/ui/package.json @@ -6,11 +6,10 @@ "keywords": [ "cassandra" ], - "author": "Stefan Podkowinski ", - "license": "MIT", + "license": "Apache 2.0 License", "repository": { "type": "git", - "url": "https://github.com/spodkowinski/cassandra-reaper-ui.git" + "url": "https://github.com/thelastpickle/cassandra-reaper.git" }, "devDependencies": { "babel-core": "^4.1.1", diff --git a/src/ui/server.js b/src/ui/server.js index 3373541ef..c541be0ee 100644 --- a/src/ui/server.js +++ b/src/ui/server.js @@ -1,3 +1,19 @@ +// +// Copyright 2015-2016 Stefan Podkowinski +// Copyright 2016-2018 The Last Pickle Ltd +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + var webpack = require('webpack'); var WebpackDevServer = require('webpack-dev-server'); @@ -14,4 +30,4 @@ new WebpackDevServer(webpack(config), { console.log(err); } console.log('Listening at localhost:8000'); -}); \ No newline at end of file +}); diff --git a/src/ui/start-webpack.sh b/src/ui/start-webpack.sh index b334e0834..a4670c3bd 100755 --- a/src/ui/start-webpack.sh +++ b/src/ui/start-webpack.sh @@ -1 +1,15 @@ +# Copyright 2017-2018 The Last Pickle Ltd +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + webpack-dev-server --host 0.0.0.0 --port 8000 --content-base build/ -d diff --git a/src/ui/webpack.config.js b/src/ui/webpack.config.js index c1e39175a..ed987150e 100644 --- a/src/ui/webpack.config.js +++ b/src/ui/webpack.config.js @@ -1,3 +1,19 @@ +// +// Copyright 2015-2016 Stefan Podkowinski +// Copyright 2016-2018 The Last Pickle Ltd +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + var path = require('path'); var webpack = require('webpack'); var HtmlWebpackPlugin = require('html-webpack-plugin');