summaryrefslogtreecommitdiff
path: root/apps/mem3/src
diff options
context:
space:
mode:
authorAdam Kocoloski <adam@cloudant.com>2010-08-27 15:43:44 -0400
committerAdam Kocoloski <adam@cloudant.com>2010-08-27 15:46:02 -0400
commit4bb8f3d695c83043732459a395ffd17b827b77b9 (patch)
treec84b15a59b99cb64c35380a8080c659988c352b6 /apps/mem3/src
parent189777607f680ebba88fa3db6f7dab60ab2dd52c (diff)
Apache 2 license, Cloudant copyright when appropriate
Diffstat (limited to 'apps/mem3/src')
-rw-r--r--apps/mem3/src/mem3.erl14
-rw-r--r--apps/mem3/src/mem3_app.erl14
-rw-r--r--apps/mem3/src/mem3_cache.erl14
-rw-r--r--apps/mem3/src/mem3_httpd.erl14
-rw-r--r--apps/mem3/src/mem3_nodes.erl14
-rw-r--r--apps/mem3/src/mem3_sup.erl14
-rw-r--r--apps/mem3/src/mem3_sync.erl14
-rw-r--r--apps/mem3/src/mem3_sync_event.erl14
-rw-r--r--apps/mem3/src/mem3_util.erl14
9 files changed, 126 insertions, 0 deletions
diff --git a/apps/mem3/src/mem3.erl b/apps/mem3/src/mem3.erl
index 1485c7fe..41118d54 100644
--- a/apps/mem3/src/mem3.erl
+++ b/apps/mem3/src/mem3.erl
@@ -1,3 +1,17 @@
+% Copyright 2010 Cloudant
+%
+% Licensed under the Apache License, Version 2.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.
+
-module(mem3).
-export([start/0, stop/0, restart/0, nodes/0, shards/1, shards/2,
diff --git a/apps/mem3/src/mem3_app.erl b/apps/mem3/src/mem3_app.erl
index 88cd1ea1..682c6aff 100644
--- a/apps/mem3/src/mem3_app.erl
+++ b/apps/mem3/src/mem3_app.erl
@@ -1,3 +1,17 @@
+% Copyright 2010 Cloudant
+%
+% Licensed under the Apache License, Version 2.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.
+
-module(mem3_app).
-behaviour(application).
-export([start/2, stop/1]).
diff --git a/apps/mem3/src/mem3_cache.erl b/apps/mem3/src/mem3_cache.erl
index 2a29ca4c..419e0d7c 100644
--- a/apps/mem3/src/mem3_cache.erl
+++ b/apps/mem3/src/mem3_cache.erl
@@ -1,3 +1,17 @@
+% Copyright 2010 Cloudant
+%
+% Licensed under the Apache License, Version 2.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.
+
-module(mem3_cache).
-behaviour(gen_server).
-export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2,
diff --git a/apps/mem3/src/mem3_httpd.erl b/apps/mem3/src/mem3_httpd.erl
index cbfaea95..6810562e 100644
--- a/apps/mem3/src/mem3_httpd.erl
+++ b/apps/mem3/src/mem3_httpd.erl
@@ -1,3 +1,17 @@
+% Copyright 2010 Cloudant
+%
+% Licensed under the Apache License, Version 2.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.
+
-module(mem3_httpd).
-export([handle_membership_req/1]).
diff --git a/apps/mem3/src/mem3_nodes.erl b/apps/mem3/src/mem3_nodes.erl
index 6cbf3d9a..c8528cb6 100644
--- a/apps/mem3/src/mem3_nodes.erl
+++ b/apps/mem3/src/mem3_nodes.erl
@@ -1,3 +1,17 @@
+% Copyright 2010 Cloudant
+%
+% Licensed under the Apache License, Version 2.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.
+
-module(mem3_nodes).
-behaviour(gen_server).
-export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2,
diff --git a/apps/mem3/src/mem3_sup.erl b/apps/mem3/src/mem3_sup.erl
index 58d0bbf5..9f93dd39 100644
--- a/apps/mem3/src/mem3_sup.erl
+++ b/apps/mem3/src/mem3_sup.erl
@@ -1,3 +1,17 @@
+% Copyright 2010 Cloudant
+%
+% Licensed under the Apache License, Version 2.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.
+
-module(mem3_sup).
-behaviour(supervisor).
-export([start_link/0, init/1]).
diff --git a/apps/mem3/src/mem3_sync.erl b/apps/mem3/src/mem3_sync.erl
index d3b3ea51..a1ba4f8b 100644
--- a/apps/mem3/src/mem3_sync.erl
+++ b/apps/mem3/src/mem3_sync.erl
@@ -1,3 +1,17 @@
+% Copyright 2010 Cloudant
+%
+% Licensed under the Apache License, Version 2.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.
+
-module(mem3_sync).
-behaviour(gen_server).
-export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2,
diff --git a/apps/mem3/src/mem3_sync_event.erl b/apps/mem3/src/mem3_sync_event.erl
index 45fcb8aa..5ee93b7a 100644
--- a/apps/mem3/src/mem3_sync_event.erl
+++ b/apps/mem3/src/mem3_sync_event.erl
@@ -1,3 +1,17 @@
+% Copyright 2010 Cloudant
+%
+% Licensed under the Apache License, Version 2.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.
+
-module(mem3_sync_event).
-behaviour(gen_event).
diff --git a/apps/mem3/src/mem3_util.erl b/apps/mem3/src/mem3_util.erl
index d8ed42b7..5e866ccf 100644
--- a/apps/mem3/src/mem3_util.erl
+++ b/apps/mem3/src/mem3_util.erl
@@ -1,3 +1,17 @@
+% Copyright 2010 Cloudant
+%
+% Licensed under the Apache License, Version 2.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.
+
-module(mem3_util).
-export([hash/1, name_shard/1, create_partition_map/4, build_shards/2,