http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/8bf39571/etc/intellij-java-google-style.xml ---------------------------------------------------------------------- diff --git a/etc/intellij-java-google-style.xml b/etc/intellij-java-google-style.xml new file mode 100644 index 0000000..22d9c23 --- /dev/null +++ b/etc/intellij-java-google-style.xml @@ -0,0 +1,365 @@ +<code_scheme name="GoogleStyle"> + <option name="JAVA_INDENT_OPTIONS"> + <value> + <option name="INDENT_SIZE" value="2" /> + <option name="CONTINUATION_INDENT_SIZE" value="4" /> + <option name="TAB_SIZE" value="8" /> + <option name="USE_TAB_CHARACTER" value="false" /> + <option name="SMART_TABS" value="false" /> + <option name="LABEL_INDENT_SIZE" value="0" /> + <option name="LABEL_INDENT_ABSOLUTE" value="false" /> + <option name="USE_RELATIVE_INDENTS" value="false" /> + </value> + </option> + <option name="OTHER_INDENT_OPTIONS"> + <value> + <option name="INDENT_SIZE" value="2" /> + <option name="CONTINUATION_INDENT_SIZE" value="4" /> + <option name="TAB_SIZE" value="8" /> + <option name="USE_TAB_CHARACTER" value="false" /> + <option name="SMART_TABS" value="false" /> + <option name="LABEL_INDENT_SIZE" value="0" /> + <option name="LABEL_INDENT_ABSOLUTE" value="false" /> + <option name="USE_RELATIVE_INDENTS" value="false" /> + </value> + </option> + <option name="LINE_SEPARATOR" value="
" /> + <option name="CLASS_COUNT_TO_USE_IMPORT_ON_DEMAND" value="99" /> + <option name="NAMES_COUNT_TO_USE_IMPORT_ON_DEMAND" value="99" /> + <option name="PACKAGES_TO_USE_IMPORT_ON_DEMAND"> + <value /> + </option> + <option name="IMPORT_LAYOUT_TABLE"> + <value> + <package name="" withSubpackages="true" static="true" /> + <emptyLine /> + <package name="com.google" withSubpackages="true" static="false" /> + <emptyLine /> + <package name="android" withSubpackages="true" static="false" /> + <package name="antenna" withSubpackages="true" static="false" /> + <package name="antlr" withSubpackages="true" static="false" /> + <package name="ar" withSubpackages="true" static="false" /> + <package name="asposewobfuscated" withSubpackages="true" static="false" /> + <package name="asquare" withSubpackages="true" static="false" /> + <package name="atg" withSubpackages="true" static="false" /> + <package name="au" withSubpackages="true" static="false" /> + <package name="beaver" withSubpackages="true" static="false" /> + <package name="bibtex" withSubpackages="true" static="false" /> + <package name="bmsi" withSubpackages="true" static="false" /> + <package name="bsh" withSubpackages="true" static="false" /> + <package name="ccl" withSubpackages="true" static="false" /> + <package name="cern" withSubpackages="true" static="false" /> + <package name="ChartDirector" withSubpackages="true" static="false" /> + <package name="checkers" withSubpackages="true" static="false" /> + <package name="com" withSubpackages="true" static="false" /> + <package name="COM" withSubpackages="true" static="false" /> + <package name="common" withSubpackages="true" static="false" /> + <package name="contribs" withSubpackages="true" static="false" /> + <package name="corejava" withSubpackages="true" static="false" /> + <package name="cryptix" withSubpackages="true" static="false" /> + <package name="cybervillains" withSubpackages="true" static="false" /> + <package name="dalvik" withSubpackages="true" static="false" /> + <package name="danbikel" withSubpackages="true" static="false" /> + <package name="de" withSubpackages="true" static="false" /> + <package name="EDU" withSubpackages="true" static="false" /> + <package name="eg" withSubpackages="true" static="false" /> + <package name="eu" withSubpackages="true" static="false" /> + <package name="examples" withSubpackages="true" static="false" /> + <package name="fat" withSubpackages="true" static="false" /> + <package name="fit" withSubpackages="true" static="false" /> + <package name="fitlibrary" withSubpackages="true" static="false" /> + <package name="fmpp" withSubpackages="true" static="false" /> + <package name="freemarker" withSubpackages="true" static="false" /> + <package name="gnu" withSubpackages="true" static="false" /> + <package name="groovy" withSubpackages="true" static="false" /> + <package name="groovyjarjarantlr" withSubpackages="true" static="false" /> + <package name="groovyjarjarasm" withSubpackages="true" static="false" /> + <package name="hak" withSubpackages="true" static="false" /> + <package name="hep" withSubpackages="true" static="false" /> + <package name="ie" withSubpackages="true" static="false" /> + <package name="io" withSubpackages="true" static="false" /> + <package name="imageinfo" withSubpackages="true" static="false" /> + <package name="info" withSubpackages="true" static="false" /> + <package name="it" withSubpackages="true" static="false" /> + <package name="jal" withSubpackages="true" static="false" /> + <package name="Jama" withSubpackages="true" static="false" /> + <package name="japa" withSubpackages="true" static="false" /> + <package name="japacheckers" withSubpackages="true" static="false" /> + <package name="jas" withSubpackages="true" static="false" /> + <package name="jasmin" withSubpackages="true" static="false" /> + <package name="javancss" withSubpackages="true" static="false" /> + <package name="javanet" withSubpackages="true" static="false" /> + <package name="javassist" withSubpackages="true" static="false" /> + <package name="javazoom" withSubpackages="true" static="false" /> + <package name="java_cup" withSubpackages="true" static="false" /> + <package name="jcifs" withSubpackages="true" static="false" /> + <package name="jetty" withSubpackages="true" static="false" /> + <package name="JFlex" withSubpackages="true" static="false" /> + <package name="jj2000" withSubpackages="true" static="false" /> + <package name="jline" withSubpackages="true" static="false" /> + <package name="jp" withSubpackages="true" static="false" /> + <package name="JSci" withSubpackages="true" static="false" /> + <package name="jsr166y" withSubpackages="true" static="false" /> + <package name="junit" withSubpackages="true" static="false" /> + <package name="jxl" withSubpackages="true" static="false" /> + <package name="jxxload_help" withSubpackages="true" static="false" /> + <package name="kawa" withSubpackages="true" static="false" /> + <package name="kea" withSubpackages="true" static="false" /> + <package name="libcore" withSubpackages="true" static="false" /> + <package name="libsvm" withSubpackages="true" static="false" /> + <package name="lti" withSubpackages="true" static="false" /> + <package name="memetic" withSubpackages="true" static="false" /> + <package name="mt" withSubpackages="true" static="false" /> + <package name="mx4j" withSubpackages="true" static="false" /> + <package name="net" withSubpackages="true" static="false" /> + <package name="netscape" withSubpackages="true" static="false" /> + <package name="nl" withSubpackages="true" static="false" /> + <package name="nu" withSubpackages="true" static="false" /> + <package name="oauth" withSubpackages="true" static="false" /> + <package name="ognl" withSubpackages="true" static="false" /> + <package name="opennlp" withSubpackages="true" static="false" /> + <package name="oracle" withSubpackages="true" static="false" /> + <package name="org" withSubpackages="true" static="false" /> + <package name="penn2dg" withSubpackages="true" static="false" /> + <package name="pennconverter" withSubpackages="true" static="false" /> + <package name="pl" withSubpackages="true" static="false" /> + <package name="prefuse" withSubpackages="true" static="false" /> + <package name="proguard" withSubpackages="true" static="false" /> + <package name="repackage" withSubpackages="true" static="false" /> + <package name="scm" withSubpackages="true" static="false" /> + <package name="se" withSubpackages="true" static="false" /> + <package name="serp" withSubpackages="true" static="false" /> + <package name="simple" withSubpackages="true" static="false" /> + <package name="soot" withSubpackages="true" static="false" /> + <package name="sqlj" withSubpackages="true" static="false" /> + <package name="src" withSubpackages="true" static="false" /> + <package name="ssa" withSubpackages="true" static="false" /> + <package name="sun" withSubpackages="true" static="false" /> + <package name="sunlabs" withSubpackages="true" static="false" /> + <package name="tcl" withSubpackages="true" static="false" /> + <package name="testdata" withSubpackages="true" static="false" /> + <package name="testshell" withSubpackages="true" static="false" /> + <package name="testsuite" withSubpackages="true" static="false" /> + <package name="twitter4j" withSubpackages="true" static="false" /> + <package name="uk" withSubpackages="true" static="false" /> + <package name="ViolinStrings" withSubpackages="true" static="false" /> + <package name="weka" withSubpackages="true" static="false" /> + <package name="wet" withSubpackages="true" static="false" /> + <package name="winstone" withSubpackages="true" static="false" /> + <package name="woolfel" withSubpackages="true" static="false" /> + <package name="wowza" withSubpackages="true" static="false" /> + <emptyLine /> + <package name="java" withSubpackages="true" static="false" /> + <package name="javax" withSubpackages="true" static="false" /> + <package name="" withSubpackages="true" static="false" /> + </value> + </option> + <option name="STATIC_METHODS_ORDER_WEIGHT" value="5" /> + <option name="METHODS_ORDER_WEIGHT" value="4" /> + <option name="RIGHT_MARGIN" value="100" /> + <option name="JD_ALIGN_PARAM_COMMENTS" value="false" /> + <option name="JD_ALIGN_EXCEPTION_COMMENTS" value="false" /> + <option name="JD_ADD_BLANK_AFTER_DESCRIPTION" value="false" /> + <option name="JD_P_AT_EMPTY_LINES" value="false" /> + <option name="JD_KEEP_EMPTY_PARAMETER" value="false" /> + <option name="JD_KEEP_EMPTY_EXCEPTION" value="false" /> + <option name="JD_KEEP_EMPTY_RETURN" value="false" /> + <option name="HTML_KEEP_BLANK_LINES" value="1" /> + <option name="HTML_ALIGN_TEXT" value="true" /> + <option name="KEEP_LINE_BREAKS" value="false" /> + <option name="KEEP_FIRST_COLUMN_COMMENT" value="false" /> + <option name="KEEP_CONTROL_STATEMENT_IN_ONE_LINE" value="false" /> + <option name="KEEP_BLANK_LINES_IN_DECLARATIONS" value="1" /> + <option name="KEEP_BLANK_LINES_IN_CODE" value="1" /> + <option name="KEEP_BLANK_LINES_BEFORE_RBRACE" value="1" /> + <option name="BLANK_LINES_AROUND_CLASS" value="0" /> + <option name="BLANK_LINES_AROUND_FIELD" value="1" /> + <option name="BLANK_LINES_AFTER_CLASS_HEADER" value="1" /> + <option name="BRACE_STYLE" value="2" /> + <option name="CLASS_BRACE_STYLE" value="2" /> + <option name="METHOD_BRACE_STYLE" value="2" /> + <option name="ELSE_ON_NEW_LINE" value="true" /> + <option name="WHILE_ON_NEW_LINE" value="true" /> + <option name="CATCH_ON_NEW_LINE" value="true" /> + <option name="FINALLY_ON_NEW_LINE" value="true" /> + <option name="ALIGN_MULTILINE_PARAMETERS_IN_CALLS" value="true" /> + <option name="ALIGN_MULTILINE_BINARY_OPERATION" value="true" /> + <option name="ALIGN_MULTILINE_ASSIGNMENT" value="true" /> + <option name="ALIGN_MULTILINE_TERNARY_OPERATION" value="true" /> + <option name="ALIGN_MULTILINE_THROWS_LIST" value="true" /> + <option name="ALIGN_MULTILINE_EXTENDS_LIST" value="true" /> + <option name="ALIGN_MULTILINE_PARENTHESIZED_EXPRESSION" value="true" /> + <option name="ALIGN_MULTILINE_ARRAY_INITIALIZER_EXPRESSION" value="true" /> + <option name="SPACE_AFTER_TYPE_CAST" value="false" /> + <option name="SPACE_BEFORE_IF_PARENTHESES" value="false" /> + <option name="SPACE_BEFORE_WHILE_PARENTHESES" value="false" /> + <option name="SPACE_BEFORE_FOR_PARENTHESES" value="false" /> + <option name="SPACE_BEFORE_CATCH_PARENTHESES" value="false" /> + <option name="SPACE_BEFORE_SWITCH_PARENTHESES" value="false" /> + <option name="SPACE_BEFORE_SYNCHRONIZED_PARENTHESES" value="false" /> + <option name="CALL_PARAMETERS_WRAP" value="1" /> + <option name="CALL_PARAMETERS_LPAREN_ON_NEXT_LINE" value="true" /> + <option name="METHOD_PARAMETERS_WRAP" value="1" /> + <option name="EXTENDS_LIST_WRAP" value="1" /> + <option name="THROWS_LIST_WRAP" value="1" /> + <option name="EXTENDS_KEYWORD_WRAP" value="1" /> + <option name="THROWS_KEYWORD_WRAP" value="1" /> + <option name="METHOD_CALL_CHAIN_WRAP" value="1" /> + <option name="BINARY_OPERATION_WRAP" value="1" /> + <option name="BINARY_OPERATION_SIGN_ON_NEXT_LINE" value="true" /> + <option name="TERNARY_OPERATION_WRAP" value="1" /> + <option name="TERNARY_OPERATION_SIGNS_ON_NEXT_LINE" value="true" /> + <option name="FOR_STATEMENT_WRAP" value="1" /> + <option name="ARRAY_INITIALIZER_WRAP" value="1" /> + <option name="ASSIGNMENT_WRAP" value="5" /> + <option name="WRAP_COMMENTS" value="true" /> + <option name="IF_BRACE_FORCE" value="3" /> + <option name="DOWHILE_BRACE_FORCE" value="3" /> + <option name="WHILE_BRACE_FORCE" value="3" /> + <option name="FOR_BRACE_FORCE" value="3" /> + <JavaCodeStyleSettings> + <option name="DO_NOT_WRAP_AFTER_SINGLE_ANNOTATION" value="true" /> + <option name="CLASS_NAMES_IN_JAVADOC" value="3" /> + </JavaCodeStyleSettings> + <MarkdownNavigatorCodeStyleSettings> + <option name="RIGHT_MARGIN" value="72" /> + </MarkdownNavigatorCodeStyleSettings> + <XML> + <option name="XML_KEEP_BLANK_LINES" value="1" /> + <option name="XML_LEGACY_SETTINGS_IMPORTED" value="true" /> + </XML> + <ADDITIONAL_INDENT_OPTIONS fileType="haml"> + <option name="INDENT_SIZE" value="2" /> + </ADDITIONAL_INDENT_OPTIONS> + <ADDITIONAL_INDENT_OPTIONS fileType="java"> + <option name="INDENT_SIZE" value="2" /> + <option name="CONTINUATION_INDENT_SIZE" value="4" /> + <option name="TAB_SIZE" value="8" /> + </ADDITIONAL_INDENT_OPTIONS> + <ADDITIONAL_INDENT_OPTIONS fileType="js"> + <option name="CONTINUATION_INDENT_SIZE" value="4" /> + </ADDITIONAL_INDENT_OPTIONS> + <ADDITIONAL_INDENT_OPTIONS fileType="sass"> + <option name="INDENT_SIZE" value="2" /> + </ADDITIONAL_INDENT_OPTIONS> + <ADDITIONAL_INDENT_OPTIONS fileType="yml"> + <option name="INDENT_SIZE" value="2" /> + </ADDITIONAL_INDENT_OPTIONS> + <codeStyleSettings language="ECMA Script Level 4"> + <option name="KEEP_BLANK_LINES_IN_CODE" value="1" /> + <option name="ALIGN_MULTILINE_PARAMETERS_IN_CALLS" value="true" /> + <option name="ALIGN_MULTILINE_BINARY_OPERATION" value="true" /> + <option name="ALIGN_MULTILINE_TERNARY_OPERATION" value="true" /> + <option name="ALIGN_MULTILINE_EXTENDS_LIST" value="true" /> + <option name="ALIGN_MULTILINE_ARRAY_INITIALIZER_EXPRESSION" value="true" /> + <option name="CALL_PARAMETERS_WRAP" value="1" /> + <option name="METHOD_PARAMETERS_WRAP" value="1" /> + <option name="EXTENDS_LIST_WRAP" value="1" /> + <option name="EXTENDS_KEYWORD_WRAP" value="1" /> + <option name="METHOD_CALL_CHAIN_WRAP" value="1" /> + <option name="BINARY_OPERATION_WRAP" value="1" /> + <option name="BINARY_OPERATION_SIGN_ON_NEXT_LINE" value="true" /> + <option name="TERNARY_OPERATION_WRAP" value="1" /> + <option name="TERNARY_OPERATION_SIGNS_ON_NEXT_LINE" value="true" /> + <option name="FOR_STATEMENT_WRAP" value="1" /> + <option name="ARRAY_INITIALIZER_WRAP" value="1" /> + <option name="ASSIGNMENT_WRAP" value="5" /> + <option name="WRAP_COMMENTS" value="true" /> + <option name="IF_BRACE_FORCE" value="3" /> + <option name="DOWHILE_BRACE_FORCE" value="3" /> + <option name="WHILE_BRACE_FORCE" value="3" /> + <option name="FOR_BRACE_FORCE" value="3" /> + <option name="PARENT_SETTINGS_INSTALLED" value="true" /> + </codeStyleSettings> + <codeStyleSettings language="JAVA"> + <option name="RIGHT_MARGIN" value="100" /> + <option name="KEEP_CONTROL_STATEMENT_IN_ONE_LINE" value="false" /> + <option name="KEEP_BLANK_LINES_IN_CODE" value="1" /> + <option name="CALL_PARAMETERS_WRAP" value="1" /> + <option name="METHOD_PARAMETERS_WRAP" value="1" /> + <option name="EXTENDS_LIST_WRAP" value="1" /> + <option name="THROWS_LIST_WRAP" value="1" /> + <option name="EXTENDS_KEYWORD_WRAP" value="1" /> + <option name="THROWS_KEYWORD_WRAP" value="1" /> + <option name="METHOD_CALL_CHAIN_WRAP" value="1" /> + <option name="BINARY_OPERATION_WRAP" value="1" /> + <option name="BINARY_OPERATION_SIGN_ON_NEXT_LINE" value="true" /> + <option name="TERNARY_OPERATION_WRAP" value="1" /> + <option name="TERNARY_OPERATION_SIGNS_ON_NEXT_LINE" value="true" /> + <option name="FOR_STATEMENT_WRAP" value="1" /> + <option name="ARRAY_INITIALIZER_WRAP" value="1" /> + <option name="ASSIGNMENT_WRAP" value="5" /> + <option name="IF_BRACE_FORCE" value="3" /> + <option name="DOWHILE_BRACE_FORCE" value="3" /> + <option name="WHILE_BRACE_FORCE" value="3" /> + <option name="FOR_BRACE_FORCE" value="3" /> + <indentOptions> + <option name="INDENT_SIZE" value="2" /> + <option name="CONTINUATION_INDENT_SIZE" value="4" /> + <option name="TAB_SIZE" value="8" /> + </indentOptions> + </codeStyleSettings> + <codeStyleSettings language="JavaScript"> + <option name="KEEP_BLANK_LINES_IN_CODE" value="1" /> + <option name="ALIGN_MULTILINE_PARAMETERS_IN_CALLS" value="true" /> + <option name="ALIGN_MULTILINE_BINARY_OPERATION" value="true" /> + <option name="ALIGN_MULTILINE_TERNARY_OPERATION" value="true" /> + <option name="ALIGN_MULTILINE_ARRAY_INITIALIZER_EXPRESSION" value="true" /> + <option name="CALL_PARAMETERS_WRAP" value="1" /> + <option name="METHOD_PARAMETERS_WRAP" value="1" /> + <option name="METHOD_CALL_CHAIN_WRAP" value="1" /> + <option name="BINARY_OPERATION_WRAP" value="1" /> + <option name="BINARY_OPERATION_SIGN_ON_NEXT_LINE" value="true" /> + <option name="TERNARY_OPERATION_WRAP" value="1" /> + <option name="TERNARY_OPERATION_SIGNS_ON_NEXT_LINE" value="true" /> + <option name="FOR_STATEMENT_WRAP" value="1" /> + <option name="ARRAY_INITIALIZER_WRAP" value="1" /> + <option name="ASSIGNMENT_WRAP" value="5" /> + <option name="WRAP_COMMENTS" value="true" /> + <option name="IF_BRACE_FORCE" value="3" /> + <option name="DOWHILE_BRACE_FORCE" value="3" /> + <option name="WHILE_BRACE_FORCE" value="3" /> + <option name="FOR_BRACE_FORCE" value="3" /> + <option name="PARENT_SETTINGS_INSTALLED" value="true" /> + </codeStyleSettings> + <codeStyleSettings language="PHP"> + <option name="KEEP_CONTROL_STATEMENT_IN_ONE_LINE" value="false" /> + <option name="KEEP_BLANK_LINES_IN_CODE" value="1" /> + <option name="BLANK_LINES_AFTER_CLASS_HEADER" value="1" /> + <option name="ALIGN_MULTILINE_ASSIGNMENT" value="true" /> + <option name="ALIGN_MULTILINE_TERNARY_OPERATION" value="true" /> + <option name="ALIGN_MULTILINE_THROWS_LIST" value="true" /> + <option name="ALIGN_MULTILINE_EXTENDS_LIST" value="true" /> + <option name="ALIGN_MULTILINE_PARENTHESIZED_EXPRESSION" value="true" /> + <option name="CALL_PARAMETERS_WRAP" value="1" /> + <option name="METHOD_PARAMETERS_WRAP" value="1" /> + <option name="EXTENDS_LIST_WRAP" value="1" /> + <option name="THROWS_LIST_WRAP" value="1" /> + <option name="EXTENDS_KEYWORD_WRAP" value="1" /> + <option name="THROWS_KEYWORD_WRAP" value="1" /> + <option name="METHOD_CALL_CHAIN_WRAP" value="1" /> + <option name="BINARY_OPERATION_WRAP" value="1" /> + <option name="BINARY_OPERATION_SIGN_ON_NEXT_LINE" value="true" /> + <option name="TERNARY_OPERATION_WRAP" value="1" /> + <option name="TERNARY_OPERATION_SIGNS_ON_NEXT_LINE" value="true" /> + <option name="FOR_STATEMENT_WRAP" value="1" /> + <option name="ARRAY_INITIALIZER_WRAP" value="1" /> + <option name="ASSIGNMENT_WRAP" value="5" /> + <option name="WRAP_COMMENTS" value="true" /> + <option name="IF_BRACE_FORCE" value="3" /> + <option name="DOWHILE_BRACE_FORCE" value="3" /> + <option name="WHILE_BRACE_FORCE" value="3" /> + <option name="FOR_BRACE_FORCE" value="3" /> + <option name="PARENT_SETTINGS_INSTALLED" value="true" /> + <indentOptions> + <option name="INDENT_SIZE" value="4" /> + <option name="CONTINUATION_INDENT_SIZE" value="8" /> + <option name="TAB_SIZE" value="4" /> + <option name="USE_TAB_CHARACTER" value="false" /> + <option name="SMART_TABS" value="false" /> + <option name="LABEL_INDENT_SIZE" value="0" /> + <option name="LABEL_INDENT_ABSOLUTE" value="false" /> + <option name="USE_RELATIVE_INDENTS" value="false" /> + </indentOptions> + </codeStyleSettings> +</code_scheme> \ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/8bf39571/etc/intellijIdeaCodeStyle.xml ---------------------------------------------------------------------- diff --git a/etc/intellijIdeaCodeStyle.xml b/etc/intellijIdeaCodeStyle.xml deleted file mode 100755 index 0b5c31b..0000000 --- a/etc/intellijIdeaCodeStyle.xml +++ /dev/null @@ -1,477 +0,0 @@ -<code_scheme name="Apache Geode"> - <option name="OTHER_INDENT_OPTIONS"> - <value> - <option name="INDENT_SIZE" value="2" /> - <option name="CONTINUATION_INDENT_SIZE" value="2" /> - <option name="TAB_SIZE" value="2" /> - <option name="USE_TAB_CHARACTER" value="false" /> - <option name="SMART_TABS" value="false" /> - <option name="LABEL_INDENT_SIZE" value="0" /> - <option name="LABEL_INDENT_ABSOLUTE" value="false" /> - <option name="USE_RELATIVE_INDENTS" value="false" /> - </value> - </option> - <option name="LINE_SEPARATOR" value="
" /> - <option name="GENERATE_FINAL_LOCALS" value="true" /> - <option name="GENERATE_FINAL_PARAMETERS" value="true" /> - <option name="INSERT_INNER_CLASS_IMPORTS" value="true" /> - <option name="CLASS_COUNT_TO_USE_IMPORT_ON_DEMAND" value="1000" /> - <option name="NAMES_COUNT_TO_USE_IMPORT_ON_DEMAND" value="1" /> - <option name="PACKAGES_TO_USE_IMPORT_ON_DEMAND"> - <value /> - </option> - <option name="IMPORT_LAYOUT_TABLE"> - <value> - <package name="" withSubpackages="true" static="true" /> - <emptyLine /> - <package name="java" withSubpackages="true" static="false" /> - <emptyLine /> - <package name="javax" withSubpackages="true" static="false" /> - <emptyLine /> - <package name="" withSubpackages="true" static="false" /> - <emptyLine /> - <package name="org.apache.geode" withSubpackages="true" static="false" /> - <emptyLine /> - <package name="com.gemstone" withSubpackages="true" static="false" /> - </value> - </option> - <option name="JD_ALIGN_PARAM_COMMENTS" value="false" /> - <option name="JD_ALIGN_EXCEPTION_COMMENTS" value="false" /> - <option name="JD_ADD_BLANK_AFTER_PARM_COMMENTS" value="true" /> - <option name="JD_ADD_BLANK_AFTER_RETURN" value="true" /> - <option name="JD_KEEP_INVALID_TAGS" value="false" /> - <option name="JD_PRESERVE_LINE_FEEDS" value="true" /> - <option name="HTML_ATTRIBUTE_WRAP" value="0" /> - <option name="HTML_ALIGN_TEXT" value="true" /> - <option name="LINE_COMMENT_AT_FIRST_COLUMN" value="false" /> - <option name="BLOCK_COMMENT_AT_FIRST_COLUMN" value="false" /> - <option name="WRAP_COMMENTS" value="true" /> - <JavaCodeStyleSettings> - <option name="ALIGN_MULTILINE_ANNOTATION_PARAMETERS" value="true" /> - </JavaCodeStyleSettings> - <XML> - <option name="XML_LEGACY_SETTINGS_IMPORTED" value="true" /> - </XML> - <codeStyleSettings language="Groovy"> - <indentOptions> - <option name="INDENT_SIZE" value="2" /> - <option name="CONTINUATION_INDENT_SIZE" value="2" /> - <option name="TAB_SIZE" value="2" /> - </indentOptions> - </codeStyleSettings> - <codeStyleSettings language="JAVA"> - <option name="RIGHT_MARGIN" value="999" /> - <option name="KEEP_LINE_BREAKS" value="false" /> - <option name="KEEP_FIRST_COLUMN_COMMENT" value="false" /> - <option name="KEEP_CONTROL_STATEMENT_IN_ONE_LINE" value="false" /> - <option name="BLANK_LINES_AFTER_CLASS_HEADER" value="1" /> - <option name="ALIGN_MULTILINE_CHAINED_METHODS" value="true" /> - <option name="ALIGN_MULTILINE_BINARY_OPERATION" value="true" /> - <option name="ALIGN_MULTILINE_PARENTHESIZED_EXPRESSION" value="true" /> - <option name="SPACE_WITHIN_ARRAY_INITIALIZER_BRACES" value="true" /> - <option name="SPACE_BEFORE_ARRAY_INITIALIZER_LBRACE" value="true" /> - <option name="PREFER_PARAMETERS_WRAP" value="true" /> - <option name="METHOD_PARAMETERS_WRAP" value="5" /> - <option name="EXTENDS_KEYWORD_WRAP" value="1" /> - <option name="THROWS_KEYWORD_WRAP" value="1" /> - <option name="METHOD_CALL_CHAIN_WRAP" value="5" /> - <option name="ARRAY_INITIALIZER_WRAP" value="5" /> - <option name="ARRAY_INITIALIZER_LBRACE_ON_NEXT_LINE" value="true" /> - <option name="ARRAY_INITIALIZER_RBRACE_ON_NEXT_LINE" value="true" /> - <option name="IF_BRACE_FORCE" value="3" /> - <option name="DOWHILE_BRACE_FORCE" value="3" /> - <option name="WHILE_BRACE_FORCE" value="3" /> - <option name="FOR_BRACE_FORCE" value="3" /> - <option name="VARIABLE_ANNOTATION_WRAP" value="2" /> - <option name="WRAP_ON_TYPING" value="0" /> - <indentOptions> - <option name="INDENT_SIZE" value="2" /> - <option name="CONTINUATION_INDENT_SIZE" value="2" /> - <option name="TAB_SIZE" value="2" /> - </indentOptions> - <arrangement> - <tokens> - <token id="visibility" name="visibility"> - <rules> - <rule> - <match> - <PUBLIC>true</PUBLIC> - </match> - </rule> - <rule> - <match> - <PROTECTED>true</PROTECTED> - </match> - </rule> - <rule> - <match> - <PACKAGE_PRIVATE>true</PACKAGE_PRIVATE> - </match> - </rule> - <rule> - <match> - <PRIVATE>true</PRIVATE> - </match> - </rule> - </rules> - </token> - </tokens> - <rules> - <section> - <rule> - <match> - <AND> - <FIELD>true</FIELD> - <FINAL>true</FINAL> - <PUBLIC>true</PUBLIC> - <STATIC>true</STATIC> - </AND> - </match> - </rule> - </section> - <section> - <rule> - <match> - <AND> - <FIELD>true</FIELD> - <FINAL>true</FINAL> - <PROTECTED>true</PROTECTED> - <STATIC>true</STATIC> - </AND> - </match> - </rule> - </section> - <section> - <rule> - <match> - <AND> - <FIELD>true</FIELD> - <FINAL>true</FINAL> - <PACKAGE_PRIVATE>true</PACKAGE_PRIVATE> - <STATIC>true</STATIC> - </AND> - </match> - </rule> - </section> - <section> - <rule> - <match> - <AND> - <FIELD>true</FIELD> - <FINAL>true</FINAL> - <PRIVATE>true</PRIVATE> - <STATIC>true</STATIC> - </AND> - </match> - </rule> - </section> - <section> - <rule> - <match> - <AND> - <FIELD>true</FIELD> - <PUBLIC>true</PUBLIC> - <STATIC>true</STATIC> - <VOLATILE>true</VOLATILE> - </AND> - </match> - </rule> - </section> - <section> - <rule> - <match> - <AND> - <FIELD>true</FIELD> - <PROTECTED>true</PROTECTED> - <STATIC>true</STATIC> - <VOLATILE>true</VOLATILE> - </AND> - </match> - </rule> - </section> - <section> - <rule> - <match> - <AND> - <FIELD>true</FIELD> - <PACKAGE_PRIVATE>true</PACKAGE_PRIVATE> - <STATIC>true</STATIC> - <VOLATILE>true</VOLATILE> - </AND> - </match> - </rule> - </section> - <section> - <rule> - <match> - <AND> - <FIELD>true</FIELD> - <PRIVATE>true</PRIVATE> - <STATIC>true</STATIC> - <VOLATILE>true</VOLATILE> - </AND> - </match> - </rule> - </section> - <section> - <rule> - <match> - <AND> - <FIELD>true</FIELD> - <PUBLIC>true</PUBLIC> - <STATIC>true</STATIC> - </AND> - </match> - </rule> - </section> - <section> - <rule> - <match> - <AND> - <FIELD>true</FIELD> - <PROTECTED>true</PROTECTED> - <STATIC>true</STATIC> - </AND> - </match> - </rule> - </section> - <section> - <rule> - <match> - <AND> - <FIELD>true</FIELD> - <PACKAGE_PRIVATE>true</PACKAGE_PRIVATE> - <STATIC>true</STATIC> - </AND> - </match> - </rule> - </section> - <section> - <rule> - <match> - <AND> - <FIELD>true</FIELD> - <PRIVATE>true</PRIVATE> - <STATIC>true</STATIC> - </AND> - </match> - </rule> - </section> - <section> - <rule> - <match> - <AND> - <INITIALIZER_BLOCK>true</INITIALIZER_BLOCK> - <STATIC>true</STATIC> - </AND> - </match> - </rule> - </section> - <section> - <rule> - <match> - <AND> - <FIELD>true</FIELD> - <FINAL>true</FINAL> - <PUBLIC>true</PUBLIC> - </AND> - </match> - </rule> - </section> - <section> - <rule> - <match> - <AND> - <FIELD>true</FIELD> - <FINAL>true</FINAL> - <PROTECTED>true</PROTECTED> - </AND> - </match> - </rule> - </section> - <section> - <rule> - <match> - <AND> - <FIELD>true</FIELD> - <FINAL>true</FINAL> - <PACKAGE_PRIVATE>true</PACKAGE_PRIVATE> - </AND> - </match> - </rule> - </section> - <section> - <rule> - <match> - <AND> - <FIELD>true</FIELD> - <FINAL>true</FINAL> - <PRIVATE>true</PRIVATE> - </AND> - </match> - </rule> - </section> - <section> - <rule> - <match> - <AND> - <FIELD>true</FIELD> - <PUBLIC>true</PUBLIC> - <VOLATILE>true</VOLATILE> - </AND> - </match> - </rule> - </section> - <section> - <rule> - <match> - <AND> - <FIELD>true</FIELD> - <PROTECTED>true</PROTECTED> - <VOLATILE>true</VOLATILE> - </AND> - </match> - </rule> - </section> - <section> - <rule> - <match> - <AND> - <FIELD>true</FIELD> - <PACKAGE_PRIVATE>true</PACKAGE_PRIVATE> - <VOLATILE>true</VOLATILE> - </AND> - </match> - </rule> - </section> - <section> - <rule> - <match> - <AND> - <FIELD>true</FIELD> - <PRIVATE>true</PRIVATE> - <VOLATILE>true</VOLATILE> - </AND> - </match> - </rule> - </section> - <section> - <rule> - <match> - <AND> - <FIELD>true</FIELD> - <PUBLIC>true</PUBLIC> - </AND> - </match> - </rule> - </section> - <section> - <rule> - <match> - <AND> - <FIELD>true</FIELD> - <PROTECTED>true</PROTECTED> - </AND> - </match> - </rule> - </section> - <section> - <rule> - <match> - <AND> - <FIELD>true</FIELD> - <PACKAGE_PRIVATE>true</PACKAGE_PRIVATE> - </AND> - </match> - </rule> - </section> - <section> - <rule> - <match> - <AND> - <FIELD>true</FIELD> - <PRIVATE>true</PRIVATE> - </AND> - </match> - </rule> - </section> - <section> - <rule> - <match> - <FIELD>true</FIELD> - </match> - </rule> - </section> - <section> - <rule> - <match> - <INITIALIZER_BLOCK>true</INITIALIZER_BLOCK> - </match> - </rule> - </section> - <section> - <rule> - <match> - <CONSTRUCTOR>true</CONSTRUCTOR> - </match> - </rule> - </section> - <section> - <rule> - <match> - <AND> - <METHOD>true</METHOD> - <STATIC>true</STATIC> - </AND> - </match> - </rule> - </section> - <section> - <rule> - <match> - <METHOD>true</METHOD> - </match> - </rule> - </section> - <section> - <rule> - <match> - <ENUM>true</ENUM> - </match> - </rule> - </section> - <section> - <rule> - <match> - <INTERFACE>true</INTERFACE> - </match> - </rule> - </section> - <section> - <rule> - <match> - <AND> - <CLASS>true</CLASS> - <STATIC>true</STATIC> - </AND> - </match> - </rule> - </section> - <section> - <rule> - <match> - <CLASS>true</CLASS> - </match> - </rule> - </section> - </rules> - </arrangement> - </codeStyleSettings> - <codeStyleSettings language="XML"> - <indentOptions> - <option name="INDENT_SIZE" value="2" /> - <option name="CONTINUATION_INDENT_SIZE" value="2" /> - <option name="TAB_SIZE" value="2" /> - </indentOptions> - </codeStyleSettings> -</code_scheme> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/8bf39571/extensions/geode-modules-session-internal/src/main/java/org/apache/geode/modules/session/internal/common/AbstractSessionCache.java ---------------------------------------------------------------------- diff --git a/extensions/geode-modules-session-internal/src/main/java/org/apache/geode/modules/session/internal/common/AbstractSessionCache.java b/extensions/geode-modules-session-internal/src/main/java/org/apache/geode/modules/session/internal/common/AbstractSessionCache.java index 7f2aedf..8a7f6f8 100644 --- a/extensions/geode-modules-session-internal/src/main/java/org/apache/geode/modules/session/internal/common/AbstractSessionCache.java +++ b/extensions/geode-modules-session-internal/src/main/java/org/apache/geode/modules/session/internal/common/AbstractSessionCache.java @@ -1,19 +1,17 @@ /* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You 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. -*/ + * Licensed to the Apache Software Foundation (ASF) under one or more contributor license + * agreements. See the NOTICE file distributed with this work for additional information regarding + * copyright ownership. The ASF licenses this file to You 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 org.apache.geode.modules.session.internal.common; @@ -28,15 +26,15 @@ import javax.servlet.http.HttpSession; public abstract class AbstractSessionCache implements SessionCache { /** - * The sessionRegion is the <code>Region</code> that actually stores and - * replicates the <code>Session</code>s. + * The sessionRegion is the <code>Region</code> that actually stores and replicates the + * <code>Session</code>s. */ protected Region<String, HttpSession> sessionRegion; /** - * The operatingRegion is the <code>Region</code> used to do HTTP operations. - * if local cache is enabled, then this will be the local <code>Region</code>; - * otherwise, it will be the session <code>Region</code>. + * The operatingRegion is the <code>Region</code> used to do HTTP operations. if local cache is + * enabled, then this will be the local <code>Region</code>; otherwise, it will be the session + * <code>Region</code>. */ protected Region<String, HttpSession> operatingRegion; @@ -70,32 +68,29 @@ public abstract class AbstractSessionCache implements SessionCache { } protected void createStatistics() { - this.statistics = - new DeltaSessionStatistics(getCache().getDistributedSystem(), - (String) properties.get(CacheProperty.STATISTICS_NAME)); + this.statistics = new DeltaSessionStatistics(getCache().getDistributedSystem(), + (String) properties.get(CacheProperty.STATISTICS_NAME)); } /** - * Build up a {@code RegionConfiguraton} object from parameters originally - * passed in as filter initialization parameters. + * Build up a {@code RegionConfiguraton} object from parameters originally passed in as filter + * initialization parameters. * * @return a {@code RegionConfiguration} object */ protected RegionConfiguration createRegionConfiguration() { RegionConfiguration configuration = new RegionConfiguration(); - configuration.setRegionName( - (String) properties.get(CacheProperty.REGION_NAME)); - configuration.setRegionAttributesId( - (String) properties.get(CacheProperty.REGION_ATTRIBUTES_ID)); + configuration.setRegionName((String) properties.get(CacheProperty.REGION_NAME)); + configuration + .setRegionAttributesId((String) properties.get(CacheProperty.REGION_ATTRIBUTES_ID)); configuration.setEnableGatewayDeltaReplication( - (Boolean) properties.get( - CacheProperty.ENABLE_GATEWAY_DELTA_REPLICATION)); + (Boolean) properties.get(CacheProperty.ENABLE_GATEWAY_DELTA_REPLICATION)); configuration.setEnableGatewayReplication( (Boolean) properties.get(CacheProperty.ENABLE_GATEWAY_REPLICATION)); - configuration.setEnableDebugListener( - (Boolean) properties.get(CacheProperty.ENABLE_DEBUG_LISTENER)); + configuration + .setEnableDebugListener((Boolean) properties.get(CacheProperty.ENABLE_DEBUG_LISTENER)); return configuration; } http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/8bf39571/extensions/geode-modules-session-internal/src/main/java/org/apache/geode/modules/session/internal/common/CacheProperty.java ---------------------------------------------------------------------- diff --git a/extensions/geode-modules-session-internal/src/main/java/org/apache/geode/modules/session/internal/common/CacheProperty.java b/extensions/geode-modules-session-internal/src/main/java/org/apache/geode/modules/session/internal/common/CacheProperty.java index 3588022..fe16fc3 100644 --- a/extensions/geode-modules-session-internal/src/main/java/org/apache/geode/modules/session/internal/common/CacheProperty.java +++ b/extensions/geode-modules-session-internal/src/main/java/org/apache/geode/modules/session/internal/common/CacheProperty.java @@ -1,19 +1,17 @@ /* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You 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. -*/ + * Licensed to the Apache Software Foundation (ASF) under one or more contributor license + * agreements. See the NOTICE file distributed with this work for additional information regarding + * copyright ownership. The ASF licenses this file to You 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 org.apache.geode.modules.session.internal.common; @@ -37,12 +35,11 @@ public enum CacheProperty { STATISTICS_NAME(String.class), /** - * This parameter can take the following values which match the respective - * attribute container classes + * This parameter can take the following values which match the respective attribute container + * classes * <p/> - * delta_queued : QueuedDeltaSessionAttributes delta_immediate : - * DeltaSessionAttributes immediate : ImmediateSessionAttributes queued - * : QueuedSessionAttributes + * delta_queued : QueuedDeltaSessionAttributes delta_immediate : DeltaSessionAttributes immediate + * : ImmediateSessionAttributes queued : QueuedSessionAttributes */ SESSION_DELTA_POLICY(String.class), http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/8bf39571/extensions/geode-modules-session-internal/src/main/java/org/apache/geode/modules/session/internal/common/ClientServerSessionCache.java ---------------------------------------------------------------------- diff --git a/extensions/geode-modules-session-internal/src/main/java/org/apache/geode/modules/session/internal/common/ClientServerSessionCache.java b/extensions/geode-modules-session-internal/src/main/java/org/apache/geode/modules/session/internal/common/ClientServerSessionCache.java index 5cb9543..a1ed5e7 100644 --- a/extensions/geode-modules-session-internal/src/main/java/org/apache/geode/modules/session/internal/common/ClientServerSessionCache.java +++ b/extensions/geode-modules-session-internal/src/main/java/org/apache/geode/modules/session/internal/common/ClientServerSessionCache.java @@ -1,19 +1,17 @@ /* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You 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. -*/ + * Licensed to the Apache Software Foundation (ASF) under one or more contributor license + * agreements. See the NOTICE file distributed with this work for additional information regarding + * copyright ownership. The ASF licenses this file to You 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 org.apache.geode.modules.session.internal.common; @@ -43,8 +41,7 @@ import org.slf4j.LoggerFactory; */ public class ClientServerSessionCache extends AbstractSessionCache { - private static final Logger LOG = - LoggerFactory.getLogger(PeerToPeerSessionCache.class.getName()); + private static final Logger LOG = LoggerFactory.getLogger(PeerToPeerSessionCache.class.getName()); private ClientCache cache; @@ -59,19 +56,15 @@ public class ClientServerSessionCache extends AbstractSessionCache { * @param cache * @param properties */ - public ClientServerSessionCache(ClientCache cache, - Map<CacheProperty, Object> properties) { + public ClientServerSessionCache(ClientCache cache, Map<CacheProperty, Object> properties) { super(); this.cache = cache; /** - * Set some default properties for this cache if they haven't already - * been set + * Set some default properties for this cache if they haven't already been set */ - this.properties.put(CacheProperty.REGION_ATTRIBUTES_ID, - DEFAULT_REGION_ATTRIBUTES_ID); - this.properties.put(CacheProperty.ENABLE_LOCAL_CACHE, - DEFAULT_ENABLE_LOCAL_CACHE); + this.properties.put(CacheProperty.REGION_ATTRIBUTES_ID, DEFAULT_REGION_ATTRIBUTES_ID); + this.properties.put(CacheProperty.ENABLE_LOCAL_CACHE, DEFAULT_ENABLE_LOCAL_CACHE); this.properties.putAll(properties); } @@ -119,9 +112,7 @@ public class ClientServerSessionCache extends AbstractSessionCache { private void createOrRetrieveRegion() { // Retrieve the local session region - this.sessionRegion = - this.cache.getRegion( - (String) properties.get(CacheProperty.REGION_NAME)); + this.sessionRegion = this.cache.getRegion((String) properties.get(CacheProperty.REGION_NAME)); // If necessary, create the regions on the server and client if (this.sessionRegion == null) { @@ -141,8 +132,7 @@ public class ClientServerSessionCache extends AbstractSessionCache { RegionConfiguration configuration = createRegionConfiguration(); // Send it to the server tier - Execution execution = FunctionService.onServer(this.cache).withArgs( - configuration); + Execution execution = FunctionService.onServer(this.cache).withArgs(configuration); ResultCollector collector = execution.execute(CreateRegionFunction.ID); // Verify the region was successfully created on the servers @@ -161,22 +151,18 @@ public class ClientServerSessionCache extends AbstractSessionCache { private Region<String, HttpSession> createLocalSessionRegion() { ClientRegionFactory<String, HttpSession> factory = null; - boolean enableLocalCache = - (Boolean) properties.get(CacheProperty.ENABLE_LOCAL_CACHE); + boolean enableLocalCache = (Boolean) properties.get(CacheProperty.ENABLE_LOCAL_CACHE); String regionName = (String) properties.get(CacheProperty.REGION_NAME); if (enableLocalCache) { // Create the region factory with caching and heap LRU enabled - factory = ((ClientCache) this.cache). - createClientRegionFactory( - ClientRegionShortcut.CACHING_PROXY_HEAP_LRU); + factory = ((ClientCache) this.cache) + .createClientRegionFactory(ClientRegionShortcut.CACHING_PROXY_HEAP_LRU); LOG.info("Created new local client session region: {}", regionName); } else { // Create the region factory without caching enabled - factory = ((ClientCache) this.cache).createClientRegionFactory( - ClientRegionShortcut.PROXY); - LOG.info( - "Created new local client (uncached) session region: {} without any session expiry", + factory = ((ClientCache) this.cache).createClientRegionFactory(ClientRegionShortcut.PROXY); + LOG.info("Created new local client (uncached) session region: {} without any session expiry", regionName); } http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/8bf39571/extensions/geode-modules-session-internal/src/main/java/org/apache/geode/modules/session/internal/common/PeerToPeerSessionCache.java ---------------------------------------------------------------------- diff --git a/extensions/geode-modules-session-internal/src/main/java/org/apache/geode/modules/session/internal/common/PeerToPeerSessionCache.java b/extensions/geode-modules-session-internal/src/main/java/org/apache/geode/modules/session/internal/common/PeerToPeerSessionCache.java index 684ee81..ff47e78 100644 --- a/extensions/geode-modules-session-internal/src/main/java/org/apache/geode/modules/session/internal/common/PeerToPeerSessionCache.java +++ b/extensions/geode-modules-session-internal/src/main/java/org/apache/geode/modules/session/internal/common/PeerToPeerSessionCache.java @@ -1,19 +1,17 @@ /* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You 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. -*/ + * Licensed to the Apache Software Foundation (ASF) under one or more contributor license + * agreements. See the NOTICE file distributed with this work for additional information regarding + * copyright ownership. The ASF licenses this file to You 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 org.apache.geode.modules.session.internal.common; @@ -41,13 +39,11 @@ import org.slf4j.LoggerFactory; */ public class PeerToPeerSessionCache extends AbstractSessionCache { - private static final Logger LOG = - LoggerFactory.getLogger(PeerToPeerSessionCache.class.getName()); + private static final Logger LOG = LoggerFactory.getLogger(PeerToPeerSessionCache.class.getName()); private Cache cache; - private static final String DEFAULT_REGION_ATTRIBUTES_ID = - RegionShortcut.REPLICATE.toString(); + private static final String DEFAULT_REGION_ATTRIBUTES_ID = RegionShortcut.REPLICATE.toString(); private static final Boolean DEFAULT_ENABLE_LOCAL_CACHE = false; @@ -57,19 +53,15 @@ public class PeerToPeerSessionCache extends AbstractSessionCache { * @param cache * @param properties */ - public PeerToPeerSessionCache(Cache cache, - Map<CacheProperty, Object> properties) { + public PeerToPeerSessionCache(Cache cache, Map<CacheProperty, Object> properties) { super(); this.cache = cache; /** - * Set some default properties for this cache if they haven't already - * been set + * Set some default properties for this cache if they haven't already been set */ - this.properties.put(CacheProperty.REGION_ATTRIBUTES_ID, - DEFAULT_REGION_ATTRIBUTES_ID); - this.properties.put(CacheProperty.ENABLE_LOCAL_CACHE, - DEFAULT_ENABLE_LOCAL_CACHE); + this.properties.put(CacheProperty.REGION_ATTRIBUTES_ID, DEFAULT_REGION_ATTRIBUTES_ID); + this.properties.put(CacheProperty.ENABLE_LOCAL_CACHE, DEFAULT_ENABLE_LOCAL_CACHE); this.properties.putAll(properties); } @@ -85,15 +77,11 @@ public class PeerToPeerSessionCache extends AbstractSessionCache { createOrRetrieveRegion(); /** - * If local cache is enabled, create the local region fronting the - * session region and set it as the operating region; otherwise, use - * the session region directly as the operating region. + * If local cache is enabled, create the local region fronting the session region and set it as + * the operating region; otherwise, use the session region directly as the operating region. */ - boolean enableLocalCache = - (Boolean) properties.get(CacheProperty.ENABLE_LOCAL_CACHE); - operatingRegion = enableLocalCache - ? createOrRetrieveLocalRegion() - : this.sessionRegion; + boolean enableLocalCache = (Boolean) properties.get(CacheProperty.ENABLE_LOCAL_CACHE); + operatingRegion = enableLocalCache ? createOrRetrieveLocalRegion() : this.sessionRegion; // Create or retrieve the statistics createStatistics(); @@ -114,17 +102,13 @@ public class PeerToPeerSessionCache extends AbstractSessionCache { private void registerFunctions() { // Register the touch partitioned region entries function if it is not already registered - if (!FunctionService.isRegistered( - TouchPartitionedRegionEntriesFunction.ID)) { - FunctionService.registerFunction( - new TouchPartitionedRegionEntriesFunction()); + if (!FunctionService.isRegistered(TouchPartitionedRegionEntriesFunction.ID)) { + FunctionService.registerFunction(new TouchPartitionedRegionEntriesFunction()); } // Register the touch replicated region entries function if it is not already registered - if (!FunctionService.isRegistered( - TouchReplicatedRegionEntriesFunction.ID)) { - FunctionService.registerFunction( - new TouchReplicatedRegionEntriesFunction()); + if (!FunctionService.isRegistered(TouchReplicatedRegionEntriesFunction.ID)) { + FunctionService.registerFunction(new TouchReplicatedRegionEntriesFunction()); } } @@ -135,8 +119,7 @@ public class PeerToPeerSessionCache extends AbstractSessionCache { // Attempt to retrieve the region // If it already exists, validate it // If it doesn't already exist, create it - Region region = this.cache.getRegion( - (String) properties.get(CacheProperty.REGION_NAME)); + Region region = this.cache.getRegion((String) properties.get(CacheProperty.REGION_NAME)); if (region == null) { // Create the region region = RegionHelper.createRegion(cache, configuration); @@ -159,8 +142,7 @@ public class PeerToPeerSessionCache extends AbstractSessionCache { private Region<String, HttpSession> createOrRetrieveLocalRegion() { // Attempt to retrieve the fronting region String frontingRegionName = this.sessionRegion.getName() + "_local"; - Region<String, HttpSession> frontingRegion = - this.cache.getRegion(frontingRegionName); + Region<String, HttpSession> frontingRegion = this.cache.getRegion(frontingRegionName); if (frontingRegion == null) { // Create the region factory @@ -175,8 +157,7 @@ public class PeerToPeerSessionCache extends AbstractSessionCache { frontingRegion = factory.create(frontingRegionName); LOG.info("Created new local session region: {}", frontingRegion); } else { - LOG.info("Retrieved existing local session region: {}", - frontingRegion); + LOG.info("Retrieved existing local session region: {}", frontingRegion); } return frontingRegion; http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/8bf39571/extensions/geode-modules-session-internal/src/main/java/org/apache/geode/modules/session/internal/common/SessionCache.java ---------------------------------------------------------------------- diff --git a/extensions/geode-modules-session-internal/src/main/java/org/apache/geode/modules/session/internal/common/SessionCache.java b/extensions/geode-modules-session-internal/src/main/java/org/apache/geode/modules/session/internal/common/SessionCache.java index be8252c..9b03bc0 100644 --- a/extensions/geode-modules-session-internal/src/main/java/org/apache/geode/modules/session/internal/common/SessionCache.java +++ b/extensions/geode-modules-session-internal/src/main/java/org/apache/geode/modules/session/internal/common/SessionCache.java @@ -1,19 +1,17 @@ /* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You 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. -*/ + * Licensed to the Apache Software Foundation (ASF) under one or more contributor license + * agreements. See the NOTICE file distributed with this work for additional information regarding + * copyright ownership. The ASF licenses this file to You 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 org.apache.geode.modules.session.internal.common; @@ -52,8 +50,8 @@ public interface SessionCache { public Region<String, HttpSession> getOperatingRegion(); /** - * Get the backing {@code Region} being used. This may not be the same as the - * region being used by client code to put attributes. + * Get the backing {@code Region} being used. This may not be the same as the region being used by + * client code to put attributes. * * @return a {@code Region<String, HttpSession>} reference */ http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/8bf39571/extensions/geode-modules-session-internal/src/main/java/org/apache/geode/modules/session/internal/common/SessionExpirationCacheListener.java ---------------------------------------------------------------------- diff --git a/extensions/geode-modules-session-internal/src/main/java/org/apache/geode/modules/session/internal/common/SessionExpirationCacheListener.java b/extensions/geode-modules-session-internal/src/main/java/org/apache/geode/modules/session/internal/common/SessionExpirationCacheListener.java index eccbd49..de3f307 100644 --- a/extensions/geode-modules-session-internal/src/main/java/org/apache/geode/modules/session/internal/common/SessionExpirationCacheListener.java +++ b/extensions/geode-modules-session-internal/src/main/java/org/apache/geode/modules/session/internal/common/SessionExpirationCacheListener.java @@ -1,19 +1,17 @@ /* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You 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. -*/ + * Licensed to the Apache Software Foundation (ASF) under one or more contributor license + * agreements. See the NOTICE file distributed with this work for additional information regarding + * copyright ownership. The ASF licenses this file to You 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 org.apache.geode.modules.session.internal.common; @@ -28,8 +26,8 @@ import javax.servlet.http.HttpSession; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -public class SessionExpirationCacheListener extends - CacheListenerAdapter<String, HttpSession> implements Declarable { +public class SessionExpirationCacheListener extends CacheListenerAdapter<String, HttpSession> + implements Declarable { private static final Logger LOG = LoggerFactory.getLogger(SessionExpirationCacheListener.class.getName()); @@ -37,9 +35,8 @@ public class SessionExpirationCacheListener extends @Override public void afterDestroy(EntryEvent<String, HttpSession> event) { /** - * A Session expired. If it was destroyed by GemFire expiration, - * process it. If it was destroyed via Session.invalidate, ignore it - * since it has already been processed. + * A Session expired. If it was destroyed by GemFire expiration, process it. If it was destroyed + * via Session.invalidate, ignore it since it has already been processed. */ if (event.getOperation() == Operation.EXPIRE_DESTROY) { HttpSession session = (HttpSession) event.getOldValue(); @@ -48,6 +45,5 @@ public class SessionExpirationCacheListener extends } @Override - public void init(Properties p) { - } + public void init(Properties p) {} } http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/8bf39571/extensions/geode-modules-session-internal/src/main/java/org/apache/geode/modules/session/internal/filter/Constants.java ---------------------------------------------------------------------- diff --git a/extensions/geode-modules-session-internal/src/main/java/org/apache/geode/modules/session/internal/filter/Constants.java b/extensions/geode-modules-session-internal/src/main/java/org/apache/geode/modules/session/internal/filter/Constants.java index 807da1d..429c072 100644 --- a/extensions/geode-modules-session-internal/src/main/java/org/apache/geode/modules/session/internal/filter/Constants.java +++ b/extensions/geode-modules-session-internal/src/main/java/org/apache/geode/modules/session/internal/filter/Constants.java @@ -1,18 +1,16 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You 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 + * Licensed to the Apache Software Foundation (ASF) under one or more contributor license + * agreements. See the NOTICE file distributed with this work for additional information regarding + * copyright ownership. The ASF licenses this file to You 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 + * 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. + * 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 org.apache.geode.modules.session.internal.filter; http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/8bf39571/extensions/geode-modules-session-internal/src/main/java/org/apache/geode/modules/session/internal/filter/DummySessionManager.java ---------------------------------------------------------------------- diff --git a/extensions/geode-modules-session-internal/src/main/java/org/apache/geode/modules/session/internal/filter/DummySessionManager.java b/extensions/geode-modules-session-internal/src/main/java/org/apache/geode/modules/session/internal/filter/DummySessionManager.java index ce4f649..b33c8d4 100644 --- a/extensions/geode-modules-session-internal/src/main/java/org/apache/geode/modules/session/internal/filter/DummySessionManager.java +++ b/extensions/geode-modules-session-internal/src/main/java/org/apache/geode/modules/session/internal/filter/DummySessionManager.java @@ -1,19 +1,17 @@ /* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You 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. -*/ + * Licensed to the Apache Software Foundation (ASF) under one or more contributor license + * agreements. See the NOTICE file distributed with this work for additional information regarding + * copyright ownership. The ASF licenses this file to You 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 org.apache.geode.modules.session.internal.filter; @@ -32,8 +30,7 @@ public class DummySessionManager implements SessionManager { /** * Map of sessions */ - private final Map<String, HttpSession> sessions = - new HashMap<String, HttpSession>(); + private final Map<String, HttpSession> sessions = new HashMap<String, HttpSession>(); private class Attributes extends AbstractSessionAttributes { @@ -52,15 +49,13 @@ public class DummySessionManager implements SessionManager { * {@inheritDoc} */ @Override - public void start(Object config, ClassLoader loader) { - } + public void start(Object config, ClassLoader loader) {} /** * {@inheritDoc} */ @Override - public void stop() { - } + public void stop() {} /** * {@inheritDoc} http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/8bf39571/extensions/geode-modules-session-internal/src/main/java/org/apache/geode/modules/session/internal/filter/GemfireHttpSession.java ---------------------------------------------------------------------- diff --git a/extensions/geode-modules-session-internal/src/main/java/org/apache/geode/modules/session/internal/filter/GemfireHttpSession.java b/extensions/geode-modules-session-internal/src/main/java/org/apache/geode/modules/session/internal/filter/GemfireHttpSession.java index 0bf4c4a..90edc6a 100644 --- a/extensions/geode-modules-session-internal/src/main/java/org/apache/geode/modules/session/internal/filter/GemfireHttpSession.java +++ b/extensions/geode-modules-session-internal/src/main/java/org/apache/geode/modules/session/internal/filter/GemfireHttpSession.java @@ -1,19 +1,17 @@ /* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You 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. -*/ + * Licensed to the Apache Software Foundation (ASF) under one or more contributor license + * agreements. See the NOTICE file distributed with this work for additional information regarding + * copyright ownership. The ASF licenses this file to You 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 org.apache.geode.modules.session.internal.filter; @@ -47,8 +45,7 @@ import org.slf4j.LoggerFactory; * Class which implements a Gemfire persisted {@code HttpSession} */ @SuppressWarnings("deprecation") -public class GemfireHttpSession implements - HttpSession, DataSerializable, Delta { +public class GemfireHttpSession implements HttpSession, DataSerializable, Delta { private static transient final Logger LOG = LoggerFactory.getLogger(GemfireHttpSession.class.getName()); @@ -73,8 +70,7 @@ public class GemfireHttpSession implements private HttpSession nativeSession = null; /** - * A session becomes invalid if it is explicitly invalidated or if it - * expires. + * A session becomes invalid if it is explicitly invalidated or if it expires. */ private boolean isValid = true; @@ -83,8 +79,8 @@ public class GemfireHttpSession implements private boolean isDirty = false; /** - * This is set during serialization and then reset by the SessionManager when - * it is retrieved from the attributes. + * This is set during serialization and then reset by the SessionManager when it is retrieved from + * the attributes. */ private AtomicBoolean serialized = new AtomicBoolean(false); @@ -103,8 +99,7 @@ public class GemfireHttpSession implements /** * Constructor used for de-serialization */ - private GemfireHttpSession() { - } + private GemfireHttpSession() {} /** * Constructor @@ -133,9 +128,7 @@ public class GemfireHttpSession implements ClassLoader loader = ((GemfireSessionManager) manager).getReferenceClassLoader(); if (obj.getClass().getClassLoader() != loader) { - LOG.debug( - "Attribute '{}' needs to be reconstructed with a new classloader", - name); + LOG.debug("Attribute '{}' needs to be reconstructed with a new classloader", name); ByteArrayOutputStream baos = new ByteArrayOutputStream(); try { @@ -144,15 +137,12 @@ public class GemfireHttpSession implements oos.close(); ObjectInputStream ois = new ClassLoaderObjectInputStream( - new ByteArrayInputStream(baos.toByteArray()), - loader); + new ByteArrayInputStream(baos.toByteArray()), loader); tmpObj = ois.readObject(); } catch (IOException e) { - LOG.error("Exception while recreating attribute '" + name + - "'", e); + LOG.error("Exception while recreating attribute '" + name + "'", e); } catch (ClassNotFoundException e) { - LOG.error("Exception while recreating attribute '" + name + - "'", e); + LOG.error("Exception while recreating attribute '" + name + "'", e); } if (tmpObj != null) { setAttribute(name, tmpObj); @@ -324,8 +314,7 @@ public class GemfireHttpSession implements public void setAttribute(final String name, final Object value) { if (LOG.isDebugEnabled()) { - LOG.debug("Session {} setting attribute {} = '{}'", - new Object[]{id, name, value}); + LOG.debug("Session {} setting attribute {} = '{}'", new Object[] {id, name, value}); } isDirty = true; @@ -350,8 +339,7 @@ public class GemfireHttpSession implements * Gemfire de-serialization {@inheritDoc} */ @Override - public void fromData(DataInput in) throws IOException, - ClassNotFoundException { + public void fromData(DataInput in) throws IOException, ClassNotFoundException { id = DataSerializer.readString(in); attributes = DataSerializer.readObject(in); if (getNativeSession() != null) { @@ -366,8 +354,7 @@ public class GemfireHttpSession implements } /** - * These three methods handle delta propagation and are deferred to the - * attribute object. + * These three methods handle delta propagation and are deferred to the attribute object. */ @Override public boolean hasDelta() { @@ -384,16 +371,14 @@ public class GemfireHttpSession implements } @Override - public void fromDelta(DataInput in) throws IOException, - InvalidDeltaException { + public void fromDelta(DataInput in) throws IOException, InvalidDeltaException { if (attributes instanceof Delta) { ((Delta) attributes).fromDelta(in); } else { try { fromData(in); } catch (ClassNotFoundException cex) { - throw new IOException("Unable to forward fromDelta() call " - + "to fromData()", cex); + throw new IOException("Unable to forward fromDelta() call " + "to fromData()", cex); } } } @@ -401,12 +386,10 @@ public class GemfireHttpSession implements @Override public String toString() { StringBuilder builder = new StringBuilder(); - builder.append("[id=").append(id) - .append(", isNew=").append(isNew) - .append(", isValid=").append(isValid) - .append(", hasDelta=").append(hasDelta()) - .append(", lastAccessedTime=").append(attributes.getLastAccessedTime()) - .append(", jvmOwnerId=").append(attributes.getJvmOwnerId()); + builder.append("[id=").append(id).append(", isNew=").append(isNew).append(", isValid=") + .append(isValid).append(", hasDelta=").append(hasDelta()).append(", lastAccessedTime=") + .append(attributes.getLastAccessedTime()).append(", jvmOwnerId=") + .append(attributes.getJvmOwnerId()); builder.append("]"); return builder.toString(); } @@ -462,8 +445,7 @@ public class GemfireHttpSession implements } /** - * Handle the process of failing over the session to a new native session - * object. + * Handle the process of failing over the session to a new native session object. * * @param session */ @@ -496,9 +478,8 @@ public class GemfireHttpSession implements } /** - * This is called on deserialization. You can only call it once to get a - * meaningful value as it resets the serialized state. In other words, this - * call is not idempotent. + * This is called on deserialization. You can only call it once to get a meaningful value as it + * resets the serialized state. In other words, this call is not idempotent. * * @return whether this object has just been serialized */ @@ -507,9 +488,8 @@ public class GemfireHttpSession implements } /** - * Called when the session is about to go out of scope. If the session has - * been defined to use async queued attributes then they will be written out - * at this point. + * Called when the session is about to go out of scope. If the session has been defined to use + * async queued attributes then they will be written out at this point. */ public void commit() { attributes.setJvmOwnerId(manager.getJvmId()); http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/8bf39571/extensions/geode-modules-session-internal/src/main/java/org/apache/geode/modules/session/internal/filter/GemfireSessionException.java ---------------------------------------------------------------------- diff --git a/extensions/geode-modules-session-internal/src/main/java/org/apache/geode/modules/session/internal/filter/GemfireSessionException.java b/extensions/geode-modules-session-internal/src/main/java/org/apache/geode/modules/session/internal/filter/GemfireSessionException.java index 895bcaf..a083d8e 100644 --- a/extensions/geode-modules-session-internal/src/main/java/org/apache/geode/modules/session/internal/filter/GemfireSessionException.java +++ b/extensions/geode-modules-session-internal/src/main/java/org/apache/geode/modules/session/internal/filter/GemfireSessionException.java @@ -1,19 +1,17 @@ /* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You 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. -*/ + * Licensed to the Apache Software Foundation (ASF) under one or more contributor license + * agreements. See the NOTICE file distributed with this work for additional information regarding + * copyright ownership. The ASF licenses this file to You 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 org.apache.geode.modules.session.internal.filter;
