Skip to content

Commit b6314bc

Browse files
Dennis ChrisDennis Chris
authored andcommitted
TAB-4711 : copy tc messaging source code to an external module
svn path=/tc-messaging/trunk/; revision=25049
0 parents  commit b6314bc

File tree

404 files changed

+37842
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

404 files changed

+37842
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/.classpath
2+
/.project
3+
/target

.settings/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/org.eclipse.core.resources.prefs
2+
/org.eclipse.m2e.core.prefs

.settings/org.eclipse.jdt.core.prefs

Lines changed: 347 additions & 0 deletions
Large diffs are not rendered by default.

.settings/org.eclipse.jdt.ui.prefs

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
eclipse.preferences.version=1
2+
editor_save_participant_org.eclipse.jdt.ui.postsavelistener.cleanup=true
3+
formatter_profile=_Terracotta profile
4+
formatter_settings_version=11
5+
org.eclipse.jdt.ui.exception.name=e
6+
org.eclipse.jdt.ui.gettersetter.use.is=true
7+
org.eclipse.jdt.ui.ignorelowercasenames=true
8+
org.eclipse.jdt.ui.importorder=org;com;java;javax;
9+
org.eclipse.jdt.ui.javadoc=false
10+
org.eclipse.jdt.ui.keywordthis=false
11+
org.eclipse.jdt.ui.ondemandthreshold=99
12+
org.eclipse.jdt.ui.overrideannotation=true
13+
org.eclipse.jdt.ui.staticondemandthreshold=99
14+
org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><templates><template autoinsert\="true" context\="gettercomment_context" deleted\="false" description\="Comment for getter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.gettercomment" name\="gettercomment"/><template autoinsert\="true" context\="settercomment_context" deleted\="false" description\="Comment for setter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.settercomment" name\="settercomment"/><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"/><template autoinsert\="true" context\="filecomment_context" deleted\="false" description\="Comment for created Java files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.filecomment" name\="filecomment">/**\r\n * \r\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">/**\r\n * \r\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"/><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"/><template autoinsert\="true" context\="overridecomment_context" deleted\="false" description\="Comment for overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.overridecomment" name\="overridecomment"/><template autoinsert\="false" context\="newtype_context" deleted\="false" description\="Newly created files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.newtype" name\="newtype">/*\r\n * All content copyright Terracotta, Inc., unless otherwise indicated. All rights reserved.\r\n */\r\n${package_declaration}\r\n\r\n${typecomment}\r\n${type_declaration}</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">throw ${exception_var};</template><template autoinsert\="true" context\="methodbody_context" deleted\="false" description\="Code in created method stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodbody" name\="methodbody">throw new ImplementMe();\r\n${body_statement}</template><template autoinsert\="true" 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><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">/**\r\n * ${tags}\r\n * ${see_to_target}\r\n */</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">\r\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">\r\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">\r\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">\r\n</template><template autoinsert\="true" context\="gettercomment_context" deleted\="false" description\="Comment for getter function" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.gettercomment" name\="gettercomment">/**\r\n * @return the ${bare_field_name}\r\n */</template><template autoinsert\="true" context\="settercomment_context" deleted\="false" description\="Comment for setter function" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.settercomment" name\="settercomment">/**\r\n * @param ${param} the ${bare_field_name} to set\r\n */</template><template autoinsert\="true" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment">/**\r\n * ${tags}\r\n */</template><template autoinsert\="true" context\="filecomment_context" deleted\="false" description\="Comment for created JavaScript files" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.filecomment" name\="filecomment">/**\r\n * \r\n */</template><template autoinsert\="true" context\="typecomment_context" deleted\="false" description\="Comment for created types" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.typecomment" name\="typecomment">/**\r\n * @author ${user}\r\n *\r\n * ${tags}\r\n */</template><template autoinsert\="true" context\="fieldcomment_context" deleted\="false" description\="Comment for vars" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment">/**\r\n * \r\n */</template><template autoinsert\="true" context\="methodcomment_context" deleted\="false" description\="Comment for non-overriding function" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.methodcomment" name\="methodcomment">/**\r\n * ${tags}\r\n */</template><template autoinsert\="true" context\="overridecomment_context" deleted\="false" description\="Comment for overriding functions" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.overridecomment" name\="overridecomment">/* (non-Jsdoc)\r\n * ${see_to_overridden}\r\n */</template><template autoinsert\="true" context\="delegatecomment_context" deleted\="false" description\="Comment for delegate functions" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment">/**\r\n * ${tags}\r\n * ${see_to_target}\r\n */</template><template autoinsert\="true" context\="newtype_context" deleted\="false" description\="Newly created files" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.newtype" name\="newtype">${filecomment}\r\n${package_declaration}\r\n\r\n${typecomment}\r\n${type_declaration}</template><template autoinsert\="true" context\="classbody_context" deleted\="false" description\="Code in new class type bodies" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.classbody" name\="classbody">\r\n</template><template autoinsert\="true" context\="catchblock_context" deleted\="false" description\="Code in new catch blocks" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.catchblock" name\="catchblock">// ${todo} Auto-generated catch block\r\n${exception_var}.printStackTrace();</template><template autoinsert\="true" context\="methodbody_context" deleted\="false" description\="Code in created function stubs" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.methodbody" name\="methodbody">// ${todo} Auto-generated function stub\r\n${body_statement}</template><template autoinsert\="true" context\="constructorbody_context" deleted\="false" description\="Code in created constructor stubs" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.constructorbody" name\="constructorbody">${body_statement}\r\n// ${todo} Auto-generated constructor stub</template><template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="Code in created getters" enabled\="true" id\="org.eclipse.wst.jsdt.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.wst.jsdt.ui.text.codetemplates.setterbody" name\="setterbody">${field} \= ${param};</template></templates>
15+
sp_cleanup.add_default_serial_version_id=true
16+
sp_cleanup.add_generated_serial_version_id=false
17+
sp_cleanup.add_missing_annotations=true
18+
sp_cleanup.add_missing_deprecated_annotations=true
19+
sp_cleanup.add_missing_methods=false
20+
sp_cleanup.add_missing_nls_tags=false
21+
sp_cleanup.add_missing_override_annotations=true
22+
sp_cleanup.add_missing_override_annotations_interface_methods=true
23+
sp_cleanup.add_serial_version_id=false
24+
sp_cleanup.always_use_blocks=true
25+
sp_cleanup.always_use_parentheses_in_expressions=false
26+
sp_cleanup.always_use_this_for_non_static_field_access=false
27+
sp_cleanup.always_use_this_for_non_static_method_access=false
28+
sp_cleanup.convert_to_enhanced_for_loop=true
29+
sp_cleanup.correct_indentation=false
30+
sp_cleanup.format_source_code=true
31+
sp_cleanup.format_source_code_changes_only=true
32+
sp_cleanup.make_local_variable_final=false
33+
sp_cleanup.make_parameters_final=false
34+
sp_cleanup.make_private_fields_final=true
35+
sp_cleanup.make_type_abstract_if_missing_method=false
36+
sp_cleanup.make_variable_declarations_final=true
37+
sp_cleanup.never_use_blocks=false
38+
sp_cleanup.never_use_parentheses_in_expressions=true
39+
sp_cleanup.on_save_use_additional_actions=true
40+
sp_cleanup.organize_imports=true
41+
sp_cleanup.qualify_static_field_accesses_with_declaring_class=false
42+
sp_cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true
43+
sp_cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true
44+
sp_cleanup.qualify_static_member_accesses_with_declaring_class=false
45+
sp_cleanup.qualify_static_method_accesses_with_declaring_class=false
46+
sp_cleanup.remove_private_constructors=true
47+
sp_cleanup.remove_trailing_whitespaces=true
48+
sp_cleanup.remove_trailing_whitespaces_all=false
49+
sp_cleanup.remove_trailing_whitespaces_ignore_empty=true
50+
sp_cleanup.remove_unnecessary_casts=true
51+
sp_cleanup.remove_unnecessary_nls_tags=false
52+
sp_cleanup.remove_unused_imports=true
53+
sp_cleanup.remove_unused_local_variables=false
54+
sp_cleanup.remove_unused_private_fields=true
55+
sp_cleanup.remove_unused_private_members=false
56+
sp_cleanup.remove_unused_private_methods=true
57+
sp_cleanup.remove_unused_private_types=true
58+
sp_cleanup.sort_members=false
59+
sp_cleanup.sort_members_all=false
60+
sp_cleanup.use_blocks=false
61+
sp_cleanup.use_blocks_only_for_return_and_throw=false
62+
sp_cleanup.use_parentheses_in_expressions=false
63+
sp_cleanup.use_this_for_non_static_field_access=false
64+
sp_cleanup.use_this_for_non_static_field_access_only_if_necessary=true
65+
sp_cleanup.use_this_for_non_static_method_access=false
66+
sp_cleanup.use_this_for_non_static_method_access_only_if_necessary=true

