Permalink
Browse files

Add license header to source files.

  • Loading branch information...
1 parent e0cff17 commit 1e68b44ad9db865751770bc2e2df1f01e109faeb @jkreps jkreps committed Jan 13, 2009
Showing with 5,982 additions and 2,362 deletions.
  1. +2 −2 .settings/org.eclipse.jdt.ui.prefs
  2. +13 −1 LICENSE
  3. +3 −3 build_number.txt
  4. +32 −17 example/java/voldemort/examples/ClientExample.java
  5. +0 −190 license.txt
  6. +16 −0 src/java/voldemort/VoldemortClientShell.java
  7. +35 −19 src/java/voldemort/VoldemortException.java
  8. +16 −0 src/java/voldemort/annotations/concurrency/Immutable.java
  9. +19 −3 src/java/voldemort/annotations/concurrency/LockedBy.java
  10. +19 −3 src/java/voldemort/annotations/concurrency/NotThreadsafe.java
  11. +19 −3 src/java/voldemort/annotations/concurrency/Threadsafe.java
  12. +16 −0 src/java/voldemort/annotations/jmx/JmxGetter.java
  13. +16 −0 src/java/voldemort/annotations/jmx/JmxManaged.java
  14. +16 −0 src/java/voldemort/annotations/jmx/JmxOperation.java
  15. +16 −0 src/java/voldemort/annotations/jmx/JmxParam.java
  16. +16 −0 src/java/voldemort/annotations/jmx/JmxSetter.java
  17. +16 −0 src/java/voldemort/client/AbstractStoreClientFactory.java
  18. +16 −0 src/java/voldemort/client/BootstrapFailureException.java
  19. +27 −11 src/java/voldemort/client/DefaultStoreClient.java
  20. +21 −2 src/java/voldemort/client/HttpStoreClientFactory.java
  21. +16 −0 src/java/voldemort/client/MockStoreClientFactory.java
  22. +18 −2 src/java/voldemort/client/RoutingTier.java
  23. +21 −2 src/java/voldemort/client/SocketStoreClientFactory.java
  24. +16 −0 src/java/voldemort/client/StoreClient.java
  25. +16 −0 src/java/voldemort/client/StoreClientFactory.java
  26. +16 −0 src/java/voldemort/client/UpdateAction.java
  27. +16 −0 src/java/voldemort/client/VoldemortProtocol.java
  28. +23 −7 src/java/voldemort/cluster/Cluster.java
  29. +20 −4 src/java/voldemort/cluster/Node.java
  30. +16 −0 src/java/voldemort/cluster/NodeStatus.java
  31. +27 −11 src/java/voldemort/routing/ConsistentRoutingStrategy.java
  32. +16 −0 src/java/voldemort/routing/RouteToAllStrategy.java
  33. +16 −0 src/java/voldemort/routing/RoutingStrategy.java
  34. +16 −0 src/java/voldemort/serialization/DefaultSerializerFactory.java
  35. +16 −0 src/java/voldemort/serialization/IdentitySerializer.java
  36. +19 −3 src/java/voldemort/serialization/ObjectSerializer.java
  37. +16 −0 src/java/voldemort/serialization/SerializationException.java
  38. +16 −0 src/java/voldemort/serialization/Serializer.java
  39. +16 −0 src/java/voldemort/serialization/SerializerDefinition.java
  40. +16 −0 src/java/voldemort/serialization/SerializerFactory.java
  41. +20 −4 src/java/voldemort/serialization/SlopSerializer.java
  42. +16 −0 src/java/voldemort/serialization/StringSerializer.java
  43. +46 −31 src/java/voldemort/serialization/VersionedSerializer.java
  44. +17 −0 src/java/voldemort/serialization/VoldemortOpCode.java
  45. +40 −12 src/java/voldemort/serialization/VoldemortOperation.java
  46. +16 −0 src/java/voldemort/serialization/json/EndOfFileException.java
  47. +16 −0 src/java/voldemort/serialization/json/JsonReader.java
  48. +16 −0 src/java/voldemort/serialization/json/JsonTypeDefinition.java
  49. +16 −0 src/java/voldemort/serialization/json/JsonTypeSerializer.java
  50. +18 −2 src/java/voldemort/serialization/json/JsonTypes.java
  51. +19 −3 src/java/voldemort/server/AbstractService.java
  52. +17 −1 src/java/voldemort/server/VoldemortConfig.java
  53. +16 −0 src/java/voldemort/server/VoldemortServer.java
  54. +16 −0 src/java/voldemort/server/VoldemortService.java
  55. +18 −2 src/java/voldemort/server/http/HttpService.java
  56. +26 −10 src/java/voldemort/server/http/StoreServlet.java
  57. +19 −3 src/java/voldemort/server/http/VoldemortServletContextListener.java
  58. +16 −0 src/java/voldemort/server/http/gui/AdminServlet.java
  59. +21 −5 src/java/voldemort/server/http/gui/QueryServlet.java
  60. +17 −1 src/java/voldemort/server/http/gui/VelocityEngine.java
  61. +16 −0 src/java/voldemort/server/http/gui/templates/admin.vm
  62. +16 −0 src/java/voldemort/server/http/gui/templates/query.vm
  63. +21 −5 src/java/voldemort/server/jmx/JmxService.java
  64. +16 −0 src/java/voldemort/server/scheduler/DataCleanupJob.java
  65. +16 −0 src/java/voldemort/server/scheduler/RebalancingJob.java
  66. +16 −0 src/java/voldemort/server/scheduler/SchedulerService.java
  67. +17 −1 src/java/voldemort/server/scheduler/SlopPusherJob.java
  68. +16 −0 src/java/voldemort/server/socket/SocketServer.java
  69. +16 −0 src/java/voldemort/server/socket/SocketService.java
  70. +16 −0 src/java/voldemort/server/socket/StreamStoreRequestHandler.java
  71. +20 −3 src/java/voldemort/server/storage/StorageService.java
  72. +16 −0 src/java/voldemort/store/DelegatingStore.java
  73. +19 −3 src/java/voldemort/store/Entry.java
  74. +18 −2 src/java/voldemort/store/ErrorCodeMapper.java
  75. +16 −0 src/java/voldemort/store/InsufficientOperationalNodesException.java
  76. +18 −2 src/java/voldemort/store/KeyWrapper.java
  77. +16 −0 src/java/voldemort/store/ObsoleteVersionException.java
  78. +16 −0 src/java/voldemort/store/PersistenceFailureException.java
  79. +39 −22 src/java/voldemort/store/StorageConfiguration.java
  80. +34 −11 src/java/voldemort/store/StorageEngine.java
  81. +16 −0 src/java/voldemort/store/StorageEngineType.java
  82. +16 −0 src/java/voldemort/store/StorageInitializationException.java
  83. +16 −0 src/java/voldemort/store/Store.java
  84. +16 −0 src/java/voldemort/store/StoreDefinition.java
  85. +16 −0 src/java/voldemort/store/StoreOperationFailureException.java
  86. +17 −1 src/java/voldemort/store/StoreUtils.java
  87. +16 −0 src/java/voldemort/store/UnknownFailure.java
  88. +16 −0 src/java/voldemort/store/UnreachableStoreException.java
  89. +22 −6 src/java/voldemort/store/bdb/BdbStorageConfiguration.java
  90. +53 −37 src/java/voldemort/store/bdb/BdbStorageEngine.java
  91. +35 −19 src/java/voldemort/store/filesystem/FilesystemStorageEngine.java
  92. +19 −3 src/java/voldemort/store/gzip/GzipStore.java
  93. +20 −4 src/java/voldemort/store/http/HttpResponseCodeErrorMapper.java
  94. +31 −15 src/java/voldemort/store/http/HttpStore.java
  95. +23 −7 src/java/voldemort/store/logging/LoggingStore.java
  96. +17 −1 src/java/voldemort/store/memory/CacheStorageConfiguration.java
  97. +16 −0 src/java/voldemort/store/memory/InMemoryStorageConfiguration.java
  98. +16 −0 src/java/voldemort/store/memory/InMemoryStorageEngine.java
  99. +17 −1 src/java/voldemort/store/metadata/MetadataStore.java
  100. +16 −0 src/java/voldemort/store/mysql/MysqlStorageConfiguration.java
  101. +41 −25 src/java/voldemort/store/mysql/MysqlStorageEngine.java
  102. +16 −0 src/java/voldemort/store/readonly/ExternalSorter.java
  103. +16 −0 src/java/voldemort/store/readonly/JsonStoreBuilder.java
  104. +16 −0 src/java/voldemort/store/readonly/RandomAccessFileStorageConfiguration.java
  105. +16 −0 src/java/voldemort/store/readonly/RandomAccessFileStore.java
  106. +16 −0 src/java/voldemort/store/readonly/StringSorter.java
  107. +19 −3 src/java/voldemort/store/routed/NodeValue.java
  108. +32 −16 src/java/voldemort/store/routed/ReadRepairer.java
  109. +25 −9 src/java/voldemort/store/routed/RoutedStore.java
  110. +16 −0 src/java/voldemort/store/serialized/SerializingStorageEngine.java
  111. +17 −1 src/java/voldemort/store/serialized/SerializingStore.java
  112. +18 −2 src/java/voldemort/store/slop/Slop.java
  113. +16 −0 src/java/voldemort/store/slop/SlopDetectingStore.java
  114. +25 −7 src/java/voldemort/store/slop/SloppyStore.java
  115. +16 −0 src/java/voldemort/store/socket/SocketAndStreams.java
  116. +18 −2 src/java/voldemort/store/socket/SocketDestination.java
  117. +20 −4 src/java/voldemort/store/socket/SocketPool.java
  118. +18 −2 src/java/voldemort/store/socket/SocketPoolableObjectFactory.java
  119. +22 −6 src/java/voldemort/store/socket/SocketStore.java
  120. +19 −3 src/java/voldemort/store/stats/StatTrackingStore.java
  121. +16 −0 src/java/voldemort/store/versioned/InconsistencyResolvingStore.java
  122. +16 −0 src/java/voldemort/store/versioned/VersionIncrementingStore.java
  123. +53 −37 src/java/voldemort/utils/ByteUtils.java
  124. +23 −7 src/java/voldemort/utils/ClosableIterator.java
  125. +23 −8 src/java/voldemort/utils/ConfigurationException.java
  126. +16 −0 src/java/voldemort/utils/ConstantHashFunction.java
  127. +16 −0 src/java/voldemort/utils/DefaultIterable.java
  128. +20 −4 src/java/voldemort/utils/FnvHashFunction.java
  129. +16 −0 src/java/voldemort/utils/HashFunction.java
  130. +41 −25 src/java/voldemort/utils/JmxUtils.java
  131. +40 −24 src/java/voldemort/utils/Props.java
  132. +22 −6 src/java/voldemort/utils/ReflectUtils.java
  133. +16 −0 src/java/voldemort/utils/SystemTime.java
  134. +16 −0 src/java/voldemort/utils/Time.java
  135. +16 −0 src/java/voldemort/utils/UndefinedPropertyException.java
  136. +23 −7 src/java/voldemort/utils/Utils.java
  137. +17 −1 src/java/voldemort/versioning/ArbitraryInconsistencyResolver.java
  138. +19 −3 src/java/voldemort/versioning/ChainedResolver.java
  139. +22 −6 src/java/voldemort/versioning/ClockEntry.java
  140. +17 −1 src/java/voldemort/versioning/FailingInconsistencyResolver.java
  141. +16 −0 src/java/voldemort/versioning/InconsistencyResolver.java
  142. +16 −0 src/java/voldemort/versioning/InconsistentDataException.java
  143. +18 −2 src/java/voldemort/versioning/MergingInconsitencyResolver.java
  144. +16 −0 src/java/voldemort/versioning/ObjectMerger.java
  145. +16 −0 src/java/voldemort/versioning/Occured.java
  146. +17 −1 src/java/voldemort/versioning/TimeBasedInconsistencyResolver.java
  147. +18 −2 src/java/voldemort/versioning/VectorClock.java
  148. +16 −0 src/java/voldemort/versioning/VectorClockInconsistencyResolver.java
  149. +31 −13 src/java/voldemort/versioning/Version.java
  150. +21 −5 src/java/voldemort/versioning/Versioned.java
  151. +19 −3 src/java/voldemort/xml/ClusterMapper.java
  152. +16 −0 src/java/voldemort/xml/MappingException.java
  153. +20 −4 src/java/voldemort/xml/StoreDefinitionsMapper.java
  154. +24 −6 test/common/voldemort/BlockingInputStream.java
  155. +23 −5 test/common/voldemort/BlockingOutputStream.java
  156. +22 −6 test/common/voldemort/MockTime.java
  157. +42 −23 test/common/voldemort/ServerTestUtils.java
  158. +16 −0 test/common/voldemort/TestUtils.java
  159. +16 −0 test/common/voldemort/VoldemortTestConstants.java
  160. +16 −0 test/common/voldemort/store/FailingStore.java
  161. +16 −0 test/common/voldemort/store/SleepyStore.java
  162. +17 −1 test/integration/voldemort/ClientServerTest.java
  163. +16 −0 test/integration/voldemort/InMemoryMultiThreadedTest.java
  164. +32 −11 test/integration/voldemort/MultithreadedStressTest.java
  165. +17 −1 test/integration/voldemort/RandomAccessFileStoreTest.java
  166. +18 −2 test/integration/voldemort/ReadJson.java
  167. +39 −15 test/integration/voldemort/ReadOnlyStoreBuilder.java
  168. +16 −0 test/integration/voldemort/TestArrayCopy.java
  169. +33 −16 test/integration/voldemort/partition/FnvHashFunctionTester.java
  170. +48 −29 test/integration/voldemort/performance/AbstractLoadTestHarness.java
  171. +51 −29 test/integration/voldemort/performance/BdbGrowth.java
  172. +16 −0 test/integration/voldemort/performance/CacheStorageEnginePerformanceTest.java
  173. +38 −14 test/integration/voldemort/performance/HttpClientBench.java
  174. +34 −18 test/integration/voldemort/performance/LocalDirectLoadTest.java
  175. +48 −28 test/integration/voldemort/performance/LocalRoutedStoreLoadTest.java
  176. +63 −27 test/integration/voldemort/performance/MysqlBench.java
  177. +38 −13 test/integration/voldemort/performance/MysqlGrowth.java
  178. +52 −35 test/integration/voldemort/performance/PerformanceTest.java
  179. +45 −17 test/integration/voldemort/performance/RemoteHttpStoreLoadTest.java
  180. +44 −19 test/integration/voldemort/performance/RemoteStoreComparisonTest.java
  181. +80 −56 test/integration/voldemort/performance/RemoteTest.java
  182. +28 −11 test/integration/voldemort/performance/SemiLocalHttpStoreLoadTest.java
  183. +173 −133 test/unit/voldemort/UtilsTest.java
  184. +16 −0 test/unit/voldemort/client/AbstractStoreClientFactoryTest.java
  185. +38 −11 test/unit/voldemort/client/HttpStoreClientFactoryTest.java
  186. +34 −11 test/unit/voldemort/client/SocketStoreClientFactoryTest.java
  187. +49 −13 test/unit/voldemort/cluster/TestCluster.java
  188. +138 −113 test/unit/voldemort/routing/ConsistentRoutingStrategyTest.java
  189. +21 −11 test/unit/voldemort/routing/PartitionedRoutingStrategyTest.java
  190. +18 −2 test/unit/voldemort/scheduled/DataCleanupJobTest.java
  191. +70 −45 test/unit/voldemort/scheduled/SlopPusherTest.java
  192. +49 −17 test/unit/voldemort/serialization/SlopSerializerTest.java
  193. +44 −25 test/unit/voldemort/serialization/VersionedSerializerTest.java
  194. +16 −0 test/unit/voldemort/serialization/json/JsonReaderTest.java
  195. +16 −0 test/unit/voldemort/serialization/json/JsonTypeSerializerTest.java
  196. +27 −11 test/unit/voldemort/server/ServiceTest.java
  197. +25 −10 test/unit/voldemort/server/socket/SocketPoolTest.java
  198. +193 −159 test/unit/voldemort/store/BasicStoreTest.java
  199. +37 −21 test/unit/voldemort/store/ByteArrayStoreTest.java
  200. +86 −70 test/unit/voldemort/store/StorageEngineTest.java
  201. +80 −64 test/unit/voldemort/store/bdb/BdbStorageEngineTest.java
  202. +20 −4 test/unit/voldemort/store/filesystem/FilesystemStorageEngineTest.java
  203. +74 −58 test/unit/voldemort/store/http/HttpStoreTest.java
  204. +18 −2 test/unit/voldemort/store/logging/LoggingStoreTest.java
  205. +16 −0 test/unit/voldemort/store/memory/CacheStorageEngineTest.java
  206. +28 −12 test/unit/voldemort/store/memory/InMemoryStorageEngineTest.java
  207. +20 −4 test/unit/voldemort/store/metadata/MetadataStoreTest.java
  208. +22 −6 test/unit/voldemort/store/mysql/MysqlStorageEngineTest.java
  209. +16 −0 test/unit/voldemort/store/readonly/ExternalSorterTest.java
  210. +16 −0 test/unit/voldemort/store/readonly/JsonStoreBuilderTest.java
  211. +151 −131 test/unit/voldemort/store/routed/ReadRepairerTest.java
  212. +257 −178 test/unit/voldemort/store/routed/RoutedStoreTest.java
  213. +20 −5 test/unit/voldemort/store/serialized/SerializingStoreTest.java
  214. +34 −18 test/unit/voldemort/store/slop/SloppyStoreTest.java
  215. +31 −14 test/unit/voldemort/store/socket/SocketStoreTest.java
  216. +19 −6 test/unit/voldemort/store/socket/SocketStreamHandlerTest.java
  217. +42 −27 test/unit/voldemort/versioning/ClockEntryTest.java
  218. +64 −42 test/unit/voldemort/versioning/VectorClockInconsistencyResolverTest.java
  219. +16 −0 test/unit/voldemort/versioning/VectorClockTest.java
  220. +16 −0 test/unit/voldemort/versioning/VersionedTest.java
  221. +33 −17 test/unit/voldemort/xml/ClusterMapperTest.java
  222. +17 −1 test/unit/voldemort/xml/StoreDefinitionMapperTest.java
