summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mongo/embedded/LICENSE-Embedded.txt126
-rw-r--r--src/mongo/embedded/SConscript11
-rw-r--r--src/mongo/embedded/java/src/com/mongodb/embedded/capi/CAPIHelper.java34
-rw-r--r--src/mongo/embedded/java/src/com/mongodb/embedded/capi/LogLevel.java34
-rw-r--r--src/mongo/embedded/java/src/com/mongodb/embedded/capi/MongoEmbeddedCAPI.java34
-rw-r--r--src/mongo/embedded/java/src/com/mongodb/embedded/capi/MongoEmbeddedCAPIException.java34
-rw-r--r--src/mongo/embedded/java/src/com/mongodb/embedded/capi/MongoEmbeddedClient.java34
-rw-r--r--src/mongo/embedded/java/src/com/mongodb/embedded/capi/MongoEmbeddedClientImpl.java34
-rw-r--r--src/mongo/embedded/java/src/com/mongodb/embedded/capi/MongoEmbeddedInstance.java34
-rw-r--r--src/mongo/embedded/java/src/com/mongodb/embedded/capi/MongoEmbeddedInstanceImpl.java34
-rw-r--r--src/mongo/embedded/java/src/com/mongodb/embedded/capi/MongoEmbeddedLibrary.java34
-rw-r--r--src/mongo/embedded/java/src/com/mongodb/embedded/capi/MongoEmbeddedLibraryImpl.java34
-rw-r--r--src/mongo/embedded/java/src/com/mongodb/embedded/capi/internal/CAPI.java34
-rw-r--r--src/mongo/embedded/java/src/com/mongodb/embedded/capi/internal/logging/JULLogger.java34
-rw-r--r--src/mongo/embedded/java/src/com/mongodb/embedded/capi/internal/logging/Logger.java34
-rw-r--r--src/mongo/embedded/java/src/com/mongodb/embedded/capi/internal/logging/Loggers.java34
-rw-r--r--src/mongo/embedded/java/src/com/mongodb/embedded/capi/internal/logging/SLF4JLogger.java34
-rw-r--r--src/mongo/embedded/java/src/com/mongodb/embedded/capi/internal/logging/package-info.java34
-rw-r--r--src/mongo/embedded/java/src/com/mongodb/embedded/capi/internal/package-info.java34
-rw-r--r--src/mongo/embedded/java/src/com/mongodb/embedded/capi/package-info.java34
20 files changed, 551 insertions, 198 deletions
diff --git a/src/mongo/embedded/LICENSE-Embedded.txt b/src/mongo/embedded/LICENSE-Embedded.txt
new file mode 100644
index 00000000000..3514d4fbddd
--- /dev/null
+++ b/src/mongo/embedded/LICENSE-Embedded.txt
@@ -0,0 +1,126 @@
+License Agreement
+
+The following License Agreement establishes the terms on which
+MongoDB, Inc. (“Company”) grants a license to Company’s applicable
+proprietary application software solely in machine-readable,
+executable, object-code form and related documentation (the
+“Software”) to you the licensee (“You” or “Your”) solely on the
+condition that You accept all of the terms in this License Agreement
+(the “Agreement”). By clicking through any applicable acceptance
+screen, or otherwise accessing, installing, or using the Software, you
+are indicating your acceptance of this Agreement, and if you do not
+agree to the terms of this Agreement, you may not access, install, or
+use the Software. If You are an employee or agent of a company (the
+“Customer”), You hereby agree that You enter into this Agreement on
+behalf of the Customer and that You have the authority to bind the
+Customer to the terms and conditions of this Agreement.
+
+1. LICENSE. During the Period (as defined below), subject to Your full
+and ongoing compliance with all the terms and conditions of this
+Agreement, Company hereby grants You a limited, revocable,
+non-exclusive, non-transferable, non-sublicensable license to install
+and use the Software in your internal environment, and solely for the
+intended purpose of the Software.
+
+2. RESTRICTIONS. You will not, and will not allow any third party to:
+(i) modify or create derivative works of the Software; (ii) sell,
+sublicense, rent, lease, distribute, market, or commercialize the
+Software; (iii) decompile, disassemble, translate, reverse engineer or
+otherwise attempt to derive source code from, any portion of the
+Software, except and solely to the extent that the foregoing
+restriction is impermissible pursuant to applicable law or third party
+license; (iv) remove, alter or obscure any proprietary notices of
+Company, its licensors or suppliers included in the Software; or (v)
+publicly disseminate performance information about or analysis of the
+Software, including benchmarking test results. No third party may
+access, view or use the Software under this Agreement.
+
+3. NO FEES; OPERATING EXPENSES. Subject to the terms of this
+Agreement, You and Company agree that no license fees or other fees
+shall be payable under this Agreement in exchange for the rights
+granted and/or the use of the Software or other materials provided
+under this Agreement.
+
+4. FEEDBACK. If you choose to provide us with suggestions, ideas for
+improvement, recommendations or other feedback, we may use your
+feedback without any restriction or payment.
+
+5. OWNERSHIP. The Software, and all worldwide intellectual property
+rights and proprietary rights to the Software, are the exclusive
+property of Company and its licensors. Company and its licensors
+reserve all rights in and to the Software not expressly granted to You
+in this Agreement, and no other licenses or rights are granted by
+implication, estoppel or otherwise.
+
+6. TERM. This Agreement shall commence when you download the Software
+and shall continue in force and effect until terminated by either
+party (“Period”). Either party may terminate this Agreement, with or
+without cause, immediately upon written notice to the other party.
+Company may terminate this Agreement by posting a notice on its
+website, and this Agreement will terminate immediately and without
+notice in the event that you breach any term or condition of this
+Agreement. Upon the expiration or any termination of this Agreement,
+the license and all rights granted to You under this Agreement will
+immediately terminate, and You shall promptly purge and destroy all
+copies of the Software in Your possession. Provisions intended by
+their nature to survive termination of this Agreement survive
+termination.
+
+7. WARRANTY DISCLAIMER. THE SOFTWARE IS PROVIDED TO YOU “AS IS” AND
+COMPANY AND LICENSORS EXPRESSLY DISCLAIM ANY AND ALL WARRANTIES AND
+REPRESENTATIONS OF ANY KIND WITH REGARD TO THE SOFTWARE OR THIS
+AGREEMENT, INCLUDING, WITHOUT LIMITATION, ANY WARRANTY OF
+NON-INFRINGEMENT, TITLE, FITNESS FOR A PARTICULAR PURPOSE,
+FUNCTIONALITY OR MERCHANTABILITY, WHETHER EXPRESS, IMPLIED OR
+STATUTORY.
+
+8. LIMITATION OF REMEDIES. IN NO EVENT SHALL COMPANY BE LIABLE FOR
+ANY INCIDENTAL, INDIRECT, SPECIAL, CONSEQUENTIAL OR PUNITIVE DAMAGES
+IN CONNECTION WITH THIS AGREEMENT, REGARDLESS OF THE NATURE OF THE
+CLAIM OR THEORY OF LIABILITY, INCLUDING, WITHOUT LIMITATION, LOST
+PROFITS, COSTS OF DELAY, ANY FAILURE OF DELIVERY, BUSINESS
+INTERRUPTION, COSTS OF LOST OR DAMAGED DATA OR DOCUMENTATION OR
+LIABILITIES TO THIRD PARTIES ARISING FROM ANY SOURCE, REGARDLESS OF
+WHETHER THE COMPANY HAS BEEN NOTIFIED OF THE POSSIBILITY OF SUCH
+DAMAGES. WITHOUT LIMITING THE FOREGOING, COMPANY’S CUMULATIVE
+LIABILITY FOR ALL CLAIMS ARISING FROM OR RELATING TO THIS AGREEMENT,
+INCLUDING, WITHOUT LIMITATION, ANY CAUSE OF ACTION SOUNDING IN
+CONTRACT, TORT, OR STRICT LIABILITY, SHALL NOT EXCEED ONE HUNDRED
+DOLLARS (U.S. $100.00). THE FOREGOING LIMITATIONS WILL APPLY
+NOTWITHSTANDING THE FAILURE OF ESSENTIAL PURPOSE OF ANY LIMITED REMEDY
+PROVIDED HEREIN.
+
+9. ESSENTIAL BASIS OF AGREEMENT. The Parties acknowledge and agree
+that the disclaimers, exclusions and limitations of liability set
+forth in Section 9 form an essential basis of this Agreement, and
+that, absent any of such disclaimers, exclusions or limitations of
+liability, the terms of this Agreement, including, without limitation,
+the economic terms, would be substantially different.
+
+10. GENERAL. This Agreement shall be governed by and interpreted in
+accordance with the laws of the State of New York, without regard to
+conflicts of law principles thereof or to the United Nations
+Convention on the International Sale of Goods. For purposes of all
+claims brought under this agreement, each of the parties hereby
+irrevocably submits to the exclusive jurisdiction of the state and
+federal courts located within the State of New York. Company may
+assign this Agreement, in whole or in part, at any time with or
+without notice to You. You may not assign this Agreement, or any part
+of it, to any other party. Any attempt by You to do so is null and
+void. If any provision of this Agreement is held to be unenforceable,
+that provision will be enforced to the extent permissible by law and
+the remaining provisions will remain in full force. No waiver under
+this Agreement shall be valid or binding unless set forth in writing
+and duly executed by the party against whom enforcement of such waiver
+is sought. Any such waiver shall constitute a waiver only with
+respect to the specific matter described therein and shall in no way
+impair the rights of the party granting such waiver in any other
+respect or at any other time. Any delay or forbearance by either
+party in exercising any right hereunder shall not be deemed a waiver
+of that right. This Agreement is the complete and exclusive statement
+of the agreement between us and supersedes any proposal or prior
+agreement, oral or written, and any other communications between You
+and Company in relation to the subject matter of this Agreement.
+
+If You have any questions regarding this Agreement or the Software,
+please direct all correspondence to: legal@mongodb.com.
diff --git a/src/mongo/embedded/SConscript b/src/mongo/embedded/SConscript
index f5ad103a351..1319c183876 100644
--- a/src/mongo/embedded/SConscript
+++ b/src/mongo/embedded/SConscript
@@ -7,6 +7,17 @@ Import("get_option")
env = env.Clone()
+if get_option('install-mode') == 'hygienic':
+ env.AutoInstall(
+ '',
+ source=[
+ 'LICENSE-Embedded.txt',
+ ],
+ INSTALL_ALIAS=[
+ 'embedded-dev',
+ ],
+ )
+
yamlEnv = env.Clone()
yamlEnv.InjectThirdPartyIncludePaths(libraries=['yaml'])
diff --git a/src/mongo/embedded/java/src/com/mongodb/embedded/capi/CAPIHelper.java b/src/mongo/embedded/java/src/com/mongodb/embedded/capi/CAPIHelper.java
index ef86cd8ff84..16bf24b842d 100644
--- a/src/mongo/embedded/java/src/com/mongodb/embedded/capi/CAPIHelper.java
+++ b/src/mongo/embedded/java/src/com/mongodb/embedded/capi/CAPIHelper.java
@@ -1,17 +1,29 @@
-/*
- * Copyright 2008-present MongoDB, Inc.
+/*-
+ * Copyright (C) 2018 MongoDB Inc.
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License, version 3,
+ * as published by the Free Software Foundation.
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
*
- * 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.
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ * As a special exception, the copyright holders give permission to link the
+ * code of portions of this program with the OpenSSL library under certain
+ * conditions as described in each individual source file and distribute
+ * linked combinations including the program with the OpenSSL library. You
+ * must comply with the GNU Affero General Public License in all respects
+ * for all of the code used other than as permitted herein. If you modify
+ * file(s) with this exception, you may extend this exception to your
+ * version of the file(s), but you are not obligated to do so. If you do not
+ * wish to do so, delete this exception statement from your version. If you
+ * delete this exception statement from all source files in the program,
+ * then also delete it in the license file.
*/
package com.mongodb.embedded.capi;
diff --git a/src/mongo/embedded/java/src/com/mongodb/embedded/capi/LogLevel.java b/src/mongo/embedded/java/src/com/mongodb/embedded/capi/LogLevel.java
index e6d64573db0..c88f20aa8ac 100644
--- a/src/mongo/embedded/java/src/com/mongodb/embedded/capi/LogLevel.java
+++ b/src/mongo/embedded/java/src/com/mongodb/embedded/capi/LogLevel.java
@@ -1,17 +1,29 @@
-/*
- * Copyright 2008-present MongoDB, Inc.
+/*-
+ * Copyright (C) 2018 MongoDB Inc.
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License, version 3,
+ * as published by the Free Software Foundation.
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
*
- * 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.
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ * As a special exception, the copyright holders give permission to link the
+ * code of portions of this program with the OpenSSL library under certain
+ * conditions as described in each individual source file and distribute
+ * linked combinations including the program with the OpenSSL library. You
+ * must comply with the GNU Affero General Public License in all respects
+ * for all of the code used other than as permitted herein. If you modify
+ * file(s) with this exception, you may extend this exception to your
+ * version of the file(s), but you are not obligated to do so. If you do not
+ * wish to do so, delete this exception statement from your version. If you
+ * delete this exception statement from all source files in the program,
+ * then also delete it in the license file.
*/
package com.mongodb.embedded.capi;
diff --git a/src/mongo/embedded/java/src/com/mongodb/embedded/capi/MongoEmbeddedCAPI.java b/src/mongo/embedded/java/src/com/mongodb/embedded/capi/MongoEmbeddedCAPI.java
index 7b3d148b8a9..90b983a3dc2 100644
--- a/src/mongo/embedded/java/src/com/mongodb/embedded/capi/MongoEmbeddedCAPI.java
+++ b/src/mongo/embedded/java/src/com/mongodb/embedded/capi/MongoEmbeddedCAPI.java
@@ -1,17 +1,29 @@
-/*
- * Copyright 2008-present MongoDB, Inc.
+/*-
+ * Copyright (C) 2018 MongoDB Inc.
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License, version 3,
+ * as published by the Free Software Foundation.
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
*
- * 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.
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ * As a special exception, the copyright holders give permission to link the
+ * code of portions of this program with the OpenSSL library under certain
+ * conditions as described in each individual source file and distribute
+ * linked combinations including the program with the OpenSSL library. You
+ * must comply with the GNU Affero General Public License in all respects
+ * for all of the code used other than as permitted herein. If you modify
+ * file(s) with this exception, you may extend this exception to your
+ * version of the file(s), but you are not obligated to do so. If you do not
+ * wish to do so, delete this exception statement from your version. If you
+ * delete this exception statement from all source files in the program,
+ * then also delete it in the license file.
*/
package com.mongodb.embedded.capi;
diff --git a/src/mongo/embedded/java/src/com/mongodb/embedded/capi/MongoEmbeddedCAPIException.java b/src/mongo/embedded/java/src/com/mongodb/embedded/capi/MongoEmbeddedCAPIException.java
index ea856e22f94..a41a17be155 100644
--- a/src/mongo/embedded/java/src/com/mongodb/embedded/capi/MongoEmbeddedCAPIException.java
+++ b/src/mongo/embedded/java/src/com/mongodb/embedded/capi/MongoEmbeddedCAPIException.java
@@ -1,17 +1,29 @@
-/*
- * Copyright 2008-present MongoDB, Inc.
+/*-
+ * Copyright (C) 2018 MongoDB Inc.
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License, version 3,
+ * as published by the Free Software Foundation.
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
*
- * 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.
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ * As a special exception, the copyright holders give permission to link the
+ * code of portions of this program with the OpenSSL library under certain
+ * conditions as described in each individual source file and distribute
+ * linked combinations including the program with the OpenSSL library. You
+ * must comply with the GNU Affero General Public License in all respects
+ * for all of the code used other than as permitted herein. If you modify
+ * file(s) with this exception, you may extend this exception to your
+ * version of the file(s), but you are not obligated to do so. If you do not
+ * wish to do so, delete this exception statement from your version. If you
+ * delete this exception statement from all source files in the program,
+ * then also delete it in the license file.
*/
package com.mongodb.embedded.capi;
diff --git a/src/mongo/embedded/java/src/com/mongodb/embedded/capi/MongoEmbeddedClient.java b/src/mongo/embedded/java/src/com/mongodb/embedded/capi/MongoEmbeddedClient.java
index cc9db8b42c8..bb190efe278 100644
--- a/src/mongo/embedded/java/src/com/mongodb/embedded/capi/MongoEmbeddedClient.java
+++ b/src/mongo/embedded/java/src/com/mongodb/embedded/capi/MongoEmbeddedClient.java
@@ -1,17 +1,29 @@
-/*
- * Copyright 2008-present MongoDB, Inc.
+/*-
+ * Copyright (C) 2018 MongoDB Inc.
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License, version 3,
+ * as published by the Free Software Foundation.
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
*
- * 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.
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ * As a special exception, the copyright holders give permission to link the
+ * code of portions of this program with the OpenSSL library under certain
+ * conditions as described in each individual source file and distribute
+ * linked combinations including the program with the OpenSSL library. You
+ * must comply with the GNU Affero General Public License in all respects
+ * for all of the code used other than as permitted herein. If you modify
+ * file(s) with this exception, you may extend this exception to your
+ * version of the file(s), but you are not obligated to do so. If you do not
+ * wish to do so, delete this exception statement from your version. If you
+ * delete this exception statement from all source files in the program,
+ * then also delete it in the license file.
*/
package com.mongodb.embedded.capi;
diff --git a/src/mongo/embedded/java/src/com/mongodb/embedded/capi/MongoEmbeddedClientImpl.java b/src/mongo/embedded/java/src/com/mongodb/embedded/capi/MongoEmbeddedClientImpl.java
index 59ac167502d..1073b15e4c3 100644
--- a/src/mongo/embedded/java/src/com/mongodb/embedded/capi/MongoEmbeddedClientImpl.java
+++ b/src/mongo/embedded/java/src/com/mongodb/embedded/capi/MongoEmbeddedClientImpl.java
@@ -1,17 +1,29 @@
-/*
- * Copyright 2008-present MongoDB, Inc.
+/*-
+ * Copyright (C) 2018 MongoDB Inc.
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License, version 3,
+ * as published by the Free Software Foundation.
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
*
- * 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.
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ * As a special exception, the copyright holders give permission to link the
+ * code of portions of this program with the OpenSSL library under certain
+ * conditions as described in each individual source file and distribute
+ * linked combinations including the program with the OpenSSL library. You
+ * must comply with the GNU Affero General Public License in all respects
+ * for all of the code used other than as permitted herein. If you modify
+ * file(s) with this exception, you may extend this exception to your
+ * version of the file(s), but you are not obligated to do so. If you do not
+ * wish to do so, delete this exception statement from your version. If you
+ * delete this exception statement from all source files in the program,
+ * then also delete it in the license file.
*/
package com.mongodb.embedded.capi;
diff --git a/src/mongo/embedded/java/src/com/mongodb/embedded/capi/MongoEmbeddedInstance.java b/src/mongo/embedded/java/src/com/mongodb/embedded/capi/MongoEmbeddedInstance.java
index 6d5b963e89a..49fe3a3e2ba 100644
--- a/src/mongo/embedded/java/src/com/mongodb/embedded/capi/MongoEmbeddedInstance.java
+++ b/src/mongo/embedded/java/src/com/mongodb/embedded/capi/MongoEmbeddedInstance.java
@@ -1,17 +1,29 @@
-/*
- * Copyright 2008-present MongoDB, Inc.
+/*-
+ * Copyright (C) 2018 MongoDB Inc.
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License, version 3,
+ * as published by the Free Software Foundation.
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
*
- * 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.
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ * As a special exception, the copyright holders give permission to link the
+ * code of portions of this program with the OpenSSL library under certain
+ * conditions as described in each individual source file and distribute
+ * linked combinations including the program with the OpenSSL library. You
+ * must comply with the GNU Affero General Public License in all respects
+ * for all of the code used other than as permitted herein. If you modify
+ * file(s) with this exception, you may extend this exception to your
+ * version of the file(s), but you are not obligated to do so. If you do not
+ * wish to do so, delete this exception statement from your version. If you
+ * delete this exception statement from all source files in the program,
+ * then also delete it in the license file.
*/
package com.mongodb.embedded.capi;
diff --git a/src/mongo/embedded/java/src/com/mongodb/embedded/capi/MongoEmbeddedInstanceImpl.java b/src/mongo/embedded/java/src/com/mongodb/embedded/capi/MongoEmbeddedInstanceImpl.java
index 159d0308054..332a15e22a0 100644
--- a/src/mongo/embedded/java/src/com/mongodb/embedded/capi/MongoEmbeddedInstanceImpl.java
+++ b/src/mongo/embedded/java/src/com/mongodb/embedded/capi/MongoEmbeddedInstanceImpl.java
@@ -1,17 +1,29 @@
-/*
- * Copyright 2008-present MongoDB, Inc.
+/*-
+ * Copyright (C) 2018 MongoDB Inc.
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License, version 3,
+ * as published by the Free Software Foundation.
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
*
- * 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.
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ * As a special exception, the copyright holders give permission to link the
+ * code of portions of this program with the OpenSSL library under certain
+ * conditions as described in each individual source file and distribute
+ * linked combinations including the program with the OpenSSL library. You
+ * must comply with the GNU Affero General Public License in all respects
+ * for all of the code used other than as permitted herein. If you modify
+ * file(s) with this exception, you may extend this exception to your
+ * version of the file(s), but you are not obligated to do so. If you do not
+ * wish to do so, delete this exception statement from your version. If you
+ * delete this exception statement from all source files in the program,
+ * then also delete it in the license file.
*/
package com.mongodb.embedded.capi;
diff --git a/src/mongo/embedded/java/src/com/mongodb/embedded/capi/MongoEmbeddedLibrary.java b/src/mongo/embedded/java/src/com/mongodb/embedded/capi/MongoEmbeddedLibrary.java
index 262e67b072c..7f892095750 100644
--- a/src/mongo/embedded/java/src/com/mongodb/embedded/capi/MongoEmbeddedLibrary.java
+++ b/src/mongo/embedded/java/src/com/mongodb/embedded/capi/MongoEmbeddedLibrary.java
@@ -1,17 +1,29 @@
-/*
- * Copyright 2008-present MongoDB, Inc.
+/*-
+ * Copyright (C) 2018 MongoDB Inc.
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License, version 3,
+ * as published by the Free Software Foundation.
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
*
- * 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.
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ * As a special exception, the copyright holders give permission to link the
+ * code of portions of this program with the OpenSSL library under certain
+ * conditions as described in each individual source file and distribute
+ * linked combinations including the program with the OpenSSL library. You
+ * must comply with the GNU Affero General Public License in all respects
+ * for all of the code used other than as permitted herein. If you modify
+ * file(s) with this exception, you may extend this exception to your
+ * version of the file(s), but you are not obligated to do so. If you do not
+ * wish to do so, delete this exception statement from your version. If you
+ * delete this exception statement from all source files in the program,
+ * then also delete it in the license file.
*/
package com.mongodb.embedded.capi;
diff --git a/src/mongo/embedded/java/src/com/mongodb/embedded/capi/MongoEmbeddedLibraryImpl.java b/src/mongo/embedded/java/src/com/mongodb/embedded/capi/MongoEmbeddedLibraryImpl.java
index 7dff3b99af5..ef237a7dd88 100644
--- a/src/mongo/embedded/java/src/com/mongodb/embedded/capi/MongoEmbeddedLibraryImpl.java
+++ b/src/mongo/embedded/java/src/com/mongodb/embedded/capi/MongoEmbeddedLibraryImpl.java
@@ -1,17 +1,29 @@
-/*
- * Copyright 2008-present MongoDB, Inc.
+/*-
+ * Copyright (C) 2018 MongoDB Inc.
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License, version 3,
+ * as published by the Free Software Foundation.
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
*
- * 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.
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ * As a special exception, the copyright holders give permission to link the
+ * code of portions of this program with the OpenSSL library under certain
+ * conditions as described in each individual source file and distribute
+ * linked combinations including the program with the OpenSSL library. You
+ * must comply with the GNU Affero General Public License in all respects
+ * for all of the code used other than as permitted herein. If you modify
+ * file(s) with this exception, you may extend this exception to your
+ * version of the file(s), but you are not obligated to do so. If you do not
+ * wish to do so, delete this exception statement from your version. If you
+ * delete this exception statement from all source files in the program,
+ * then also delete it in the license file.
*/
package com.mongodb.embedded.capi;
diff --git a/src/mongo/embedded/java/src/com/mongodb/embedded/capi/internal/CAPI.java b/src/mongo/embedded/java/src/com/mongodb/embedded/capi/internal/CAPI.java
index 99c8d44729a..bc4c887a5ad 100644
--- a/src/mongo/embedded/java/src/com/mongodb/embedded/capi/internal/CAPI.java
+++ b/src/mongo/embedded/java/src/com/mongodb/embedded/capi/internal/CAPI.java
@@ -1,17 +1,29 @@
-/*
- * Copyright 2008-present MongoDB, Inc.
+/*-
+ * Copyright (C) 2018 MongoDB Inc.
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License, version 3,
+ * as published by the Free Software Foundation.
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
*
- * 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.
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ * As a special exception, the copyright holders give permission to link the
+ * code of portions of this program with the OpenSSL library under certain
+ * conditions as described in each individual source file and distribute
+ * linked combinations including the program with the OpenSSL library. You
+ * must comply with the GNU Affero General Public License in all respects
+ * for all of the code used other than as permitted herein. If you modify
+ * file(s) with this exception, you may extend this exception to your
+ * version of the file(s), but you are not obligated to do so. If you do not
+ * wish to do so, delete this exception statement from your version. If you
+ * delete this exception statement from all source files in the program,
+ * then also delete it in the license file.
*/
package com.mongodb.embedded.capi.internal;
diff --git a/src/mongo/embedded/java/src/com/mongodb/embedded/capi/internal/logging/JULLogger.java b/src/mongo/embedded/java/src/com/mongodb/embedded/capi/internal/logging/JULLogger.java
index 12f68cf043f..203ec905b34 100644
--- a/src/mongo/embedded/java/src/com/mongodb/embedded/capi/internal/logging/JULLogger.java
+++ b/src/mongo/embedded/java/src/com/mongodb/embedded/capi/internal/logging/JULLogger.java
@@ -1,17 +1,29 @@
-/*
- * Copyright 2008-present MongoDB, Inc.
+/*-
+ * Copyright (C) 2018 MongoDB Inc.
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License, version 3,
+ * as published by the Free Software Foundation.
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
*
- * 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.
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ * As a special exception, the copyright holders give permission to link the
+ * code of portions of this program with the OpenSSL library under certain
+ * conditions as described in each individual source file and distribute
+ * linked combinations including the program with the OpenSSL library. You
+ * must comply with the GNU Affero General Public License in all respects
+ * for all of the code used other than as permitted herein. If you modify
+ * file(s) with this exception, you may extend this exception to your
+ * version of the file(s), but you are not obligated to do so. If you do not
+ * wish to do so, delete this exception statement from your version. If you
+ * delete this exception statement from all source files in the program,
+ * then also delete it in the license file.
*/
package com.mongodb.embedded.capi.internal.logging;
diff --git a/src/mongo/embedded/java/src/com/mongodb/embedded/capi/internal/logging/Logger.java b/src/mongo/embedded/java/src/com/mongodb/embedded/capi/internal/logging/Logger.java
index 5b1b04cf3ae..67c8337e295 100644
--- a/src/mongo/embedded/java/src/com/mongodb/embedded/capi/internal/logging/Logger.java
+++ b/src/mongo/embedded/java/src/com/mongodb/embedded/capi/internal/logging/Logger.java
@@ -1,17 +1,29 @@
-/*
- * Copyright 2008-present MongoDB, Inc.
+/*-
+ * Copyright (C) 2018 MongoDB Inc.
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License, version 3,
+ * as published by the Free Software Foundation.
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
*
- * 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.
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ * As a special exception, the copyright holders give permission to link the
+ * code of portions of this program with the OpenSSL library under certain
+ * conditions as described in each individual source file and distribute
+ * linked combinations including the program with the OpenSSL library. You
+ * must comply with the GNU Affero General Public License in all respects
+ * for all of the code used other than as permitted herein. If you modify
+ * file(s) with this exception, you may extend this exception to your
+ * version of the file(s), but you are not obligated to do so. If you do not
+ * wish to do so, delete this exception statement from your version. If you
+ * delete this exception statement from all source files in the program,
+ * then also delete it in the license file.
*/
package com.mongodb.embedded.capi.internal.logging;
diff --git a/src/mongo/embedded/java/src/com/mongodb/embedded/capi/internal/logging/Loggers.java b/src/mongo/embedded/java/src/com/mongodb/embedded/capi/internal/logging/Loggers.java
index a9ce93fa88e..c566450df42 100644
--- a/src/mongo/embedded/java/src/com/mongodb/embedded/capi/internal/logging/Loggers.java
+++ b/src/mongo/embedded/java/src/com/mongodb/embedded/capi/internal/logging/Loggers.java
@@ -1,17 +1,29 @@
-/*
- * Copyright 2008-present MongoDB, Inc.
+/*-
+ * Copyright (C) 2018 MongoDB Inc.
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License, version 3,
+ * as published by the Free Software Foundation.
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
*
- * 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.
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ * As a special exception, the copyright holders give permission to link the
+ * code of portions of this program with the OpenSSL library under certain
+ * conditions as described in each individual source file and distribute
+ * linked combinations including the program with the OpenSSL library. You
+ * must comply with the GNU Affero General Public License in all respects
+ * for all of the code used other than as permitted herein. If you modify
+ * file(s) with this exception, you may extend this exception to your
+ * version of the file(s), but you are not obligated to do so. If you do not
+ * wish to do so, delete this exception statement from your version. If you
+ * delete this exception statement from all source files in the program,
+ * then also delete it in the license file.
*/
package com.mongodb.embedded.capi.internal.logging;
diff --git a/src/mongo/embedded/java/src/com/mongodb/embedded/capi/internal/logging/SLF4JLogger.java b/src/mongo/embedded/java/src/com/mongodb/embedded/capi/internal/logging/SLF4JLogger.java
index 79d510e984b..cac0a4874e8 100644
--- a/src/mongo/embedded/java/src/com/mongodb/embedded/capi/internal/logging/SLF4JLogger.java
+++ b/src/mongo/embedded/java/src/com/mongodb/embedded/capi/internal/logging/SLF4JLogger.java
@@ -1,17 +1,29 @@
-/*
- * Copyright 2008-present MongoDB, Inc.
+/*-
+ * Copyright (C) 2018 MongoDB Inc.
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License, version 3,
+ * as published by the Free Software Foundation.
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
*
- * 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.
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ * As a special exception, the copyright holders give permission to link the
+ * code of portions of this program with the OpenSSL library under certain
+ * conditions as described in each individual source file and distribute
+ * linked combinations including the program with the OpenSSL library. You
+ * must comply with the GNU Affero General Public License in all respects
+ * for all of the code used other than as permitted herein. If you modify
+ * file(s) with this exception, you may extend this exception to your
+ * version of the file(s), but you are not obligated to do so. If you do not
+ * wish to do so, delete this exception statement from your version. If you
+ * delete this exception statement from all source files in the program,
+ * then also delete it in the license file.
*/
package com.mongodb.embedded.capi.internal.logging;
diff --git a/src/mongo/embedded/java/src/com/mongodb/embedded/capi/internal/logging/package-info.java b/src/mongo/embedded/java/src/com/mongodb/embedded/capi/internal/logging/package-info.java
index 2849661baa9..0e7d114a35c 100644
--- a/src/mongo/embedded/java/src/com/mongodb/embedded/capi/internal/logging/package-info.java
+++ b/src/mongo/embedded/java/src/com/mongodb/embedded/capi/internal/logging/package-info.java
@@ -1,17 +1,29 @@
-/*
- * Copyright 2008-present MongoDB, Inc.
+/*-
+ * Copyright (C) 2018 MongoDB Inc.
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License, version 3,
+ * as published by the Free Software Foundation.
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
*
- * 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.
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ * As a special exception, the copyright holders give permission to link the
+ * code of portions of this program with the OpenSSL library under certain
+ * conditions as described in each individual source file and distribute
+ * linked combinations including the program with the OpenSSL library. You
+ * must comply with the GNU Affero General Public License in all respects
+ * for all of the code used other than as permitted herein. If you modify
+ * file(s) with this exception, you may extend this exception to your
+ * version of the file(s), but you are not obligated to do so. If you do not
+ * wish to do so, delete this exception statement from your version. If you
+ * delete this exception statement from all source files in the program,
+ * then also delete it in the license file.
*/
/**
diff --git a/src/mongo/embedded/java/src/com/mongodb/embedded/capi/internal/package-info.java b/src/mongo/embedded/java/src/com/mongodb/embedded/capi/internal/package-info.java
index 90923757217..4c4d5dab945 100644
--- a/src/mongo/embedded/java/src/com/mongodb/embedded/capi/internal/package-info.java
+++ b/src/mongo/embedded/java/src/com/mongodb/embedded/capi/internal/package-info.java
@@ -1,17 +1,29 @@
-/*
- * Copyright 2008-present MongoDB, Inc.
+/*-
+ * Copyright (C) 2018 MongoDB Inc.
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License, version 3,
+ * as published by the Free Software Foundation.
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
*
- * 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.
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ * As a special exception, the copyright holders give permission to link the
+ * code of portions of this program with the OpenSSL library under certain
+ * conditions as described in each individual source file and distribute
+ * linked combinations including the program with the OpenSSL library. You
+ * must comply with the GNU Affero General Public License in all respects
+ * for all of the code used other than as permitted herein. If you modify
+ * file(s) with this exception, you may extend this exception to your
+ * version of the file(s), but you are not obligated to do so. If you do not
+ * wish to do so, delete this exception statement from your version. If you
+ * delete this exception statement from all source files in the program,
+ * then also delete it in the license file.
*/
/**
diff --git a/src/mongo/embedded/java/src/com/mongodb/embedded/capi/package-info.java b/src/mongo/embedded/java/src/com/mongodb/embedded/capi/package-info.java
index d1a44d80aa1..ed003028fa3 100644
--- a/src/mongo/embedded/java/src/com/mongodb/embedded/capi/package-info.java
+++ b/src/mongo/embedded/java/src/com/mongodb/embedded/capi/package-info.java
@@ -1,17 +1,29 @@
-/*
- * Copyright 2008-present MongoDB, Inc.
+/*-
+ * Copyright (C) 2018 MongoDB Inc.
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License, version 3,
+ * as published by the Free Software Foundation.
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
*
- * 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.
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ * As a special exception, the copyright holders give permission to link the
+ * code of portions of this program with the OpenSSL library under certain
+ * conditions as described in each individual source file and distribute
+ * linked combinations including the program with the OpenSSL library. You
+ * must comply with the GNU Affero General Public License in all respects
+ * for all of the code used other than as permitted herein. If you modify
+ * file(s) with this exception, you may extend this exception to your
+ * version of the file(s), but you are not obligated to do so. If you do not
+ * wish to do so, delete this exception statement from your version. If you
+ * delete this exception statement from all source files in the program,
+ * then also delete it in the license file.
*/
/**