pom.xml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
Apache Maven 2 POM generated by Apache Ivy
4+
http://ant.apache.org/ivy/
5+
Apache Ivy version: 2.2.0 20100923230623
6+
-->
7+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
8+
9+
<modelVersion>4.0.0</modelVersion>
10+
11+
<parent>
12+
<groupId>org.terracotta.forge</groupId>
13+
<artifactId>forge-parent</artifactId>
14+
<version>3.7</version>
15+
</parent>
16+
17+
<groupId>org.terracotta.internal</groupId>
18+
<artifactId>tc-messaging</artifactId>
19+
<packaging>jar</packaging>
20+
<name>Terracotta Messaging</name>
21+
<version>4.2.0-SNAPSHOT</version>
22+
23+
<dependencies>
24+
<dependency>
25+
<groupId>com.terracottatech</groupId>
26+
<artifactId>search</artifactId>
27+
<version>1.4.8</version>
28+
</dependency>
29+
30+
<dependency>
31+
<groupId>junit</groupId>
32+
<artifactId>junit</artifactId>
33+
<version>4.11</version>
34+
<scope>test</scope>
35+
</dependency>
36+
<dependency>
37+
<groupId>org.mockito</groupId>
38+
<artifactId>mockito-all</artifactId>
39+
<version>1.9.5</version>
40+
<scope>test</scope>
41+
</dependency>
42+
</dependencies>
43+
44+
</project>
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/*
2+
* All content copyright Terracotta, Inc., unless otherwise indicated. All rights reserved.
3+
*/
4+
package com.tc.abortable;
5+
6+
public class AbortedOperationException extends Exception {
7+
8+
public AbortedOperationException() {
9+
super();
10+
}
11+
12+
public AbortedOperationException(String message, Throwable cause) {
13+
super(message, cause);
14+
}
15+
16+
public AbortedOperationException(String message) {
17+
super(message);
18+
}
19+
20+
public AbortedOperationException(Throwable cause) {
21+
super(cause);
22+
}
23+
24+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/*
2+
* All content copyright Terracotta, Inc., unless otherwise indicated. All rights reserved.
3+
*/
4+
package com.tc.async.api;
5+
6+
/**
7+
* @author steve Interface for Event Context. It is a tagging interface with no implementation (I'm generally not a big
8+
* tagging interface guy but I'm leaving this for now because seda has it and I'm giving it a chance For more
9+
* information of this kind of stuff google SEDA -Staged Event Driven Architecture
10+
*/
11+
public interface EventContext {
12+
//
13+
14+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/*
2+
* All content copyright Terracotta, Inc., unless otherwise indicated. All rights reserved.
3+
*/
4+
package com.tc.async.api;
5+
6+
/**
7+
* EventContexts should implement this interface if they want to give some order to the processing based on some key. As
8+
* long as keys are the same the will be processed in the order in which they arrive. Between different contexts with
9+
* different keys, the order is not guaranteed.
10+
*/
11+
public interface MultiThreadedEventContext extends EventContext {
12+
13+
Object getKey();
14+
15+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/*
2+
* All content copyright Terracotta, Inc., unless otherwise indicated. All rights reserved.
3+
*/
4+
package com.tc.async.api;
5+
6+
public interface OrderedEventContext extends EventContext {
7+
8+
public long getSequenceID();
9+
10+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/*
2+
* All content copyright Terracotta, Inc., unless otherwise indicated. All rights reserved.
3+
*/
4+
package com.tc.bytes;
5+
6+
public interface BufferPool {
7+
8+
void offer(TCByteBuffer buf) throws InterruptedException;
9+
10+
}

0 commit comments

Comments
 (0)