@@ -1,4 +1,4 @@
-#Fri Nov 28 00:09:45 PST 2008
+#Tue Jan 13 14:27:58 PST 2009
cleanup.add_default_serial_version_id=true
cleanup.add_generated_serial_version_id=false
cleanup.add_missing_annotations=true
@@ -64,7 +64,7 @@ org.eclipse.jdt.ui.keywordthis=false
org.eclipse.jdt.ui.ondemandthreshold=99
org.eclipse.jdt.ui.overrideannotation=true
org.eclipse.jdt.ui.staticondemandthreshold=99
-org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8"?><templates><template autoinsert\="false" context\="gettercomment_context" deleted\="false" description\="Comment for getter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.gettercomment" name\="gettercomment"></template><template autoinsert\="false" context\="settercomment_context" deleted\="false" description\="Comment for setter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.settercomment" name\="settercomment"></template><template autoinsert\="true" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment">/**\n * ${tags}\n */</template><template autoinsert\="false" context\="filecomment_context" deleted\="false" description\="Comment for created Java files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.filecomment" name\="filecomment"></template><template autoinsert\="true" context\="typecomment_context" deleted\="false" description\="Comment for created types" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.typecomment" name\="typecomment">/**\n * @author ${user}\n *\n * ${tags}\n */</template><template autoinsert\="true" context\="fieldcomment_context" deleted\="false" description\="Comment for fields" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment">/**\n * \n */</template><template autoinsert\="true" context\="methodcomment_context" deleted\="false" description\="Comment for non-overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodcomment" name\="methodcomment">/**\n * ${tags}\n */</template><template autoinsert\="false" context\="overridecomment_context" deleted\="false" description\="Comment for overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.overridecomment" name\="overridecomment"></template><template autoinsert\="true" context\="delegatecomment_context" deleted\="false" description\="Comment for delegate methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment">/**\n * ${tags}\n * ${see_to_target}\n */</template><template autoinsert\="false" context\="newtype_context" deleted\="false" description\="Newly created files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.newtype" name\="newtype">${package_declaration}\n\n${typecomment}\n${type_declaration}</template><template autoinsert\="true" context\="classbody_context" deleted\="false" description\="Code in new class type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.classbody" name\="classbody">\n</template><template autoinsert\="true" context\="interfacebody_context" deleted\="false" description\="Code in new interface type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.interfacebody" name\="interfacebody">\n</template><template autoinsert\="true" context\="enumbody_context" deleted\="false" description\="Code in new enum type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.enumbody" name\="enumbody">\n</template><template autoinsert\="true" context\="annotationbody_context" deleted\="false" description\="Code in new annotation type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.annotationbody" name\="annotationbody">\n</template><template autoinsert\="true" context\="catchblock_context" deleted\="false" description\="Code in new catch blocks" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.catchblock" name\="catchblock">// ${todo} Auto-generated catch block\n${exception_var}.printStackTrace();</template><template autoinsert\="false" context\="methodbody_context" deleted\="false" description\="Code in created method stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodbody" name\="methodbody">${body_statement}</template><template autoinsert\="false" context\="constructorbody_context" deleted\="false" description\="Code in created constructor stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorbody" name\="constructorbody">${body_statement}</template><template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="Code in created getters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.getterbody" name\="getterbody">return ${field};</template><template autoinsert\="true" context\="setterbody_context" deleted\="false" description\="Code in created setters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.setterbody" name\="setterbody">${field} \= ${param};</template></templates>
+org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8"?><templates><template autoinsert\="false" context\="gettercomment_context" deleted\="false" description\="Comment for getter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.gettercomment" name\="gettercomment"></template><template autoinsert\="false" context\="settercomment_context" deleted\="false" description\="Comment for setter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.settercomment" name\="settercomment"></template><template autoinsert\="true" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment">/**\n * ${tags}\n */</template><template autoinsert\="false" context\="filecomment_context" deleted\="false" description\="Comment for created Java files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.filecomment" name\="filecomment">/*\n * Copyright 2008-2009 LinkedIn, Inc\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http\://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */</template><template autoinsert\="true" context\="typecomment_context" deleted\="false" description\="Comment for created types" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.typecomment" name\="typecomment">/**\n * @author ${user}\n *\n * ${tags}\n */</template><template autoinsert\="true" context\="fieldcomment_context" deleted\="false" description\="Comment for fields" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment">/**\n * \n */</template><template autoinsert\="true" context\="methodcomment_context" deleted\="false" description\="Comment for non-overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodcomment" name\="methodcomment">/**\n * ${tags}\n */</template><template autoinsert\="false" context\="overridecomment_context" deleted\="false" description\="Comment for overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.overridecomment" name\="overridecomment"></template><template autoinsert\="true" context\="delegatecomment_context" deleted\="false" description\="Comment for delegate methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment">/**\n * ${tags}\n * ${see_to_target}\n */</template><template autoinsert\="false" context\="newtype_context" deleted\="false" description\="Newly created files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.newtype" name\="newtype">${package_declaration}\n\n${typecomment}\n${type_declaration}</template><template autoinsert\="true" context\="classbody_context" deleted\="false" description\="Code in new class type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.classbody" name\="classbody">\n</template><template autoinsert\="true" context\="interfacebody_context" deleted\="false" description\="Code in new interface type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.interfacebody" name\="interfacebody">\n</template><template autoinsert\="true" context\="enumbody_context" deleted\="false" description\="Code in new enum type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.enumbody" name\="enumbody">\n</template><template autoinsert\="true" context\="annotationbody_context" deleted\="false" description\="Code in new annotation type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.annotationbody" name\="annotationbody">\n</template><template autoinsert\="true" context\="catchblock_context" deleted\="false" description\="Code in new catch blocks" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.catchblock" name\="catchblock">// ${todo} Auto-generated catch block\n${exception_var}.printStackTrace();</template><template autoinsert\="false" context\="methodbody_context" deleted\="false" description\="Code in created method stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodbody" name\="methodbody">${body_statement}</template><template autoinsert\="false" context\="constructorbody_context" deleted\="false" description\="Code in created constructor stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorbody" name\="constructorbody">${body_statement}</template><template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="Code in created getters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.getterbody" name\="getterbody">return ${field};</template><template autoinsert\="true" context\="setterbody_context" deleted\="false" description\="Code in created setters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.setterbody" name\="setterbody">${field} \= ${param};</template></templates>
sp_cleanup.add_default_serial_version_id=true
sp_cleanup.add_generated_serial_version_id=false
sp_cleanup.add_missing_annotations=true
View
@@ -175,7 +175,18 @@
END OF TERMS AND CONDITIONS
- Copyright 2009 LinkedIn, Inc.
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -188,3 +199,4 @@
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.
+
View
@@ -1,6 +1,6 @@
#Build Number for ANT. Do not edit!
-#Tue Jan 13 13:36:23 PST 2009
-build.number=142
+#Tue Jan 13 14:19:40 PST 2009
+build.number=143
>>>>>>>=1.8
-<<<<<<<=build_number.txt
=\=\=\=\=\=\=
+<<<<<<<=build_number.txt
@@ -1,3 +1,19 @@
+/*
+ * Copyright 2008-2009 LinkedIn, 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
+ *
+ * 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.
+ */
+
package voldemort.examples;
import voldemort.client.SocketStoreClientFactory;
@@ -8,31 +24,30 @@
public class ClientExample {
public static void main(String[] args) {
-
- // In real life this stuff would get wired in
- int numThreads = 10;
+
+ // In real life this stuff would get wired in
+ int numThreads = 10;
int maxQueuedRequests = 10;
- int maxConnectionsPerNode = 10;
+ int maxConnectionsPerNode = 10;
int maxTotalConnections = 100;
String bootstrapUrl = "tcp://localhost:6666";
- StoreClientFactory factory =
- new SocketStoreClientFactory(numThreads,
- numThreads,
- maxQueuedRequests,
- maxConnectionsPerNode,
- maxTotalConnections,
- bootstrapUrl);
-
- StoreClient<String,String> client = factory.getStoreClient("my_store_name");
-
+ StoreClientFactory factory = new SocketStoreClientFactory(numThreads,
+ numThreads,
+ maxQueuedRequests,
+ maxConnectionsPerNode,
+ maxTotalConnections,
+ bootstrapUrl);
+
+ StoreClient<String, String> client = factory.getStoreClient("my_store_name");
+
// get the value
Versioned<String> version = client.get("some_key");
-
+
// modify the value
version.setObject("new_value");
-
+
// update the value
client.put("some_key", version);
}
-
+
}
Oops, something went wrong.

0 comments on commit 1e68b44

Please sign in to comment.