Return-Path: X-Original-To: apmail-aurora-commits-archive@minotaur.apache.org Delivered-To: apmail-aurora-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 01D2D102FD for ; Mon, 20 Jan 2014 05:56:20 +0000 (UTC) Received: (qmail 85095 invoked by uid 500); 20 Jan 2014 05:56:19 -0000 Delivered-To: apmail-aurora-commits-archive@aurora.apache.org Received: (qmail 85062 invoked by uid 500); 20 Jan 2014 05:56:18 -0000 Mailing-List: contact commits-help@aurora.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@aurora.incubator.apache.org Delivered-To: mailing list commits@aurora.incubator.apache.org Received: (qmail 85037 invoked by uid 99); 20 Jan 2014 05:56:17 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Jan 2014 05:56:17 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 20 Jan 2014 05:56:12 +0000 Received: (qmail 84944 invoked by uid 99); 20 Jan 2014 05:55:52 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Jan 2014 05:55:52 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 6988710E9F; Mon, 20 Jan 2014 05:55:51 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: wfarner@apache.org To: commits@aurora.incubator.apache.org Date: Mon, 20 Jan 2014 05:55:53 -0000 Message-Id: <05cc1ee758bb4a85acec0a731bbd6624@git.apache.org> In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [4/4] git commit: Adding license header to missing files (py, bash, thrift, ...) X-Virus-Checked: Checked by ClamAV on apache.org Adding license header to missing files (py, bash, thrift, ...) Bugs closed: AURORA-3 Reviewed at https://reviews.apache.org/r/17110/ Project: http://git-wip-us.apache.org/repos/asf/incubator-aurora/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-aurora/commit/d7a82dc4 Tree: http://git-wip-us.apache.org/repos/asf/incubator-aurora/tree/d7a82dc4 Diff: http://git-wip-us.apache.org/repos/asf/incubator-aurora/diff/d7a82dc4 Branch: refs/heads/master Commit: d7a82dc4298aa678eae34d9b461f817a52d8a9b8 Parents: b03696a Author: Jake Farrell Authored: Sun Jan 19 21:54:58 2014 -0800 Committer: Bill Farner Committed: Sun Jan 19 21:54:58 2014 -0800 ---------------------------------------------------------------------- README.md | 8 +++--- Vagrantfile | 15 ++++++++++ build-support/jenkins/build.sh | 25 ++++++++--------- build.gradle | 16 +++++++++++ gradlew | 16 ++++++++++- pants | 16 ++++++++++- pants.ini | 15 ++++++++++ rbt | 15 ++++++++++ src/main/python/apache/__init__.py | 16 +++++++++++ src/main/python/apache/aurora/__init__.py | 16 +++++++++++ src/main/python/apache/aurora/admin/BUILD | 16 +++++++++++ .../apache/aurora/admin/mesos_maintenance.py | 16 +++++++++++ src/main/python/apache/aurora/client/BUILD | 16 +++++++++++ .../python/apache/aurora/client/__init__.py | 16 +++++++++++ src/main/python/apache/aurora/client/api/BUILD | 16 +++++++++++ .../python/apache/aurora/client/api/__init__.py | 16 +++++++++++ .../apache/aurora/client/api/command_runner.py | 16 +++++++++++ .../apache/aurora/client/api/disambiguator.py | 16 +++++++++++ .../apache/aurora/client/api/health_check.py | 16 +++++++++++ .../aurora/client/api/instance_watcher.py | 16 +++++++++++ .../apache/aurora/client/api/job_monitor.py | 16 +++++++++++ .../apache/aurora/client/api/quota_check.py | 16 +++++++++++ .../apache/aurora/client/api/restarter.py | 16 +++++++++++ .../aurora/client/api/scheduler_client.py | 16 +++++++++++ .../python/apache/aurora/client/api/updater.py | 16 +++++++++++ .../apache/aurora/client/api/updater_util.py | 16 +++++++++++ src/main/python/apache/aurora/client/base.py | 16 +++++++++++ src/main/python/apache/aurora/client/bin/BUILD | 16 +++++++++++ .../apache/aurora/client/bin/aurora_admin.py | 16 +++++++++++ .../apache/aurora/client/bin/aurora_client.py | 16 +++++++++++ .../apache/aurora/client/binding_helper.py | 16 +++++++++++ src/main/python/apache/aurora/client/cli/BUILD | 15 ++++++++++ .../python/apache/aurora/client/cli/__init__.py | 16 +++++++++++ .../python/apache/aurora/client/cli/context.py | 16 +++++++++++ .../python/apache/aurora/client/cli/jobs.py | 16 +++++++++++ .../python/apache/aurora/client/cli/options.py | 16 +++++++++++ .../python/apache/aurora/client/commands/BUILD | 16 +++++++++++ .../apache/aurora/client/commands/admin.py | 16 +++++++++++ .../apache/aurora/client/commands/core.py | 16 +++++++++++ .../apache/aurora/client/commands/help.py | 16 +++++++++++ .../python/apache/aurora/client/commands/run.py | 16 +++++++++++ .../python/apache/aurora/client/commands/ssh.py | 16 +++++++++++ src/main/python/apache/aurora/client/config.py | 16 +++++++++++ src/main/python/apache/aurora/client/factory.py | 16 +++++++++++ .../python/apache/aurora/client/hooks/BUILD | 16 +++++++++++ .../apache/aurora/client/hooks/__init__.py | 16 +++++++++++ .../apache/aurora/client/hooks/hooked_api.py | 16 +++++++++++ src/main/python/apache/aurora/client/options.py | 16 +++++++++++ src/main/python/apache/aurora/common/BUILD | 16 +++++++++++ .../apache/aurora/common/aurora_job_key.py | 16 +++++++++++ src/main/python/apache/aurora/common/auth/BUILD | 16 +++++++++++ .../apache/aurora/common/auth/__init__.py | 16 +++++++++++ .../apache/aurora/common/auth/auth_module.py | 16 +++++++++++ .../aurora/common/auth/auth_module_manager.py | 16 +++++++++++ src/main/python/apache/aurora/common/cluster.py | 16 +++++++++++ .../apache/aurora/common/cluster_option.py | 16 +++++++++++ .../python/apache/aurora/common/clusters.py | 16 +++++++++++ .../apache/aurora/common/http_signaler.py | 16 +++++++++++ src/main/python/apache/aurora/config/BUILD | 16 +++++++++++ .../python/apache/aurora/config/__init__.py | 16 +++++++++++ src/main/python/apache/aurora/config/loader.py | 16 +++++++++++ .../apache/aurora/config/port_resolver.py | 16 +++++++++++ src/main/python/apache/aurora/config/recipes.py | 16 +++++++++++ src/main/python/apache/aurora/config/repl.py | 16 +++++++++++ .../python/apache/aurora/config/schema/BUILD | 16 +++++++++++ .../python/apache/aurora/config/schema/base.py | 16 +++++++++++ src/main/python/apache/aurora/config/thrift.py | 16 +++++++++++ src/main/python/apache/aurora/executor/BUILD | 16 +++++++++++ .../python/apache/aurora/executor/__init__.py | 16 +++++++++++ .../python/apache/aurora/executor/bin/BUILD | 16 +++++++++++ .../aurora/executor/bin/gc_executor_main.py | 16 +++++++++++ .../executor/bin/thermos_executor_main.py | 16 +++++++++++ .../aurora/executor/bin/thermos_runner_main.py | 16 +++++++++++ .../python/apache/aurora/executor/common/BUILD | 16 +++++++++++ .../aurora/executor/common/executor_timeout.py | 16 +++++++++++ .../aurora/executor/common/health_checker.py | 16 +++++++++++ .../aurora/executor/common/kill_manager.py | 16 +++++++++++ .../apache/aurora/executor/common/sandbox.py | 16 +++++++++++ .../aurora/executor/common/status_checker.py | 16 +++++++++++ .../apache/aurora/executor/common/task_info.py | 16 +++++++++++ .../aurora/executor/common/task_runner.py | 16 +++++++++++ .../apache/aurora/executor/executor_base.py | 16 +++++++++++ .../apache/aurora/executor/executor_detector.py | 16 +++++++++++ .../apache/aurora/executor/executor_vars.py | 16 +++++++++++ .../apache/aurora/executor/gc_executor.py | 16 +++++++++++ .../apache/aurora/executor/status_manager.py | 16 +++++++++++ .../apache/aurora/executor/thermos_executor.py | 16 +++++++++++ .../apache/aurora/executor/thermos_runner.py | 16 +++++++++++ .../aurora/executor/thermos_task_runner.py | 16 +++++++++++ .../aurora/tools/java/organize_imports.py | 15 ++++++++++ .../aurora/tools/java/thrift_wrapper_codegen.py | 16 ++++++++++- src/main/python/apache/thermos/BUILD | 16 +++++++++++ src/main/python/apache/thermos/__init__.py | 16 +++++++++++ src/main/python/apache/thermos/bin/BUILD | 16 +++++++++++ src/main/python/apache/thermos/bin/thermos.py | 16 +++++++++++ .../python/apache/thermos/bin/thermos_ckpt.py | 16 +++++++++++ src/main/python/apache/thermos/common/BUILD | 16 +++++++++++ src/main/python/apache/thermos/common/ckpt.py | 16 +++++++++++ .../python/apache/thermos/common/options.py | 16 +++++++++++ src/main/python/apache/thermos/common/path.py | 16 +++++++++++ .../python/apache/thermos/common/planner.py | 16 +++++++++++ src/main/python/apache/thermos/config/BUILD | 16 +++++++++++ .../apache/thermos/config/bin/config_load.py | 16 +++++++++++ .../apache/thermos/config/bin/config_repl.py | 16 +++++++++++ src/main/python/apache/thermos/config/loader.py | 16 +++++++++++ src/main/python/apache/thermos/config/schema.py | 16 +++++++++++ .../python/apache/thermos/config/schema_base.py | 16 +++++++++++ .../apache/thermos/config/schema_helpers.py | 16 +++++++++++ src/main/python/apache/thermos/core/BUILD | 16 +++++++++++ src/main/python/apache/thermos/core/__init__.py | 16 +++++++++++ src/main/python/apache/thermos/core/helper.py | 16 +++++++++++ .../python/apache/thermos/core/inspector.py | 16 +++++++++++ src/main/python/apache/thermos/core/muxer.py | 16 +++++++++++ src/main/python/apache/thermos/core/process.py | 16 +++++++++++ src/main/python/apache/thermos/core/runner.py | 16 +++++++++++ src/main/python/apache/thermos/monitoring/BUILD | 16 +++++++++++ .../apache/thermos/monitoring/detector.py | 16 +++++++++++ .../python/apache/thermos/monitoring/disk.py | 16 +++++++++++ .../python/apache/thermos/monitoring/garbage.py | 16 +++++++++++ .../python/apache/thermos/monitoring/monitor.py | 16 +++++++++++ .../python/apache/thermos/monitoring/process.py | 16 +++++++++++ .../monitoring/process_collector_psutil.py | 16 +++++++++++ .../apache/thermos/monitoring/resource.py | 16 +++++++++++ src/main/python/apache/thermos/observer/BUILD | 16 +++++++++++ .../python/apache/thermos/observer/bin/BUILD | 16 +++++++++++ .../thermos/observer/bin/thermos_observer.py | 16 +++++++++++ .../python/apache/thermos/observer/http/BUILD | 16 +++++++++++ .../thermos/observer/http/file_browser.py | 16 +++++++++++ .../thermos/observer/http/http_observer.py | 16 +++++++++++ .../python/apache/thermos/observer/http/json.py | 16 +++++++++++ .../thermos/observer/http/static_assets.py | 16 +++++++++++ .../apache/thermos/observer/http/templating.py | 16 +++++++++++ .../apache/thermos/observer/observed_task.py | 16 +++++++++++ .../apache/thermos/observer/task_observer.py | 16 +++++++++++ src/main/python/apache/thermos/testing/BUILD | 16 +++++++++++ .../python/apache/thermos/testing/runner.py | 16 +++++++++++ src/main/thrift/org/apache/aurora/gen/BUILD | 6 ++-- .../thrift/org/apache/aurora/gen/api.thrift | 29 +++++++++++--------- .../org/apache/aurora/gen/internal_rpc.thrift | 29 +++++++++++--------- .../thrift/org/apache/aurora/gen/storage.thrift | 29 +++++++++++--------- .../org/apache/aurora/gen/storage_local.thrift | 29 +++++++++++--------- .../thrift/org/apache/aurora/gen/test.thrift | 29 +++++++++++--------- src/main/thrift/org/apache/thermos/BUILD | 16 +++++++++++ .../org/apache/thermos/thermos_internal.thrift | 16 +++++++++++ .../org/apache/aurora/scheduler/http/BUILD | 4 --- src/test/python/BUILD | 16 +++++++++++ src/test/python/apache/aurora/BUILD | 16 +++++++++++ src/test/python/apache/aurora/admin/BUILD | 16 +++++++++++ .../aurora/admin/test_mesos_maintenance.py | 16 +++++++++++ src/test/python/apache/aurora/client/BUILD | 16 +++++++++++ src/test/python/apache/aurora/client/api/BUILD | 16 +++++++++++ .../aurora/client/api/test_disambiguator.py | 16 +++++++++++ .../aurora/client/api/test_health_check.py | 16 +++++++++++ .../aurora/client/api/test_instance_watcher.py | 16 +++++++++++ .../aurora/client/api/test_job_monitor.py | 16 +++++++++++ .../aurora/client/api/test_quota_check.py | 16 +++++++++++ .../apache/aurora/client/api/test_restarter.py | 16 +++++++++++ .../aurora/client/api/test_scheduler_client.py | 16 +++++++++++ .../apache/aurora/client/api/test_updater.py | 16 +++++++++++ src/test/python/apache/aurora/client/cli/BUILD | 16 +++++++++++ .../apache/aurora/client/cli/test_create.py | 16 +++++++++++ .../apache/aurora/client/cli/test_diff.py | 16 +++++++++++ .../apache/aurora/client/cli/test_kill.py | 16 +++++++++++ .../apache/aurora/client/cli/test_status.py | 16 +++++++++++ .../python/apache/aurora/client/cli/util.py | 16 +++++++++++ .../python/apache/aurora/client/commands/BUILD | 16 +++++++++++ .../client/commands/test_cancel_update.py | 16 +++++++++++ .../aurora/client/commands/test_create.py | 16 +++++++++++ .../apache/aurora/client/commands/test_diff.py | 16 +++++++++++ .../apache/aurora/client/commands/test_kill.py | 16 +++++++++++ .../aurora/client/commands/test_listjobs.py | 16 +++++++++++ .../aurora/client/commands/test_restart.py | 16 +++++++++++ .../apache/aurora/client/commands/test_run.py | 16 +++++++++++ .../apache/aurora/client/commands/test_ssh.py | 16 +++++++++++ .../aurora/client/commands/test_status.py | 16 +++++++++++ .../aurora/client/commands/test_update.py | 16 +++++++++++ .../apache/aurora/client/commands/util.py | 16 +++++++++++ .../aurora/client/fake_scheduler_proxy.py | 16 +++++++++++ .../python/apache/aurora/client/hooks/BUILD | 16 +++++++++++ .../aurora/client/hooks/test_hooked_api.py | 16 +++++++++++ .../aurora/client/hooks/test_non_hooked_api.py | 16 +++++++++++ .../apache/aurora/client/test_binding_helper.py | 16 +++++++++++ .../python/apache/aurora/client/test_config.py | 16 +++++++++++ src/test/python/apache/aurora/common/BUILD | 16 +++++++++++ .../apache/aurora/common/test_aurora_job_key.py | 16 +++++++++++ .../python/apache/aurora/common/test_cluster.py | 16 +++++++++++ .../apache/aurora/common/test_cluster_option.py | 16 +++++++++++ .../apache/aurora/common/test_clusters.py | 16 +++++++++++ .../apache/aurora/common/test_http_signaler.py | 16 +++++++++++ src/test/python/apache/aurora/config/BUILD | 16 +++++++++++ .../python/apache/aurora/config/test_base.py | 16 +++++++++++ .../aurora/config/test_constraint_parsing.py | 16 +++++++++++ .../python/apache/aurora/config/test_loader.py | 16 +++++++++++ .../python/apache/aurora/config/test_thrift.py | 16 +++++++++++ src/test/python/apache/aurora/executor/BUILD | 16 +++++++++++ .../python/apache/aurora/executor/common/BUILD | 16 +++++++++++ .../executor/common/test_directory_sandbox.py | 16 +++++++++++ .../executor/common/test_health_checker.py | 16 +++++++++++ .../executor/common/test_status_checker.py | 16 +++++++++++ .../aurora/executor/common/test_task_info.py | 16 +++++++++++ .../aurora/executor/test_executor_builds.py | 16 +++++++++++ .../aurora/executor/test_executor_detector.py | 16 +++++++++++ .../aurora/executor/test_executor_vars.py | 16 +++++++++++ .../apache/aurora/executor/test_gc_executor.py | 16 +++++++++++ .../aurora/executor/test_thermos_executor.py | 16 +++++++++++ .../aurora/executor/test_thermos_task_runner.py | 16 +++++++++++ src/test/python/apache/thermos/BUILD | 16 +++++++++++ src/test/python/apache/thermos/bin/BUILD | 16 +++++++++++ .../python/apache/thermos/bin/test_thermos.py | 16 +++++++++++ src/test/python/apache/thermos/common/BUILD | 16 +++++++++++ .../apache/thermos/common/test_pathspec.py | 16 +++++++++++ .../apache/thermos/common/test_planner.py | 16 +++++++++++ .../apache/thermos/common/test_task_planner.py | 16 +++++++++++ src/test/python/apache/thermos/config/BUILD | 16 +++++++++++ .../python/apache/thermos/config/test_schema.py | 16 +++++++++++ src/test/python/apache/thermos/core/BUILD | 16 +++++++++++ .../python/apache/thermos/core/test_angry.py | 16 +++++++++++ .../apache/thermos/core/test_ephemerals.py | 16 +++++++++++ .../apache/thermos/core/test_failing_runner.py | 16 +++++++++++ .../apache/thermos/core/test_failure_limit.py | 16 +++++++++++ .../apache/thermos/core/test_finalization.py | 16 +++++++++++ .../python/apache/thermos/core/test_helper.py | 16 +++++++++++ .../python/apache/thermos/core/test_process.py | 16 +++++++++++ .../thermos/core/test_runner_integration.py | 16 +++++++++++ .../apache/thermos/core/test_staged_kill.py | 16 +++++++++++ src/test/python/apache/thermos/monitoring/BUILD | 16 +++++++++++ .../apache/thermos/monitoring/test_disk.py | 16 +++++++++++ .../org/apache/aurora/gen/api.thrift.md5 | 2 +- .../apache/aurora/gen/internal_rpc.thrift.md5 | 2 +- .../org/apache/aurora/gen/storage.thrift.md5 | 2 +- .../apache/aurora/gen/storage_local.thrift.md5 | 2 +- .../org/apache/aurora/gen/test.thrift.md5 | 2 +- .../apache/thermos/thermos_internal.thrift.md5 | 2 +- .../org/apache/aurora/verify_thrift_checksum.sh | 15 ++++++++++ 234 files changed, 3600 insertions(+), 98 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/d7a82dc4/README.md ---------------------------------------------------------------------- diff --git a/README.md b/README.md index 45802a7..82096f6 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ -Apache Aurora is a service scheduler that runs on top of Mesos, enabling -you to run long-running services that take advantage of Mesos' scalability, -fault-tolerance, and resource isolation. Apache Aurora is currently -a part of the Apache Incubator. +Apache Aurora is a service scheduler that runs on top of Apache Mesos, enabling +you to run long-running services that take advantage of Apache Mesos' +scalability, fault-tolerance, and resource isolation. Apache Aurora is +currently a part of the Apache Incubator. Getting Started --------------- http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/d7a82dc4/Vagrantfile ---------------------------------------------------------------------- diff --git a/Vagrantfile b/Vagrantfile index d31b593..98dcf43 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -1,5 +1,20 @@ # -*- mode: ruby -*- # vi: set ft=ruby : +# +# Copyright 2013 Apache Software Foundation +# +# Licensed under the Apache License, Version 2.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. +# # Vagrantfile API/syntax version. Don't touch unless you know what you're doing! VAGRANTFILE_API_VERSION = "2" http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/d7a82dc4/build-support/jenkins/build.sh ---------------------------------------------------------------------- diff --git a/build-support/jenkins/build.sh b/build-support/jenkins/build.sh index 41e0135..f6f4940 100755 --- a/build-support/jenkins/build.sh +++ b/build-support/jenkins/build.sh @@ -1,21 +1,18 @@ #!/usr/bin/env bash # -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at +# Copyright 2013 Apache Software Foundation # -# http://www.apache.org/licenses/LICENSE-2.0 +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at # -# 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. +# 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. # # Jenkins build script used with builds at http://builds.apache.org http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/d7a82dc4/build.gradle ---------------------------------------------------------------------- diff --git a/build.gradle b/build.gradle index becc377..00cabb0 100644 --- a/build.gradle +++ b/build.gradle @@ -1,3 +1,19 @@ +/* + * Copyright 2013 Apache Software Foundation + * + * Licensed under the Apache License, Version 2.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. + */ + apply plugin: 'about' apply plugin: 'application' apply plugin: 'checkstyle' http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/d7a82dc4/gradlew ---------------------------------------------------------------------- diff --git a/gradlew b/gradlew index 91a7e26..b6fd132 100755 --- a/gradlew +++ b/gradlew @@ -1,5 +1,19 @@ #!/usr/bin/env bash - +# +# Copyright 2013 Apache Software Foundation +# +# Licensed under the Apache License, Version 2.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. +# ############################################################################## ## ## Gradle start up script for UN*X http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/d7a82dc4/pants ---------------------------------------------------------------------- diff --git a/pants b/pants index 2772c64..229e201 100755 --- a/pants +++ b/pants @@ -1,5 +1,19 @@ #!/usr/bin/env bash - +# +# Copyright 2013 Apache Software Foundation +# +# Licensed under the Apache License, Version 2.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. +# PANTS_ROOT=$(dirname "$0") PANTS_VERSION=$(cat "$PANTS_ROOT/.pantsversion") http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/d7a82dc4/pants.ini ---------------------------------------------------------------------- diff --git a/pants.ini b/pants.ini index 452213d..5e85d50 100644 --- a/pants.ini +++ b/pants.ini @@ -1,3 +1,18 @@ +# +# Copyright 2013 Apache Software Foundation +# +# Licensed under the Apache License, Version 2.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. +# # pants_workdir, pants_supportdir, pants_distdir, buildroot, homedir and user # are seeded in the config http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/d7a82dc4/rbt ---------------------------------------------------------------------- diff --git a/rbt b/rbt index a1774df..a05476d 100755 --- a/rbt +++ b/rbt @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# +# Copyright 2013 Apache Software Foundation +# +# Licensed under the Apache License, Version 2.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. +# # Wrapper script for self-bootstrapping rbt. set -e http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/d7a82dc4/src/main/python/apache/__init__.py ---------------------------------------------------------------------- diff --git a/src/main/python/apache/__init__.py b/src/main/python/apache/__init__.py index de40ea7..6cfe8d6 100644 --- a/src/main/python/apache/__init__.py +++ b/src/main/python/apache/__init__.py @@ -1 +1,17 @@ +# +# Copyright 2013 Apache Software Foundation +# +# Licensed under the Apache License, Version 2.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__('pkg_resources').declare_namespace(__name__) http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/d7a82dc4/src/main/python/apache/aurora/__init__.py ---------------------------------------------------------------------- diff --git a/src/main/python/apache/aurora/__init__.py b/src/main/python/apache/aurora/__init__.py index b0d6433..d54d88c 100644 --- a/src/main/python/apache/aurora/__init__.py +++ b/src/main/python/apache/aurora/__init__.py @@ -1 +1,17 @@ +# +# Copyright 2013 Apache Software Foundation +# +# Licensed under the Apache License, Version 2.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__('pkg_resources').declare_namespace(__name__) \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/d7a82dc4/src/main/python/apache/aurora/admin/BUILD ---------------------------------------------------------------------- diff --git a/src/main/python/apache/aurora/admin/BUILD b/src/main/python/apache/aurora/admin/BUILD index 8560990..530b0cb 100644 --- a/src/main/python/apache/aurora/admin/BUILD +++ b/src/main/python/apache/aurora/admin/BUILD @@ -1,3 +1,19 @@ +# +# Copyright 2013 Apache Software Foundation +# +# Licensed under the Apache License, Version 2.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. +# + python_library( name = 'mesos_maintenance', sources = 'mesos_maintenance.py', http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/d7a82dc4/src/main/python/apache/aurora/admin/mesos_maintenance.py ---------------------------------------------------------------------- diff --git a/src/main/python/apache/aurora/admin/mesos_maintenance.py b/src/main/python/apache/aurora/admin/mesos_maintenance.py index c2c251c..ab5e912 100644 --- a/src/main/python/apache/aurora/admin/mesos_maintenance.py +++ b/src/main/python/apache/aurora/admin/mesos_maintenance.py @@ -1,3 +1,19 @@ +# +# Copyright 2013 Apache Software Foundation +# +# Licensed under the Apache License, Version 2.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 collections import defaultdict import time http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/d7a82dc4/src/main/python/apache/aurora/client/BUILD ---------------------------------------------------------------------- diff --git a/src/main/python/apache/aurora/client/BUILD b/src/main/python/apache/aurora/client/BUILD index a603ee5..1c967a5 100644 --- a/src/main/python/apache/aurora/client/BUILD +++ b/src/main/python/apache/aurora/client/BUILD @@ -1,3 +1,19 @@ +# +# Copyright 2013 Apache Software Foundation +# +# Licensed under the Apache License, Version 2.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 os # Create an alias for the previous target http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/d7a82dc4/src/main/python/apache/aurora/client/__init__.py ---------------------------------------------------------------------- diff --git a/src/main/python/apache/aurora/client/__init__.py b/src/main/python/apache/aurora/client/__init__.py index b0d6433..d54d88c 100644 --- a/src/main/python/apache/aurora/client/__init__.py +++ b/src/main/python/apache/aurora/client/__init__.py @@ -1 +1,17 @@ +# +# Copyright 2013 Apache Software Foundation +# +# Licensed under the Apache License, Version 2.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__('pkg_resources').declare_namespace(__name__) \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/d7a82dc4/src/main/python/apache/aurora/client/api/BUILD ---------------------------------------------------------------------- diff --git a/src/main/python/apache/aurora/client/api/BUILD b/src/main/python/apache/aurora/client/api/BUILD index f0f57e0..358205e 100644 --- a/src/main/python/apache/aurora/client/api/BUILD +++ b/src/main/python/apache/aurora/client/api/BUILD @@ -1,3 +1,19 @@ +# +# Copyright 2013 Apache Software Foundation +# +# Licensed under the Apache License, Version 2.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. +# + python_library( name = 'api', sources = ['__init__.py'], http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/d7a82dc4/src/main/python/apache/aurora/client/api/__init__.py ---------------------------------------------------------------------- diff --git a/src/main/python/apache/aurora/client/api/__init__.py b/src/main/python/apache/aurora/client/api/__init__.py index f476f67..f829003 100644 --- a/src/main/python/apache/aurora/client/api/__init__.py +++ b/src/main/python/apache/aurora/client/api/__init__.py @@ -1,3 +1,19 @@ +# +# Copyright 2013 Apache Software Foundation +# +# Licensed under the Apache License, Version 2.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 twitter.common import log from apache.aurora.common.aurora_job_key import AuroraJobKey http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/d7a82dc4/src/main/python/apache/aurora/client/api/command_runner.py ---------------------------------------------------------------------- diff --git a/src/main/python/apache/aurora/client/api/command_runner.py b/src/main/python/apache/aurora/client/api/command_runner.py index dda7424..c645e95 100644 --- a/src/main/python/apache/aurora/client/api/command_runner.py +++ b/src/main/python/apache/aurora/client/api/command_runner.py @@ -1,3 +1,19 @@ +# +# Copyright 2013 Apache Software Foundation +# +# Licensed under the Apache License, Version 2.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 multiprocessing.pool import ThreadPool import posixpath import subprocess http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/d7a82dc4/src/main/python/apache/aurora/client/api/disambiguator.py ---------------------------------------------------------------------- diff --git a/src/main/python/apache/aurora/client/api/disambiguator.py b/src/main/python/apache/aurora/client/api/disambiguator.py index c3241de..d163a18 100644 --- a/src/main/python/apache/aurora/client/api/disambiguator.py +++ b/src/main/python/apache/aurora/client/api/disambiguator.py @@ -1,3 +1,19 @@ +# +# Copyright 2013 Apache Software Foundation +# +# Licensed under the Apache License, Version 2.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 twitter.common import log from apache.aurora.client.api import AuroraClientAPI http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/d7a82dc4/src/main/python/apache/aurora/client/api/health_check.py ---------------------------------------------------------------------- diff --git a/src/main/python/apache/aurora/client/api/health_check.py b/src/main/python/apache/aurora/client/api/health_check.py index 20a7cb1..bd2bcaa 100644 --- a/src/main/python/apache/aurora/client/api/health_check.py +++ b/src/main/python/apache/aurora/client/api/health_check.py @@ -1,3 +1,19 @@ +# +# Copyright 2013 Apache Software Foundation +# +# Licensed under the Apache License, Version 2.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 abc import abstractmethod from twitter.common import log http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/d7a82dc4/src/main/python/apache/aurora/client/api/instance_watcher.py ---------------------------------------------------------------------- diff --git a/src/main/python/apache/aurora/client/api/instance_watcher.py b/src/main/python/apache/aurora/client/api/instance_watcher.py index 4043948..dcfae5a 100644 --- a/src/main/python/apache/aurora/client/api/instance_watcher.py +++ b/src/main/python/apache/aurora/client/api/instance_watcher.py @@ -1,3 +1,19 @@ +# +# Copyright 2013 Apache Software Foundation +# +# Licensed under the Apache License, Version 2.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 time from twitter.common import log http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/d7a82dc4/src/main/python/apache/aurora/client/api/job_monitor.py ---------------------------------------------------------------------- diff --git a/src/main/python/apache/aurora/client/api/job_monitor.py b/src/main/python/apache/aurora/client/api/job_monitor.py index 3aba215..2ca417b 100644 --- a/src/main/python/apache/aurora/client/api/job_monitor.py +++ b/src/main/python/apache/aurora/client/api/job_monitor.py @@ -1,3 +1,19 @@ +# +# Copyright 2013 Apache Software Foundation +# +# Licensed under the Apache License, Version 2.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 time from twitter.common.quantity import Amount, Time http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/d7a82dc4/src/main/python/apache/aurora/client/api/quota_check.py ---------------------------------------------------------------------- diff --git a/src/main/python/apache/aurora/client/api/quota_check.py b/src/main/python/apache/aurora/client/api/quota_check.py index 00f76d9..46701f2 100644 --- a/src/main/python/apache/aurora/client/api/quota_check.py +++ b/src/main/python/apache/aurora/client/api/quota_check.py @@ -1,3 +1,19 @@ +# +# Copyright 2013 Apache Software Foundation +# +# Licensed under the Apache License, Version 2.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 operator from copy import deepcopy http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/d7a82dc4/src/main/python/apache/aurora/client/api/restarter.py ---------------------------------------------------------------------- diff --git a/src/main/python/apache/aurora/client/api/restarter.py b/src/main/python/apache/aurora/client/api/restarter.py index bd62a60..9a1fcdc 100644 --- a/src/main/python/apache/aurora/client/api/restarter.py +++ b/src/main/python/apache/aurora/client/api/restarter.py @@ -1,3 +1,19 @@ +# +# Copyright 2013 Apache Software Foundation +# +# Licensed under the Apache License, Version 2.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 twitter.common import log from gen.apache.aurora.constants import ACTIVE_STATES http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/d7a82dc4/src/main/python/apache/aurora/client/api/scheduler_client.py ---------------------------------------------------------------------- diff --git a/src/main/python/apache/aurora/client/api/scheduler_client.py b/src/main/python/apache/aurora/client/api/scheduler_client.py index 349634a..18f9790 100644 --- a/src/main/python/apache/aurora/client/api/scheduler_client.py +++ b/src/main/python/apache/aurora/client/api/scheduler_client.py @@ -1,3 +1,19 @@ +# +# Copyright 2013 Apache Software Foundation +# +# Licensed under the Apache License, Version 2.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 functools import threading import time http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/d7a82dc4/src/main/python/apache/aurora/client/api/updater.py ---------------------------------------------------------------------- diff --git a/src/main/python/apache/aurora/client/api/updater.py b/src/main/python/apache/aurora/client/api/updater.py index c915a7d..61e5737 100644 --- a/src/main/python/apache/aurora/client/api/updater.py +++ b/src/main/python/apache/aurora/client/api/updater.py @@ -1,3 +1,19 @@ +# +# Copyright 2013 Apache Software Foundation +# +# Licensed under the Apache License, Version 2.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 json from collections import namedtuple from difflib import unified_diff http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/d7a82dc4/src/main/python/apache/aurora/client/api/updater_util.py ---------------------------------------------------------------------- diff --git a/src/main/python/apache/aurora/client/api/updater_util.py b/src/main/python/apache/aurora/client/api/updater_util.py index db9f053..623b0c0 100644 --- a/src/main/python/apache/aurora/client/api/updater_util.py +++ b/src/main/python/apache/aurora/client/api/updater_util.py @@ -1,3 +1,19 @@ +# +# Copyright 2013 Apache Software Foundation +# +# Licensed under the Apache License, Version 2.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 collections from twitter.common import log http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/d7a82dc4/src/main/python/apache/aurora/client/base.py ---------------------------------------------------------------------- diff --git a/src/main/python/apache/aurora/client/base.py b/src/main/python/apache/aurora/client/base.py index ed5737d..3ccbcf3 100644 --- a/src/main/python/apache/aurora/client/base.py +++ b/src/main/python/apache/aurora/client/base.py @@ -1,3 +1,19 @@ +# +# Copyright 2013 Apache Software Foundation +# +# Licensed under the Apache License, Version 2.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 collections import defaultdict import functools import sys http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/d7a82dc4/src/main/python/apache/aurora/client/bin/BUILD ---------------------------------------------------------------------- diff --git a/src/main/python/apache/aurora/client/bin/BUILD b/src/main/python/apache/aurora/client/bin/BUILD index 4561155..46695b4 100644 --- a/src/main/python/apache/aurora/client/bin/BUILD +++ b/src/main/python/apache/aurora/client/bin/BUILD @@ -1,3 +1,19 @@ +# +# Copyright 2013 Apache Software Foundation +# +# Licensed under the Apache License, Version 2.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. +# + python_binary( name = 'aurora_client', source = 'aurora_client.py', http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/d7a82dc4/src/main/python/apache/aurora/client/bin/aurora_admin.py ---------------------------------------------------------------------- diff --git a/src/main/python/apache/aurora/client/bin/aurora_admin.py b/src/main/python/apache/aurora/client/bin/aurora_admin.py index 7b59bbd..efbbb6f 100644 --- a/src/main/python/apache/aurora/client/bin/aurora_admin.py +++ b/src/main/python/apache/aurora/client/bin/aurora_admin.py @@ -1,3 +1,19 @@ +# +# Copyright 2013 Apache Software Foundation +# +# Licensed under the Apache License, Version 2.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 apache.aurora.client.base import generate_terse_usage from apache.aurora.client.commands import admin, help from apache.aurora.client.options import add_verbosity_options http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/d7a82dc4/src/main/python/apache/aurora/client/bin/aurora_client.py ---------------------------------------------------------------------- diff --git a/src/main/python/apache/aurora/client/bin/aurora_client.py b/src/main/python/apache/aurora/client/bin/aurora_client.py index 1523912..fa8b514 100644 --- a/src/main/python/apache/aurora/client/bin/aurora_client.py +++ b/src/main/python/apache/aurora/client/bin/aurora_client.py @@ -1,3 +1,19 @@ +# +# Copyright 2013 Apache Software Foundation +# +# Licensed under the Apache License, Version 2.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 apache.aurora.client.base import generate_terse_usage from twitter.common import app from twitter.common.log.options import LogOptions http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/d7a82dc4/src/main/python/apache/aurora/client/binding_helper.py ---------------------------------------------------------------------- diff --git a/src/main/python/apache/aurora/client/binding_helper.py b/src/main/python/apache/aurora/client/binding_helper.py index fa03b17..d1b2821 100644 --- a/src/main/python/apache/aurora/client/binding_helper.py +++ b/src/main/python/apache/aurora/client/binding_helper.py @@ -1,3 +1,19 @@ +# +# Copyright 2013 Apache Software Foundation +# +# Licensed under the Apache License, Version 2.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 abc import abstractmethod, abstractproperty import inspect import os http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/d7a82dc4/src/main/python/apache/aurora/client/cli/BUILD ---------------------------------------------------------------------- diff --git a/src/main/python/apache/aurora/client/cli/BUILD b/src/main/python/apache/aurora/client/cli/BUILD index f18c1cd..8828c1e 100644 --- a/src/main/python/apache/aurora/client/cli/BUILD +++ b/src/main/python/apache/aurora/client/cli/BUILD @@ -1,3 +1,18 @@ +# +# Copyright 2013 Apache Software Foundation +# +# Licensed under the Apache License, Version 2.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. +# python_binary( name='client', http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/d7a82dc4/src/main/python/apache/aurora/client/cli/__init__.py ---------------------------------------------------------------------- diff --git a/src/main/python/apache/aurora/client/cli/__init__.py b/src/main/python/apache/aurora/client/cli/__init__.py index 1df0d9b..20ecbcf 100644 --- a/src/main/python/apache/aurora/client/cli/__init__.py +++ b/src/main/python/apache/aurora/client/cli/__init__.py @@ -1,3 +1,19 @@ +# +# Copyright 2013 Apache Software Foundation +# +# Licensed under the Apache License, Version 2.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. +# + '''Command-line tooling infrastructure for aurora client v2. This provides a framework for a noun/verb command-line application. The application is structured http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/d7a82dc4/src/main/python/apache/aurora/client/cli/context.py ---------------------------------------------------------------------- diff --git a/src/main/python/apache/aurora/client/cli/context.py b/src/main/python/apache/aurora/client/cli/context.py index be156bb..78e54a2 100644 --- a/src/main/python/apache/aurora/client/cli/context.py +++ b/src/main/python/apache/aurora/client/cli/context.py @@ -1,3 +1,19 @@ +# +# Copyright 2013 Apache Software Foundation +# +# Licensed under the Apache License, Version 2.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 __future__ import print_function from collections import namedtuple from fnmatch import fnmatch http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/d7a82dc4/src/main/python/apache/aurora/client/cli/jobs.py ---------------------------------------------------------------------- diff --git a/src/main/python/apache/aurora/client/cli/jobs.py b/src/main/python/apache/aurora/client/cli/jobs.py index c519e3c..f60d7e9 100644 --- a/src/main/python/apache/aurora/client/cli/jobs.py +++ b/src/main/python/apache/aurora/client/cli/jobs.py @@ -1,3 +1,19 @@ +# +# Copyright 2013 Apache Software Foundation +# +# Licensed under the Apache License, Version 2.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 __future__ import print_function from datetime import datetime import json http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/d7a82dc4/src/main/python/apache/aurora/client/cli/options.py ---------------------------------------------------------------------- diff --git a/src/main/python/apache/aurora/client/cli/options.py b/src/main/python/apache/aurora/client/cli/options.py index 0aaf880..1b71554 100644 --- a/src/main/python/apache/aurora/client/cli/options.py +++ b/src/main/python/apache/aurora/client/cli/options.py @@ -1,3 +1,19 @@ +# +# Copyright 2013 Apache Software Foundation +# +# Licensed under the Apache License, Version 2.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 apache.aurora.client.cli import CommandOption from apache.aurora.common.aurora_job_key import AuroraJobKey http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/d7a82dc4/src/main/python/apache/aurora/client/commands/BUILD ---------------------------------------------------------------------- diff --git a/src/main/python/apache/aurora/client/commands/BUILD b/src/main/python/apache/aurora/client/commands/BUILD index 6b4660b..e2322b8 100644 --- a/src/main/python/apache/aurora/client/commands/BUILD +++ b/src/main/python/apache/aurora/client/commands/BUILD @@ -1,3 +1,19 @@ +# +# Copyright 2013 Apache Software Foundation +# +# Licensed under the Apache License, Version 2.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. +# + python_library( name = 'all', dependencies = [ http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/d7a82dc4/src/main/python/apache/aurora/client/commands/admin.py ---------------------------------------------------------------------- diff --git a/src/main/python/apache/aurora/client/commands/admin.py b/src/main/python/apache/aurora/client/commands/admin.py index 68c15c7..063c002 100644 --- a/src/main/python/apache/aurora/client/commands/admin.py +++ b/src/main/python/apache/aurora/client/commands/admin.py @@ -1,3 +1,19 @@ +# +# Copyright 2013 Apache Software Foundation +# +# Licensed under the Apache License, Version 2.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 __future__ import print_function """Command-line client for managing admin-only interactions with the aurora scheduler. http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/d7a82dc4/src/main/python/apache/aurora/client/commands/core.py ---------------------------------------------------------------------- diff --git a/src/main/python/apache/aurora/client/commands/core.py b/src/main/python/apache/aurora/client/commands/core.py index b70136b..13657c4 100644 --- a/src/main/python/apache/aurora/client/commands/core.py +++ b/src/main/python/apache/aurora/client/commands/core.py @@ -1,3 +1,19 @@ +# +# Copyright 2013 Apache Software Foundation +# +# Licensed under the Apache License, Version 2.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. +# + """Command-line client for managing jobs with the Aurora scheduler. """ http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/d7a82dc4/src/main/python/apache/aurora/client/commands/help.py ---------------------------------------------------------------------- diff --git a/src/main/python/apache/aurora/client/commands/help.py b/src/main/python/apache/aurora/client/commands/help.py index 20823b4..29002c6 100644 --- a/src/main/python/apache/aurora/client/commands/help.py +++ b/src/main/python/apache/aurora/client/commands/help.py @@ -1,3 +1,19 @@ +# +# Copyright 2013 Apache Software Foundation +# +# Licensed under the Apache License, Version 2.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 __future__ import print_function import collections http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/d7a82dc4/src/main/python/apache/aurora/client/commands/run.py ---------------------------------------------------------------------- diff --git a/src/main/python/apache/aurora/client/commands/run.py b/src/main/python/apache/aurora/client/commands/run.py index 60f127c..0725999 100644 --- a/src/main/python/apache/aurora/client/commands/run.py +++ b/src/main/python/apache/aurora/client/commands/run.py @@ -1,3 +1,19 @@ +# +# Copyright 2013 Apache Software Foundation +# +# Licensed under the Apache License, Version 2.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 twitter.common import app from apache.aurora.client.base import die from apache.aurora.client.options import ( http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/d7a82dc4/src/main/python/apache/aurora/client/commands/ssh.py ---------------------------------------------------------------------- diff --git a/src/main/python/apache/aurora/client/commands/ssh.py b/src/main/python/apache/aurora/client/commands/ssh.py index 7aa767f..4ccf7f5 100644 --- a/src/main/python/apache/aurora/client/commands/ssh.py +++ b/src/main/python/apache/aurora/client/commands/ssh.py @@ -1,3 +1,19 @@ +# +# Copyright 2013 Apache Software Foundation +# +# Licensed under the Apache License, Version 2.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 subprocess from twitter.common import app http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/d7a82dc4/src/main/python/apache/aurora/client/config.py ---------------------------------------------------------------------- diff --git a/src/main/python/apache/aurora/client/config.py b/src/main/python/apache/aurora/client/config.py index 2a78f42..d96376a 100644 --- a/src/main/python/apache/aurora/client/config.py +++ b/src/main/python/apache/aurora/client/config.py @@ -1,3 +1,19 @@ +# +# Copyright 2013 Apache Software Foundation +# +# Licensed under the Apache License, Version 2.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. +# + '''Library of utilities called by the mesos client binary ''' http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/d7a82dc4/src/main/python/apache/aurora/client/factory.py ---------------------------------------------------------------------- diff --git a/src/main/python/apache/aurora/client/factory.py b/src/main/python/apache/aurora/client/factory.py index e64c1a7..6635ec0 100644 --- a/src/main/python/apache/aurora/client/factory.py +++ b/src/main/python/apache/aurora/client/factory.py @@ -1,3 +1,19 @@ +# +# Copyright 2013 Apache Software Foundation +# +# Licensed under the Apache License, Version 2.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 functools from apache.aurora.client.hooks.hooked_api import HookedAuroraClientAPI http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/d7a82dc4/src/main/python/apache/aurora/client/hooks/BUILD ---------------------------------------------------------------------- diff --git a/src/main/python/apache/aurora/client/hooks/BUILD b/src/main/python/apache/aurora/client/hooks/BUILD index 3feb81b..d181f52 100644 --- a/src/main/python/apache/aurora/client/hooks/BUILD +++ b/src/main/python/apache/aurora/client/hooks/BUILD @@ -1,3 +1,19 @@ +# +# Copyright 2013 Apache Software Foundation +# +# Licensed under the Apache License, Version 2.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. +# + python_library( name = 'hooks', sources = ['__init__.py', 'hooked_api.py'], http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/d7a82dc4/src/main/python/apache/aurora/client/hooks/__init__.py ---------------------------------------------------------------------- diff --git a/src/main/python/apache/aurora/client/hooks/__init__.py b/src/main/python/apache/aurora/client/hooks/__init__.py index 3091f67..e89b38a 100644 --- a/src/main/python/apache/aurora/client/hooks/__init__.py +++ b/src/main/python/apache/aurora/client/hooks/__init__.py @@ -1,3 +1,19 @@ +# +# Copyright 2013 Apache Software Foundation +# +# Licensed under the Apache License, Version 2.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. +# + """ A hooks implementation for the Aurora client. http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/d7a82dc4/src/main/python/apache/aurora/client/hooks/hooked_api.py ---------------------------------------------------------------------- diff --git a/src/main/python/apache/aurora/client/hooks/hooked_api.py b/src/main/python/apache/aurora/client/hooks/hooked_api.py index da71af4..532f385 100644 --- a/src/main/python/apache/aurora/client/hooks/hooked_api.py +++ b/src/main/python/apache/aurora/client/hooks/hooked_api.py @@ -1,3 +1,19 @@ +# +# Copyright 2013 Apache Software Foundation +# +# Licensed under the Apache License, Version 2.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 functools import traceback http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/d7a82dc4/src/main/python/apache/aurora/client/options.py ---------------------------------------------------------------------- diff --git a/src/main/python/apache/aurora/client/options.py b/src/main/python/apache/aurora/client/options.py index f398748..4e53b07 100644 --- a/src/main/python/apache/aurora/client/options.py +++ b/src/main/python/apache/aurora/client/options.py @@ -1,3 +1,19 @@ +# +# Copyright 2013 Apache Software Foundation +# +# Licensed under the Apache License, Version 2.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 optparse from apache.aurora.common.aurora_job_key import AuroraJobKey http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/d7a82dc4/src/main/python/apache/aurora/common/BUILD ---------------------------------------------------------------------- diff --git a/src/main/python/apache/aurora/common/BUILD b/src/main/python/apache/aurora/common/BUILD index ae0f407..860667e 100644 --- a/src/main/python/apache/aurora/common/BUILD +++ b/src/main/python/apache/aurora/common/BUILD @@ -1,3 +1,19 @@ +# +# Copyright 2013 Apache Software Foundation +# +# Licensed under the Apache License, Version 2.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 os python_library( http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/d7a82dc4/src/main/python/apache/aurora/common/aurora_job_key.py ---------------------------------------------------------------------- diff --git a/src/main/python/apache/aurora/common/aurora_job_key.py b/src/main/python/apache/aurora/common/aurora_job_key.py index 70b5eb4..4ab6b39 100644 --- a/src/main/python/apache/aurora/common/aurora_job_key.py +++ b/src/main/python/apache/aurora/common/aurora_job_key.py @@ -1,3 +1,19 @@ +# +# Copyright 2013 Apache Software Foundation +# +# Licensed under the Apache License, Version 2.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 re from twitter.common.lang import Compatibility, total_ordering http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/d7a82dc4/src/main/python/apache/aurora/common/auth/BUILD ---------------------------------------------------------------------- diff --git a/src/main/python/apache/aurora/common/auth/BUILD b/src/main/python/apache/aurora/common/auth/BUILD index 277620b..bd47654 100644 --- a/src/main/python/apache/aurora/common/auth/BUILD +++ b/src/main/python/apache/aurora/common/auth/BUILD @@ -1,3 +1,19 @@ +# +# Copyright 2013 Apache Software Foundation +# +# Licensed under the Apache License, Version 2.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. +# + python_library( name = 'auth', sources = globs('*.py'), http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/d7a82dc4/src/main/python/apache/aurora/common/auth/__init__.py ---------------------------------------------------------------------- diff --git a/src/main/python/apache/aurora/common/auth/__init__.py b/src/main/python/apache/aurora/common/auth/__init__.py index 5418228..c8b8e03 100644 --- a/src/main/python/apache/aurora/common/auth/__init__.py +++ b/src/main/python/apache/aurora/common/auth/__init__.py @@ -1,2 +1,18 @@ +# +# Copyright 2013 Apache Software Foundation +# +# Licensed under the Apache License, Version 2.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 .auth_module_manager import make_session_key, register_auth_module, SessionKeyError from .auth_module import AuthModule, InsecureAuthModule http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/d7a82dc4/src/main/python/apache/aurora/common/auth/auth_module.py ---------------------------------------------------------------------- diff --git a/src/main/python/apache/aurora/common/auth/auth_module.py b/src/main/python/apache/aurora/common/auth/auth_module.py index 0061a30..c055036 100644 --- a/src/main/python/apache/aurora/common/auth/auth_module.py +++ b/src/main/python/apache/aurora/common/auth/auth_module.py @@ -1,3 +1,19 @@ +# +# Copyright 2013 Apache Software Foundation +# +# Licensed under the Apache License, Version 2.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 abc import abstractmethod, abstractproperty import getpass http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/d7a82dc4/src/main/python/apache/aurora/common/auth/auth_module_manager.py ---------------------------------------------------------------------- diff --git a/src/main/python/apache/aurora/common/auth/auth_module_manager.py b/src/main/python/apache/aurora/common/auth/auth_module_manager.py index a025c6b..53b2a31 100644 --- a/src/main/python/apache/aurora/common/auth/auth_module_manager.py +++ b/src/main/python/apache/aurora/common/auth/auth_module_manager.py @@ -1,3 +1,19 @@ +# +# Copyright 2013 Apache Software Foundation +# +# Licensed under the Apache License, Version 2.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 twitter.common import log from gen.apache.aurora.ttypes import SessionKey http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/d7a82dc4/src/main/python/apache/aurora/common/cluster.py ---------------------------------------------------------------------- diff --git a/src/main/python/apache/aurora/common/cluster.py b/src/main/python/apache/aurora/common/cluster.py index 21d8ac3..d6a8fda 100644 --- a/src/main/python/apache/aurora/common/cluster.py +++ b/src/main/python/apache/aurora/common/cluster.py @@ -1,3 +1,19 @@ +# +# Copyright 2013 Apache Software Foundation +# +# Licensed under the Apache License, Version 2.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 pystachio import Empty, Struct from pystachio.composite import Structural http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/d7a82dc4/src/main/python/apache/aurora/common/cluster_option.py ---------------------------------------------------------------------- diff --git a/src/main/python/apache/aurora/common/cluster_option.py b/src/main/python/apache/aurora/common/cluster_option.py index 3e07476..4bc8482 100644 --- a/src/main/python/apache/aurora/common/cluster_option.py +++ b/src/main/python/apache/aurora/common/cluster_option.py @@ -1,3 +1,19 @@ +# +# Copyright 2013 Apache Software Foundation +# +# Licensed under the Apache License, Version 2.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 copy import copy from optparse import ( NO_DEFAULT, http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/d7a82dc4/src/main/python/apache/aurora/common/clusters.py ---------------------------------------------------------------------- diff --git a/src/main/python/apache/aurora/common/clusters.py b/src/main/python/apache/aurora/common/clusters.py index 2777569..aab7fb6 100644 --- a/src/main/python/apache/aurora/common/clusters.py +++ b/src/main/python/apache/aurora/common/clusters.py @@ -1,3 +1,19 @@ +# +# Copyright 2013 Apache Software Foundation +# +# Licensed under the Apache License, Version 2.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 __future__ import print_function from collections import Mapping, namedtuple http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/d7a82dc4/src/main/python/apache/aurora/common/http_signaler.py ---------------------------------------------------------------------- diff --git a/src/main/python/apache/aurora/common/http_signaler.py b/src/main/python/apache/aurora/common/http_signaler.py index 778ddc4..b19b72d 100644 --- a/src/main/python/apache/aurora/common/http_signaler.py +++ b/src/main/python/apache/aurora/common/http_signaler.py @@ -1,3 +1,19 @@ +# +# Copyright 2013 Apache Software Foundation +# +# Licensed under the Apache License, Version 2.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 contextlib from socket import timeout as SocketTimeout import sys http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/d7a82dc4/src/main/python/apache/aurora/config/BUILD ---------------------------------------------------------------------- diff --git a/src/main/python/apache/aurora/config/BUILD b/src/main/python/apache/aurora/config/BUILD index a666f0f..39df20f 100644 --- a/src/main/python/apache/aurora/config/BUILD +++ b/src/main/python/apache/aurora/config/BUILD @@ -1,3 +1,19 @@ +# +# Copyright 2013 Apache Software Foundation +# +# Licensed under the Apache License, Version 2.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 os # Alias for src/main/python/apache/aurora/config/schema http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/d7a82dc4/src/main/python/apache/aurora/config/__init__.py ---------------------------------------------------------------------- diff --git a/src/main/python/apache/aurora/config/__init__.py b/src/main/python/apache/aurora/config/__init__.py index 7d4d485..58dff95 100644 --- a/src/main/python/apache/aurora/config/__init__.py +++ b/src/main/python/apache/aurora/config/__init__.py @@ -1,3 +1,19 @@ +# +# Copyright 2013 Apache Software Foundation +# +# Licensed under the Apache License, Version 2.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 __future__ import absolute_import from collections import defaultdict http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/d7a82dc4/src/main/python/apache/aurora/config/loader.py ---------------------------------------------------------------------- diff --git a/src/main/python/apache/aurora/config/loader.py b/src/main/python/apache/aurora/config/loader.py index df82530..2b600fb 100644 --- a/src/main/python/apache/aurora/config/loader.py +++ b/src/main/python/apache/aurora/config/loader.py @@ -1,3 +1,19 @@ +# +# Copyright 2013 Apache Software Foundation +# +# Licensed under the Apache License, Version 2.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 json import pkgutil import textwrap http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/d7a82dc4/src/main/python/apache/aurora/config/port_resolver.py ---------------------------------------------------------------------- diff --git a/src/main/python/apache/aurora/config/port_resolver.py b/src/main/python/apache/aurora/config/port_resolver.py index 486095f..d9c9604 100644 --- a/src/main/python/apache/aurora/config/port_resolver.py +++ b/src/main/python/apache/aurora/config/port_resolver.py @@ -1,3 +1,19 @@ +# +# Copyright 2013 Apache Software Foundation +# +# Licensed under the Apache License, Version 2.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 twitter.common.lang import Compatibility http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/d7a82dc4/src/main/python/apache/aurora/config/recipes.py ---------------------------------------------------------------------- diff --git a/src/main/python/apache/aurora/config/recipes.py b/src/main/python/apache/aurora/config/recipes.py index b2dc23c..ba8c15b 100644 --- a/src/main/python/apache/aurora/config/recipes.py +++ b/src/main/python/apache/aurora/config/recipes.py @@ -1,3 +1,19 @@ +# +# Copyright 2013 Apache Software Foundation +# +# Licensed under the Apache License, Version 2.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 os from .loader import AuroraConfigLoader