Skip to content
This repository has been archived by the owner on Sep 14, 2018. It is now read-only.

Commit

Permalink
Added a license to artifact.hrl and committed the other local changes
Browse files Browse the repository at this point in the history
  • Loading branch information
zv committed Feb 14, 2012
1 parent 7c7e4d3 commit fff3617
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 14 deletions.
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ test_single: test_compile
-logdir test/log -cover test/artifact.coverspec \
-I$(ROOT)/include -pa $(ROOT)/ebin

test_single_case: test_compile
mkdir -p test/log
${RUN_TEST_CMD} -suite $(SUITE) -case ${CASE}\
-logdir test/log -cover test/artifact.coverspec \
-I$(ROOT)/include -pa $(ROOT)/ebin

docs:
erl -noshell -run edoc_run application "'artifact'" \
'"."' '[{def,{vsn, "$(artifact_VSN)"}}]'
Expand Down
24 changes: 12 additions & 12 deletions artifact.config
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
[{artifact, [
% {logfile, "artifact.log"},
% {hostname, "localhost"},
%{logfile, "artifact.log"},
%{hostname, "localhost"},
{rpc_port, 11011},
{rpc_max_processes, 30},
{rpc_max_processes, 60},
{memcache_port, 11211},
{memcache_max_processes, 10},
{max_connections, 32},
{n, 1},
{r, 1},
{w, 1},
{number_of_buckets, 1024},
{number_of_virtual_nodes, 128},
{memcache_max_processes, 20},
{max_connections, 64},
{quorum, {3,2,2}},
{buckets, 1024},
{virtual_nodes, 128},
{store, ets},
%{dets_dir, "/path/to/dir"},
{number_of_tables, 256}
%{dets_dir, "/home/zephyr/Development/mixrank/"},
%{dets_tables, 128},
{sync_interval, 1000}, %% msec
{membership_interval, 1000} %% msec
]}].
20 changes: 18 additions & 2 deletions include/artifact.hrl
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
%
% Artifact Data Store
%
% Copyright (c) 2012 Zephyr Pellerin
% All rights reserved.
%
% Redistribution and use in source and binary forms are permitted
% provided that the above copyright notice and this paragraph are
% duplicated in all such forms and that any documentation,
% advertising materials, and other materials related to such
% distribution and use acknowledge that the software was developed
% by Zephyr Pellerin. My name cannot be used in endorsement of any product
% derived from this software. Buy me a beer sometime if you liked this
% THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
% IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
% WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
%

-record(data, {
key, bucket, last_modified, vector_clocks, checksum, flags, value
}).
Expand All @@ -19,8 +37,6 @@
-define(warning(Data), artifact_log:log(warning, self(), ?FILE, ?LINE, Data)).
-define(info (Data), artifact_log:log(info, self(), ?FILE, ?LINE, Data)).

%-define(debug(Data), artifact_log:log(debug, self(), ?FILE, ?LINE, Data)).
-define(debug(_Data), ok).

-define(TIMEOUT, 5000).
-define(TIMER, 1000).

0 comments on commit fff3617

Please sign in to comment.