diff options
Diffstat (limited to 'apps/mem3')
-rw-r--r-- | apps/mem3/include/mem3.hrl | 14 | ||||
-rw-r--r-- | apps/mem3/src/mem3.erl | 14 | ||||
-rw-r--r-- | apps/mem3/src/mem3_app.erl | 14 | ||||
-rw-r--r-- | apps/mem3/src/mem3_cache.erl | 14 | ||||
-rw-r--r-- | apps/mem3/src/mem3_httpd.erl | 14 | ||||
-rw-r--r-- | apps/mem3/src/mem3_nodes.erl | 14 | ||||
-rw-r--r-- | apps/mem3/src/mem3_sup.erl | 14 | ||||
-rw-r--r-- | apps/mem3/src/mem3_sync.erl | 14 | ||||
-rw-r--r-- | apps/mem3/src/mem3_sync_event.erl | 14 | ||||
-rw-r--r-- | apps/mem3/src/mem3_util.erl | 14 | ||||
-rw-r--r-- | apps/mem3/test/mem3_util_test.erl | 14 |
11 files changed, 154 insertions, 0 deletions
diff --git a/apps/mem3/include/mem3.hrl b/apps/mem3/include/mem3.hrl index b9359b44..ed86d07e 100644 --- a/apps/mem3/include/mem3.hrl +++ b/apps/mem3/include/mem3.hrl @@ -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. + % type specification hacked to suppress dialyzer warning re: match spec -record(shard, { name :: binary() | '_', 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, diff --git a/apps/mem3/test/mem3_util_test.erl b/apps/mem3/test/mem3_util_test.erl index 0f6d24be..f43410a7 100644 --- a/apps/mem3/test/mem3_util_test.erl +++ b/apps/mem3/test/mem3_util_test.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_test). -include("mem3.hrl"). |