http://git-wip-us.apache.org/repos/asf/polygene-website/blob/ba3a0fac/content/java/develop/css/polygene.css ---------------------------------------------------------------------- diff --git a/content/java/develop/css/polygene.css b/content/java/develop/css/polygene.css new file mode 100644 index 0000000..d512429 --- /dev/null +++ b/content/java/develop/css/polygene.css @@ -0,0 +1,825 @@ +/* + * 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. + * + * + */ + +span.remark +{ + background: yellow; +} + +td p +{ + margin: 0.125em 0; +} + +#disqus_thread +{ + max-width: 40em; +} + +body #toolbar_item command_help +{ + /* display: none !important; */ +} + +pre { + max-width: 55em; + overflow: scroll; +} + +.syntaxhighlighter a, +.syntaxhighlighter div, +.syntaxhighlighter code, +.syntaxhighlighter table, +.syntaxhighlighter table td, +.syntaxhighlighter table tr, +.syntaxhighlighter table tbody, +.syntaxhighlighter table thead, +.syntaxhighlighter table caption, +.syntaxhighlighter textarea +{ + font-size: 12px !important; + font-family: Consolas, Monaco, "Bitstream Vera Sans Mono", monospace !important; + line-height: 14px !important; +} + +.syntaxhighlighter { + background-color: rgba(11,117,188,0.1) !important; + /* + overflow: visible !important; + */ + border: 1px solid #0b75bc; + padding: 8px; + -moz-border-radius: 5px; + -webkit-border-radius: 5px; + border-radius: 5px; +} + +.syntaxhighlighter .line.alt1 { + background-color: rgba(11,117,188,0.05) !important; +} +.syntaxhighlighter .line.alt2 { + background-color: rgba(11,117,188,0.1) !important; +} + +html +{ + text-align: center; +} + +html body +{ + background: url("bg.png"); + margin: 0 auto; + text-align: left; +} + +div.navheader, div.navfooter { + padding: 0 5%; +} + +body, div.navheader th, div.navheader td, div.navfooter td +{ + font-family: Georgia, "Times New Roman", Times, serif; + color: #4c4c4c; +} + +a { + color: #0b75bc; +} + +a:hover { + text-decoration: none; +} + +a:visited { + color: #0b75bc; + /* color: #08568a; */ +} + +hr { + border-color: #0b75bc; + border-style: solid; +} + +.navheader a { + color: #acacac; + text-decoration: none; + font-family: Helvetica, Arial, sans-serif; +} + +.navheader a:hover, .navfooter a:hover { + text-decoration: underline; +} + +h1, h2, h3, h4, h5, h6, +div.toc p b, +div.important th, div.info th, div.tip th, +div.warning th, div.note th, div.caution th, +p.legalnotice-title, +div.refnamediv p, +div.sidebar p.title, +th, +div.table-contents td p span.strong strong, +tr.question td b p +{ + color: #0b75bc; + font-family: Helvetica, Arial, sans-serif; + text-shadow: 0 1px 0 #fff; +} + + +.book, .chapter, .part { + width:90%; + margin: 0 auto; +} + +td p strong +{ + font-size: 1.067em; +} + +tr.question td b p +{ + font-size: 1em; + margin: 0.5em 0 0 0; +} + +tr.question td +{ + padding: 0; +} + +tr.answer td, tr.answer td p +{ + padding-top: 0; +} + +tr.answer td +{ + padding-left: 1em; +} + +div.navheader +{ + height: 50px; + background: url(../../../../resources/css/navHead_bg.png) repeat-x; +} + +div.navheader hr +{ + display: none; +} + +div.refentry body h2.title, div.refentry body h1.title, div.refentry div.refnamediv p, +body > div.section h1, body > div.section h2, +body > div.part h1, body > div.part h2, +body > div.chapter h1, body > div.chapter h2, +body > div.book h1, +body > div.preface h2, +body > div.appendix h2 +{ + border-bottom: none; + margin-top: 2.2em; + margin-bottom: .7em; +} + +div.legalnotice +{ + padding-top: 3em; +} + +p.legalnotice-title b +{ + font-size: 1.5em; + font-style: normal; + font-weight: bold; +} + +p.legalnotice-title +{ + margin-bottom: 2em; +} + +body > div.book h1.title +{ + margin-top: 0.5em; + padding-top: 0; + margin-bottom: 0; +} + +div.part h1.title +{ + margin-top: 1.5em; +} + +.book div.titlepage { + position: absolute; + top: 40px; + background: url(logo.png) no-repeat left top; + min-height: 250px; + padding-left: 150px; +} + +.book div.titlepage .authorgroup { + font-size: 150%; +} + +.book div.titlepage hr { + display: none; +} + +div.titlepage h3.corpauthor +{ +} + +div.refnamediv +{ + padding-top: 24px; + margin-bottom: 24px; +} + +div.refsynopsisdiv h2, div.refsect1 h2 +{ + border-bottom: none; +} + +div.titlepage h3.corpauthor a.ulink, div.titlepage h3.corpauthor a.ulink:link, +div.titlepage h3.corpauthor a.ulink:visited, div.titlepage h3.corpauthor a.ulink:hover +div.titlepage h3.corpauthor a.ulink:focus, div.titlepage h3.corpauthor a.ulink:active +{ + color: #dddddd; + text-decoration: none; + font-style: normal; + padding-left: 0.6em; +} + +div.refnamediv h2 +{ + display: none; +} + +div.refnamediv p +{ + font-size: 1em; + font-weight: bold; + margin-top: 3em; + margin-bottom: 2em; + width: 60%; + line-height: 1.2; +} + +p, li, dt, div.navheader th, div.navheader td, div.navfooter td +{ + font-family: Georgia, "Times New Roman", Times, serif; + font-size: .9375em; + text-shadow: 0 1px 0 #fff; +} + +p, ul, ol +{ + margin-top: 0; + margin-bottom: 1em; +} + +li p +{ + margin-bottom: 0.5em; +} + +div.list-of-figures p, div.list-of-tables p +{ + margin-top: 1.5em; +} + +div.list-of-figures p b, div.list-of-tables p b, div.sidebar p b +{ + font-style: normal; + font-weight: bold; +} + +div.toc +{ + margin-bottom: 1em; +} + +.book .toc { + margin-top: 220px; +} + +div.toc p { + width: 100%; + font-family: Helvetica, Arial, sans-serif; + color: #0b75bc; + font-size: 120%; + border-bottom: 1px solid #0b75bc; +} + +div.toc a, div.toc a:visited { + color: #0b75bc; +} + +div.toc dt { + margin-bottom: 8px; +} + +div.toc dl dl { + margin: 5px 0; +} + +p.copyright +{ + margin: 0; + padding: 10px 0 5px 0; + text-align: center; + max-width: 100%; + background: #0b75bc url(../../../../resources/css/copyright_bg.png) repeat-x top; + color: #fff; + text-shadow: none; + border-bottom: 1px solid #095e96; +} + +.titlepage p.copyright { + background: none; + border: none; + text-align: left; + color: #0b75bc; +} + +code.literal +{ + font-family: Consolas, Monaco, monospace; + font-size: .9375em; +} + +td code.literal +{ + font-size: .8em; +} + +li +{ + line-height: 1.3em; +} + +p +{ + line-height: 1.6em; +} + +.toc p { + max-width: 100%; +} + +ul, ol +{ + max-width: 38em; +} + +div.sidebar +{ + max-width: 30em; + padding: 0.67em 1em; + background: #c1d5d9 url("../../../../resources/css/content-bg.png") repeat-x; +} + +div.sidebar p.title +{ + margin: 0; +} + +div.sidebar ul +{ + margin-top: 0.3em; + margin-bottom: 0.3em; +} + +p b, div.figure p.title b, div.table p.title b +{ + font-style: italic; + font-weight: normal; +} + +/* BEGIN SIDE NOTES */ +div.important, div.info, div.tip, div.note, +div.warning, div.caution +{ + float: right; + max-width: 20em; + margin: 1em 0 1em 1em !important; + padding: 1em !important; + font-size: 0.9em; + -moz-border-radius: 5px; + -webkit-border-radius: 5px; + border-radius: 5px; +} +div.important, div.info, div.tip, div.note +{ + background-color: rgba(11, 117, 188, 0.1) !important; + border: 1px solid #0b75bc; +} +div.warning +{ + background-color: rgba(188, 117, 11, 0.1) !important; + border: 1px solid #bc750b; +} +div.caution +{ + background-color: rgba(188, 11, 11, 0.1) !important; + border: 1px solid #bc0b0b; +} +div.important h3, div.info h3, div.tip h3, div.note h3, +div.warning h3, div.caution h3 +{ + margin: 0 0 0.5em 0 !important; + line-height: 50px; + padding-right: 55px; + background-position: top right !important; + background-repeat: no-repeat !important; +} +div.important h3 +{ + background-image: url("important.png"); +} +div.info h3, div.tip h3 +{ + background-image: url("tip.png"); +} +div.note h3 +{ + background-image: url("note.png"); +} +div.warning h3 +{ + background-image: url("warning.png"); + color: #bc750b; +} +div.caution h3 +{ + background-image: url("caution.png"); + color: #bc0b0b; +} +div.important p, div.info p, div.tip p, div.note p, +div.warning p, div.caution p +{ + margin: 0 0 0.5em 0 !important; +} +/* END SIDE NOTES */ + + +div.table, div.informaltable +{ + width: 100%; + clear: both; +} +div.table div.table-contents, div.informaltable div.table-contents +{ + background-color: rgba(11,117,188,0.1) !important; + border: 1px solid #0b75bc; + padding: 8px; + -moz-border-radius: 5px; + -webkit-border-radius: 5px; + border-radius: 5px; +} + +div.table table, div.informaltable table +{ + width: 100%; + border: none; + border-collapse: collapse; +} + +td, th +{ + padding: 2px 4px; +} + +div.table table, div.informaltable table, +div.table table th, div.informaltable table th, +div.table table td, div.informaltable table td, +div.table table tr, div.informaltable table tr, +div.table table tbody, div.informaltable table tbody, +div.table table thead, div.informaltable table thead, +div.table table tfoot, div.informaltable table tfoot +{ + font-size: 15px; + text-align: center; +} +div.table table td, +div.informaltable table td, +div.table table th, +div.informaltable table th +{ + border: 1px solid #3D8AC9; +} +div.table table tr:first-child th, +div.informaltable table tr:first-child th +{ + border-top: 0; +} +div.table table tr:last-child td, +div.informaltable table tr:last-child td +{ + border-bottom: 0; +} +div.table table tr td:first-child, +div.informaltable table tr td:first-child, +div.table table tr th:first-child, +div.informaltable table tr th:first-child +{ + border-left: 0; +} +div.table table tr td:last-child, +div.informaltable table tr td:last-child, +div.table table tr th:last-child, +div.informaltable table tr th:last-child +{ + border-right: 0; +} + +div.queryresult table tbody td p code.literal +{ + color: #000000; +} + +div.queryresult table thead tr, +div.queryresult table tfoot tr +{ + background: #cad9dc; +} + +div.queryresult table tbody +{ + background: #d1dee1; +} + +div.queryresult table tbody tr.evenresult +{ + background: #dfe8eb; +} + +div.queryresult table thead th +{ + font-size: 0.9375em; +} + +div.queryresult table tfoot th +{ + font-size: 0.8125em; + font-weight: normal; +} + +div.table table th, div.informaltable table th +{ + color: #3D8AC9; +} +div.table-contents td p span.strong strong +{ + color: #333333; +} + +div.informaltable span.strong strong +{ + font-weight: normal; + font-style: italic; +} + +div.informalfigure a img, div.figure a img +{ + border: none; +} + +/* additional styles for slides */ + +div.slide h1 +{ + margin-top: 40px; + margin-bottom: 1em; + color: white; + border-bottom: none; +} + +div.slide p, div.slide li +{ + font-size: 1.25em; +} + +.navfooter{ + background: #0b75bc; + border: 1px solid #0b75bc; + border-top: 1px solid #3c91c9; +} + +.navfooter a { + color: #fff; + color: rgba(255,255,255,0.8); + text-decoration: none; + text-shadow: none; + font-family: Helvetica, Arial, sans-serif; +} + +h1 { font-size: 1.8em; margin-bottom: 1em; } +h2 { font-size: 1.6em; margin-bottom: 1em; } +h3 { font-size: 1.4em; margin-bottom: 1em; } +h4 { font-size: 1.2em; margin-bottom: 0.5em; } +h5 { font-size: 1em; margin-bottom: 0.5em; } + +.devstatus-code-none { + border: solid black 2px; + margin-right: 5px !important; + display: block; + float: right; + width: 4em; + font-size: 10pt !important; + font-weight: bolder; + font-family: "Courier New", "Courier", monospace !important; + background-color: #f08080; + text-align: center; + text-shadow: none !important; +} + +.devstatus-code-early { + border: solid black 2px; + margin-right: 5px !important; + display: block; + float: right; + width: 4em; + font-size: 10pt !important; + font-weight: bolder; + font-family: "Courier New", "Courier", monospace !important; + background-color: orange; + text-align: center; + text-shadow: none !important; +} +.devstatus-code-beta { + border: solid black 2px; + margin-right: 5px !important; + display: block; + float: right; + width: 4em; + font-size: 10pt !important; + font-weight: bold; + font-family: "Courier New", "Courier", monospace !important; + background-color: yellow; + text-align: center; + text-shadow: none !important; +} +.devstatus-code-stable { + border: solid black 2px; + margin-right: 5px !important; + display: block; + float: right; + width: 4em; + font-size: 10pt !important; + font-weight: bolder; + font-family: "Courier New", "Courier", monospace !important; + background-color: #adff2f; + text-align: center; + text-shadow: none !important; +} +.devstatus-code-mature { + border: solid black 2px; + margin-right: 5px !important; + display: block; + float: right; + width: 4em; + font-size: 10pt !important; + font-weight: bolder; + font-family: "Courier New", "Courier", monospace !important; + background-color: #7cfc00; + text-align: center; + text-shadow: none !important; +} + +.devstatus-docs-none { + border: solid black 2px; + margin-right: 5px !important; + display: block; + float: right; + width: 4em; + font-size: 10pt !important; + font-weight: bolder; + font-family: "Courier New", "Courier", monospace !important; + background-color: #f08080; + text-align: center; + text-shadow: none !important; +} + +.devstatus-docs-brief { + border: solid black 2px; + margin-right: 5px !important; + display: block; + float: right; + width: 4em; + font-size: 10pt !important; + font-weight: bolder; + font-family: "Courier New", "Courier", monospace !important; + background-color: yellow; + text-align: center; + text-shadow: none !important; +} +.devstatus-docs-good { + border: solid black 2px; + margin-right: 5px !important; + display: block; + float: right; + width: 4em; + font-size: 10pt !important; + font-weight: bolder; + font-family: "Courier New", "Courier", monospace !important; + background-color: #adff2f; + text-align: center; + text-shadow: none !important; +} +.devstatus-docs-complete { + border: solid black 2px; + margin-right: 5px !important; + display: block; + float: right; + width: 4em; + font-size: 10pt !important; + font-weight: bolder; + font-family: "Courier New", "Courier", monospace !important; + background-color: #7cfc00; + text-align: center; + text-shadow: none !important; +} + +.devstatus-tests-none { + border: solid black 2px; + margin-right: 5px !important; + display: block; + float: right; + width: 4em; + font-size: 10pt !important; + font-weight: bolder; + font-family: "Courier New", "Courier", monospace !important; + background-color: #f08080; + text-align: center; + text-shadow: none !important; +} + +.devstatus-tests-some { + border: solid black 2px; + margin-right: 5px !important; + display: block; + float: right; + width: 4em; + + font-size: 10pt !important; + font-weight: bolder; + font-family: "Courier New", "Courier", monospace !important; + background-color: yellow; + text-align: center; + text-shadow: none !important; +} +.devstatus-tests-good { + border: solid black 2px; + margin-right: 5px !important; + display: block; + float: right; + width: 4em; + font-size: 10pt !important; + font-weight: bolder; + font-family: "Courier New", "Courier", monospace !important; + background-color: #adff2f; + text-align: center; + text-shadow: none !important; +} + +.devstatus-tests-complete { + border: solid black 2px; + margin-right: 5px !important; + display: block; + float: right; + width: 4em; + font-size: 10pt !important; + font-weight: bolder; + font-family: "Courier New", "Courier", monospace !important; + background-color: #7cfc00; + text-align: center; + text-shadow: none !important; +} + + +.section .variablelist dt .term { + font-weight: bolder; + font-family: Consolas, Monaco, monospace; + background: #DEDEDE; +}
http://git-wip-us.apache.org/repos/asf/polygene-website/blob/ba3a0fac/content/java/develop/css/progressive-enhancement.css ---------------------------------------------------------------------- diff --git a/content/java/develop/css/progressive-enhancement.css b/content/java/develop/css/progressive-enhancement.css new file mode 100644 index 0000000..a6a551b --- /dev/null +++ b/content/java/develop/css/progressive-enhancement.css @@ -0,0 +1,232 @@ +/* + * 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. + * + * + */ + +/** + * Continuous Integration - Jenkins Widget +*/ +div.jenkins-widget { + position: relative; + font-family: helvetica,arial,sans-serif; +} +div.jenkins-widget * { + font-family: helvetica,arial,sans-serif; +} +ul.jenkins-jobs { + position: relative; + list-style-type: none; + list-style-position: inside; + font-family: helvetica,arial,sans-serif; + font-size: 13px; + line-height: 18px; + margin: 10px; + padding: 0; +} +li.jenkins-job { + position: relative; + border: 1px solid lightgray; + background: #FAFAFA; + border: 1px solid #DDD; + color: #666; + border-radius: 3px; + margin-bottom: 10px; + width: 640px; +} +li.jenkins-job div.title { + position: relative; + border-bottom: 1px solid #DDD; + border-radius: 3px 3px 0 0; + background: #FCFCFC; + background: -moz-linear-gradient( #FCFCFC, #EBEBEB); + background: -webkit-linear-gradient( #FCFCFC, #EBEBEB); +} +li.jenkins-job div.title p { + margin: 10px; +} +li.jenkins-job div.title img { + margin: 0 10px 0 5px; +} +li.jenkins-job div.health { + position: relative; + padding: 5px; + color: #666; + font-weight: 300; +} +li.jenkins-job div.health p { + margin: 2px 0; +} +li.jenkins-job div.health div.health-item { + position: relative; +} +li.jenkins-job div.health div.health-item p { + margin: 0; + line-height: 1; +} +li.jenkins-job div.health div.health-item img { + vertical-align: middle; + padding-right: 10px; +} +li.jenkins-job div.links { + position: relative; + border-top: 1px solid #DDD; + background: white; + border-radius: 0 0 3px 3px; + padding: 10px; +} +li.jenkins-job div.links p { + margin: 0; + font-size: 11px; + color: #666; + line-height: 24px; + font-weight: 300; +} +li.jenkins-job div.links > a { + position: absolute; + top: 10px; + right: 10px; + line-height: 24px; + font-size: 12px; + color: #666; + font-weight: bold; + text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9); + padding: 0 10px; + border: 1px solid #DDD; + border-bottom-color: #BBB; + border-radius: 3px; + background: whiteSmoke; + background: -moz-linear-gradient(whiteSmoke,#E5E5E5); + background: -webkit-linear-gradient(whiteSmoke,#E5E5E5); + text-decoration: none; +} + +/** + * Google Groups forum +*/ +#polygene-dev-iframe { + -moz-transform: scale(0.85, 0.85); + -webkit-transform: scale(0.85, 0.85); + -o-transform: scale(0.85, 0.85); + -ms-transform: scale(0.85, 0.85); + transform: scale(0.85, 0.85); + -moz-transform-origin: top left; + -webkit-transform-origin: top left; + -o-transform-origin: top left; + -ms-transform-origin: top left; + transform-origin: top left; + width: 900px; + height: 2000px; +} + +/** + * Issue Tracker +*/ +div.jira-versions-widget { + position: relative; + font-family: helvetica,arial,sans-serif; +} +div.jira-versions-widget * { + font-family: helvetica,arial,sans-serif; +} +ul.jira-versions { + position: relative; + list-style-type: none; + list-style-position: inside; + font-family: helvetica,arial,sans-serif; + font-size: 13px; + line-height: 18px; + margin: 10px; + padding: 0; +} +li.jira-version { + position: relative; + border: 1px solid lightgray; + background: #FAFAFA; + border: 1px solid #DDD; + color: #666; + border-radius: 3px; + margin-bottom: 10px; + width: 640px; +} +li.jira-version div.title { + position: relative; + border-bottom: 1px solid #DDD; + border-radius: 3px 3px 0 0; + background: #FCFCFC; + background: -moz-linear-gradient( #FCFCFC, #EBEBEB); + background: -webkit-linear-gradient( #FCFCFC, #EBEBEB); +} +li.jira-version div.title p { + margin: 10px; +} +li.jira-version div.title img { + margin: 0 10px 0 5px; +} +li.jira-version div.issues { + position: relative; + padding: 5px; + color: #666; + font-weight: 300; +} +li.jira-version div.issues p { + margin: 2px 0; +} +li.jira-version div.issues div.issues-item { + position: relative; +} +li.jira-version div.issues div.issues-item p { + margin: 0; + line-height: 1; +} +li.jira-version div.issues div.issues-item img { + vertical-align: middle; + padding-right: 10px; +} +li.jira-version div.links { + position: relative; + border-top: 1px solid #DDD; + background: white; + border-radius: 0 0 3px 3px; + padding: 5px; + height: 20px; +} +li.jira-version div.links p { + margin: 0; + font-size: 11px; + color: #666; + line-height: 24px; + font-weight: 300; +} +li.jira-version div.links > a { + position: absolute; + top: 5px; + right: 10px; + line-height: 18px; + font-size: 12px; + color: #666; + font-weight: bold; + text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9); + padding: 0 10px; + border: 1px solid #DDD; + border-bottom-color: #BBB; + border-radius: 3px; + background: whiteSmoke; + background: -moz-linear-gradient(whiteSmoke,#E5E5E5); + background: -webkit-linear-gradient(whiteSmoke,#E5E5E5); + text-decoration: none; +} http://git-wip-us.apache.org/repos/asf/polygene-website/blob/ba3a0fac/content/java/develop/css/shCore.css ---------------------------------------------------------------------- diff --git a/content/java/develop/css/shCore.css b/content/java/develop/css/shCore.css new file mode 100644 index 0000000..737b6c5 --- /dev/null +++ b/content/java/develop/css/shCore.css @@ -0,0 +1,229 @@ +/* + * 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. + * + * + */ +.syntaxhighlighter a, +.syntaxhighlighter div, +.syntaxhighlighter code, +.syntaxhighlighter table, +.syntaxhighlighter table td, +.syntaxhighlighter table tr, +.syntaxhighlighter table tbody, +.syntaxhighlighter table thead, +.syntaxhighlighter table caption, +.syntaxhighlighter textarea { + -moz-border-radius: 0 0 0 0 !important; + -webkit-border-radius: 0 0 0 0 !important; + background: none !important; + border: 0 !important; + bottom: auto !important; + float: none !important; + height: auto !important; + left: auto !important; + line-height: 1.1em !important; + margin: 0 !important; + outline: 0 !important; + overflow: visible !important; + padding: 0 !important; + position: static !important; + right: auto !important; + text-align: left !important; + top: auto !important; + vertical-align: baseline !important; + width: auto !important; + box-sizing: content-box !important; + font-family: "Consolas", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; + font-weight: normal !important; + font-style: normal !important; + font-size: 1em !important; + min-height: inherit !important; + min-height: auto !important; +} + +.syntaxhighlighter { + width: 100% !important; + margin: 1em 0 1em 0 !important; + position: relative !important; + overflow: auto !important; + font-size: 1em !important; +} +.syntaxhighlighter.source { + overflow: hidden !important; +} +.syntaxhighlighter .bold { + font-weight: bold !important; +} +.syntaxhighlighter .italic { + font-style: italic !important; +} +.syntaxhighlighter .line { + white-space: pre !important; +} +.syntaxhighlighter table { + width: 100% !important; +} +.syntaxhighlighter table caption { + text-align: left !important; + padding: .5em 0 0.5em 1em !important; +} +.syntaxhighlighter table td.code { + width: 100% !important; +} +.syntaxhighlighter table td.code .container { + position: relative !important; +} +.syntaxhighlighter table td.code .container textarea { + box-sizing: border-box !important; + position: absolute !important; + left: 0 !important; + top: 0 !important; + width: 100% !important; + height: 100% !important; + border: none !important; + background: white !important; + padding-left: 1em !important; + overflow: hidden !important; + white-space: pre !important; +} +.syntaxhighlighter table td.gutter .line { + text-align: right !important; + padding: 0 0.5em 0 1em !important; +} +.syntaxhighlighter table td.code .line { + padding: 0 1em !important; +} +.syntaxhighlighter.nogutter td.code .container textarea, .syntaxhighlighter.nogutter td.code .line { + padding-left: 0em !important; +} +.syntaxhighlighter.show { + display: block !important; +} +.syntaxhighlighter.collapsed table { + display: none !important; +} +.syntaxhighlighter.collapsed .toolbar { + padding: 0.1em 0.8em 0em 0.8em !important; + font-size: 1em !important; + position: static !important; + width: auto !important; + height: auto !important; +} +.syntaxhighlighter.collapsed .toolbar span { + display: inline !important; + margin-right: 1em !important; +} +.syntaxhighlighter.collapsed .toolbar span a { + padding: 0 !important; + display: none !important; +} +.syntaxhighlighter.collapsed .toolbar span a.expandSource { + display: inline !important; +} +.syntaxhighlighter .toolbar { + position: absolute !important; + right: 1px !important; + top: 1px !important; + width: 11px !important; + height: 11px !important; + font-size: 10px !important; + z-index: 10 !important; +} +.syntaxhighlighter .toolbar span.title { + display: inline !important; +} +.syntaxhighlighter .toolbar a { + display: block !important; + text-align: center !important; + text-decoration: none !important; + padding-top: 1px !important; +} +.syntaxhighlighter .toolbar a.expandSource { + display: none !important; +} +.syntaxhighlighter.ie { + font-size: .9em !important; + padding: 1px 0 1px 0 !important; +} +.syntaxhighlighter.ie .toolbar { + line-height: 8px !important; +} +.syntaxhighlighter.ie .toolbar a { + padding-top: 0px !important; +} +.syntaxhighlighter.printing .line.alt1 .content, +.syntaxhighlighter.printing .line.alt2 .content, +.syntaxhighlighter.printing .line.highlighted .number, +.syntaxhighlighter.printing .line.highlighted.alt1 .content, +.syntaxhighlighter.printing .line.highlighted.alt2 .content { + background: none !important; +} +.syntaxhighlighter.printing .line .number { + color: #bbbbbb !important; +} +.syntaxhighlighter.printing .line .content { + color: black !important; +} +.syntaxhighlighter.printing .toolbar { + display: none !important; +} +.syntaxhighlighter.printing a { + text-decoration: none !important; +} +.syntaxhighlighter.printing .plain, .syntaxhighlighter.printing .plain a { + color: black !important; +} +.syntaxhighlighter.printing .comments, .syntaxhighlighter.printing .comments a { + color: #008200 !important; +} +.syntaxhighlighter.printing .string, .syntaxhighlighter.printing .string a { + color: blue !important; +} +.syntaxhighlighter.printing .keyword { + color: #006699 !important; + font-weight: bold !important; +} +.syntaxhighlighter.printing .preprocessor { + color: gray !important; +} +.syntaxhighlighter.printing .variable { + color: #aa7700 !important; +} +.syntaxhighlighter.printing .value { + color: #009900 !important; +} +.syntaxhighlighter.printing .functions { + color: #ff1493 !important; +} +.syntaxhighlighter.printing .constants { + color: #0066cc !important; +} +.syntaxhighlighter.printing .script { + font-weight: bold !important; +} +.syntaxhighlighter.printing .color1, .syntaxhighlighter.printing .color1 a { + color: gray !important; +} +.syntaxhighlighter.printing .color2, .syntaxhighlighter.printing .color2 a { + color: #ff1493 !important; +} +.syntaxhighlighter.printing .color3, .syntaxhighlighter.printing .color3 a { + color: red !important; +} +.syntaxhighlighter.printing .break, .syntaxhighlighter.printing .break a { + color: black !important; +} http://git-wip-us.apache.org/repos/asf/polygene-website/blob/ba3a0fac/content/java/develop/css/shCoreEclipse.css ---------------------------------------------------------------------- diff --git a/content/java/develop/css/shCoreEclipse.css b/content/java/develop/css/shCoreEclipse.css new file mode 100644 index 0000000..6adfd6c --- /dev/null +++ b/content/java/develop/css/shCoreEclipse.css @@ -0,0 +1,342 @@ +/* + * 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. + * + * + */ +.syntaxhighlighter a, +.syntaxhighlighter div, +.syntaxhighlighter code, +.syntaxhighlighter table, +.syntaxhighlighter table td, +.syntaxhighlighter table tr, +.syntaxhighlighter table tbody, +.syntaxhighlighter table thead, +.syntaxhighlighter table caption, +.syntaxhighlighter textarea { + -moz-border-radius: 0 0 0 0 !important; + -webkit-border-radius: 0 0 0 0 !important; + background: none !important; + border: 0 !important; + bottom: auto !important; + float: none !important; + height: auto !important; + left: auto !important; + line-height: 1.1em !important; + margin: 0 !important; + outline: 0 !important; + overflow: visible !important; + padding: 0 !important; + position: static !important; + right: auto !important; + text-align: left !important; + top: auto !important; + vertical-align: baseline !important; + width: auto !important; + box-sizing: content-box !important; + font-family: "Consolas", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; + font-weight: normal !important; + font-style: normal !important; + font-size: 1em !important; + min-height: inherit !important; + min-height: auto !important; +} + +.syntaxhighlighter { + width: 100% !important; + margin: 1em 0 1em 0 !important; + position: relative !important; + overflow: auto !important; + font-size: 1em !important; +} +.syntaxhighlighter.source { + overflow: hidden !important; +} +.syntaxhighlighter .bold { + font-weight: bold !important; +} +.syntaxhighlighter .italic { + font-style: italic !important; +} +.syntaxhighlighter .line { + white-space: pre !important; +} +.syntaxhighlighter table { + width: 100% !important; +} +.syntaxhighlighter table caption { + text-align: left !important; + padding: .5em 0 0.5em 1em !important; +} +.syntaxhighlighter table td.code { + width: 100% !important; +} +.syntaxhighlighter table td.code .container { + position: relative !important; +} +.syntaxhighlighter table td.code .container textarea { + box-sizing: border-box !important; + position: absolute !important; + left: 0 !important; + top: 0 !important; + width: 100% !important; + height: 100% !important; + border: none !important; + background: white !important; + padding-left: 1em !important; + overflow: hidden !important; + white-space: pre !important; +} +.syntaxhighlighter table td.gutter .line { + text-align: right !important; + padding: 0 0.5em 0 1em !important; +} +.syntaxhighlighter table td.code .line { + padding: 0 1em !important; +} +.syntaxhighlighter.nogutter td.code .container textarea, .syntaxhighlighter.nogutter td.code .line { + padding-left: 0em !important; +} +.syntaxhighlighter.show { + display: block !important; +} +.syntaxhighlighter.collapsed table { + display: none !important; +} +.syntaxhighlighter.collapsed .toolbar { + padding: 0.1em 0.8em 0em 0.8em !important; + font-size: 1em !important; + position: static !important; + width: auto !important; + height: auto !important; +} +.syntaxhighlighter.collapsed .toolbar span { + display: inline !important; + margin-right: 1em !important; +} +.syntaxhighlighter.collapsed .toolbar span a { + padding: 0 !important; + display: none !important; +} +.syntaxhighlighter.collapsed .toolbar span a.expandSource { + display: inline !important; +} +.syntaxhighlighter .toolbar { + position: absolute !important; + right: 1px !important; + top: 1px !important; + width: 11px !important; + height: 11px !important; + font-size: 10px !important; + z-index: 10 !important; +} +.syntaxhighlighter .toolbar span.title { + display: inline !important; +} +.syntaxhighlighter .toolbar a { + display: block !important; + text-align: center !important; + text-decoration: none !important; + padding-top: 1px !important; +} +.syntaxhighlighter .toolbar a.expandSource { + display: none !important; +} +.syntaxhighlighter.ie { + font-size: .9em !important; + padding: 1px 0 1px 0 !important; +} +.syntaxhighlighter.ie .toolbar { + line-height: 8px !important; +} +.syntaxhighlighter.ie .toolbar a { + padding-top: 0px !important; +} +.syntaxhighlighter.printing .line.alt1 .content, +.syntaxhighlighter.printing .line.alt2 .content, +.syntaxhighlighter.printing .line.highlighted .number, +.syntaxhighlighter.printing .line.highlighted.alt1 .content, +.syntaxhighlighter.printing .line.highlighted.alt2 .content { + background: none !important; +} +.syntaxhighlighter.printing .line .number { + color: #bbbbbb !important; +} +.syntaxhighlighter.printing .line .content { + color: black !important; +} +.syntaxhighlighter.printing .toolbar { + display: none !important; +} +.syntaxhighlighter.printing a { + text-decoration: none !important; +} +.syntaxhighlighter.printing .plain, .syntaxhighlighter.printing .plain a { + color: black !important; +} +.syntaxhighlighter.printing .comments, .syntaxhighlighter.printing .comments a { + color: #008200 !important; +} +.syntaxhighlighter.printing .string, .syntaxhighlighter.printing .string a { + color: blue !important; +} +.syntaxhighlighter.printing .keyword { + color: #006699 !important; + font-weight: bold !important; +} +.syntaxhighlighter.printing .preprocessor { + color: gray !important; +} +.syntaxhighlighter.printing .variable { + color: #aa7700 !important; +} +.syntaxhighlighter.printing .value { + color: #009900 !important; +} +.syntaxhighlighter.printing .functions { + color: #ff1493 !important; +} +.syntaxhighlighter.printing .constants { + color: #0066cc !important; +} +.syntaxhighlighter.printing .script { + font-weight: bold !important; +} +.syntaxhighlighter.printing .color1, .syntaxhighlighter.printing .color1 a { + color: gray !important; +} +.syntaxhighlighter.printing .color2, .syntaxhighlighter.printing .color2 a { + color: #ff1493 !important; +} +.syntaxhighlighter.printing .color3, .syntaxhighlighter.printing .color3 a { + color: red !important; +} +.syntaxhighlighter.printing .break, .syntaxhighlighter.printing .break a { + color: black !important; +} + +.syntaxhighlighter { + background-color: white !important; +} +.syntaxhighlighter .line.alt1 { + background-color: white !important; +} +.syntaxhighlighter .line.alt2 { + background-color: white !important; +} +.syntaxhighlighter .line.highlighted.alt1, .syntaxhighlighter .line.highlighted.alt2 { + background-color: #c3defe !important; +} +.syntaxhighlighter .line.highlighted.number { + color: white !important; +} +.syntaxhighlighter table caption { + color: black !important; +} +.syntaxhighlighter .gutter { + color: #787878 !important; +} +.syntaxhighlighter .gutter .line { + border-right: 3px solid #d4d0c8 !important; +} +.syntaxhighlighter .gutter .line.highlighted { + background-color: #d4d0c8 !important; + color: white !important; +} +.syntaxhighlighter.printing .line .content { + border: none !important; +} +.syntaxhighlighter.collapsed { + overflow: visible !important; +} +.syntaxhighlighter.collapsed .toolbar { + color: #3f5fbf !important; + background: white !important; + border: 1px solid #d4d0c8 !important; +} +.syntaxhighlighter.collapsed .toolbar a { + color: #3f5fbf !important; +} +.syntaxhighlighter.collapsed .toolbar a:hover { + color: #aa7700 !important; +} +.syntaxhighlighter .toolbar { + color: #a0a0a0 !important; + background: #d4d0c8 !important; + border: none !important; +} +.syntaxhighlighter .toolbar a { + color: #a0a0a0 !important; +} +.syntaxhighlighter .toolbar a:hover { + color: red !important; +} +.syntaxhighlighter .plain, .syntaxhighlighter .plain a { + color: black !important; +} +.syntaxhighlighter .comments, .syntaxhighlighter .comments a { + color: #3f5fbf !important; +} +.syntaxhighlighter .string, .syntaxhighlighter .string a { + color: #2a00ff !important; +} +.syntaxhighlighter .keyword { + color: #7f0055 !important; +} +.syntaxhighlighter .preprocessor { + color: #646464 !important; +} +.syntaxhighlighter .variable { + color: #aa7700 !important; +} +.syntaxhighlighter .value { + color: #009900 !important; +} +.syntaxhighlighter .functions { + color: #ff1493 !important; +} +.syntaxhighlighter .constants { + color: #0066cc !important; +} +.syntaxhighlighter .script { + font-weight: bold !important; + color: #7f0055 !important; + background-color: none !important; +} +.syntaxhighlighter .color1, .syntaxhighlighter .color1 a { + color: gray !important; +} +.syntaxhighlighter .color2, .syntaxhighlighter .color2 a { + color: #ff1493 !important; +} +.syntaxhighlighter .color3, .syntaxhighlighter .color3 a { + color: red !important; +} + +.syntaxhighlighter .keyword { + font-weight: bold !important; +} +.syntaxhighlighter .xml .keyword { + color: #3f7f7f !important; + font-weight: normal !important; +} +.syntaxhighlighter .xml .color1, .syntaxhighlighter .xml .color1 a { + color: #7f007f !important; +} +.syntaxhighlighter .xml .string { + font-style: italic !important; + color: #2a00ff !important; +} http://git-wip-us.apache.org/repos/asf/polygene-website/blob/ba3a0fac/content/java/develop/css/shThemeEclipse.css ---------------------------------------------------------------------- diff --git a/content/java/develop/css/shThemeEclipse.css b/content/java/develop/css/shThemeEclipse.css new file mode 100644 index 0000000..f175025 --- /dev/null +++ b/content/java/develop/css/shThemeEclipse.css @@ -0,0 +1,131 @@ +/* + * 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. + * + * + */ +.syntaxhighlighter { + background-color: white !important; +} +.syntaxhighlighter .line.alt1 { + background-color: white !important; +} +.syntaxhighlighter .line.alt2 { + background-color: white !important; +} +.syntaxhighlighter .line.highlighted.alt1, .syntaxhighlighter .line.highlighted.alt2 { + background-color: #c3defe !important; +} +.syntaxhighlighter .line.highlighted.number { + color: white !important; +} +.syntaxhighlighter table caption { + color: black !important; +} +.syntaxhighlighter .gutter { + color: #787878 !important; +} +.syntaxhighlighter .gutter .line { + border-right: 3px solid #d4d0c8 !important; +} +.syntaxhighlighter .gutter .line.highlighted { + background-color: #d4d0c8 !important; + color: white !important; +} +.syntaxhighlighter.printing .line .content { + border: none !important; +} +.syntaxhighlighter.collapsed { + overflow: visible !important; +} +.syntaxhighlighter.collapsed .toolbar { + color: #3f5fbf !important; + background: white !important; + border: 1px solid #d4d0c8 !important; +} +.syntaxhighlighter.collapsed .toolbar a { + color: #3f5fbf !important; +} +.syntaxhighlighter.collapsed .toolbar a:hover { + color: #aa7700 !important; +} +.syntaxhighlighter .toolbar { + color: #a0a0a0 !important; + background: #d4d0c8 !important; + border: none !important; +} +.syntaxhighlighter .toolbar a { + color: #a0a0a0 !important; +} +.syntaxhighlighter .toolbar a:hover { + color: red !important; +} +.syntaxhighlighter .plain, .syntaxhighlighter .plain a { + color: black !important; +} +.syntaxhighlighter .comments, .syntaxhighlighter .comments a { + color: #3f5fbf !important; +} +.syntaxhighlighter .string, .syntaxhighlighter .string a { + color: #2a00ff !important; +} +.syntaxhighlighter .keyword { + color: #7f0055 !important; +} +.syntaxhighlighter .preprocessor { + color: #646464 !important; +} +.syntaxhighlighter .variable { + color: #aa7700 !important; +} +.syntaxhighlighter .value { + color: #009900 !important; +} +.syntaxhighlighter .functions { + color: #ff1493 !important; +} +.syntaxhighlighter .constants { + color: #0066cc !important; +} +.syntaxhighlighter .script { + font-weight: bold !important; + color: #7f0055 !important; + background-color: none !important; +} +.syntaxhighlighter .color1, .syntaxhighlighter .color1 a { + color: gray !important; +} +.syntaxhighlighter .color2, .syntaxhighlighter .color2 a { + color: #ff1493 !important; +} +.syntaxhighlighter .color3, .syntaxhighlighter .color3 a { + color: red !important; +} + +.syntaxhighlighter .keyword { + font-weight: bold !important; +} +.syntaxhighlighter .xml .keyword { + color: #3f7f7f !important; + font-weight: normal !important; +} +.syntaxhighlighter .xml .color1, .syntaxhighlighter .xml .color1 a { + color: #7f007f !important; +} +.syntaxhighlighter .xml .string { + font-style: italic !important; + color: #2a00ff !important; +} http://git-wip-us.apache.org/repos/asf/polygene-website/blob/ba3a0fac/content/java/develop/css/style.css ---------------------------------------------------------------------- diff --git a/content/java/develop/css/style.css b/content/java/develop/css/style.css new file mode 100644 index 0000000..a42d538 --- /dev/null +++ b/content/java/develop/css/style.css @@ -0,0 +1,322 @@ +/* + * 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. + * + * + */ + +body +{ + background: url("bg.png"); + margin: 0; + padding: 0; + font-family: Helvetica, Arial, sans-serif; + color: #343434; + line-height: 1.2em; +} + +.section p +{ + /* margin-right: 85px; */ +} + +.literal, .literallayout, .screen +{ + background: #DEDEDE; +} + +.literallayout +{ + padding: 7px; +} + +a +{ + color: #00009A; +} + +h2.title +{ + display: none; +} + +.listitem +{ + padding:3px; +} + +.logo +{ + position: fixed; + top: 45px; + left: 20px; + z-index: 18; +} + +.top-nav +{ + position: fixed; + top: 7px; + width: 100%; + z-index: 20; +} + +.top-nav .toc +{ + margin: 0; + margin-top: -7px; + padding: 0; + height: 40px; +} + +.top-nav .toc dl +{ + margin: 0; + padding: 20px 0 5px 0; + text-align: center; + background-image: linear-gradient(bottom, rgb(49, 105, 165) 100%, rgb(255, 255, 255) 0%); + background-image: -o-linear-gradient(bottom, rgb(49, 105, 165) 100%, rgb(255, 255, 255) 0%); + background: -moz-linear-gradient(top, #3d8ac9 0%, #ffffff 100%); + background-image: -webkit-linear-gradient(bottom, rgb(49, 105, 165) 100%, rgb(255, 255, 255) 0%); + background-image: -ms-linear-gradient(bottom, rgb(49, 105, 165) 100%, rgb(255, 255, 255) 0%); + background-image: -webkit-gradient(linear, left bottom, left top, color-stop(1, rgb(49, 105, 165)), color-stop(0, rgb(255, 255, 255))); + border-bottom: 1px solid #3d8ac9; +} + +.top-nav .toc dt +{ + display: inline; + font-size: 11pt; + display: inline; + margin-right: 1px; +} + +/* selected */ +.top-nav .toc dt span span +{ + color: red; + border-right: 1px solid white; + margin-right: 1px; +} + +.top-nav .toc .toc-spacer span span +{ + /* + border-top:0px; + border-left:0px; + border-right:0px; + border-bottom:1px solid #005500; + */ + border: 0px; + padding-bottom: 7px; +} + +/* unselected */ +.top-nav .toc dt a +{ + margin-right: 1px; + border-top: 1px solid #fff; + border-right: 1px solid #fff; + border-left: 1px solid #fff; + color: #3D8AC9; +} + +/* hover */ +.top-nav .toc dt a, +.top-nav .toc dt span span +{ + padding: 15px 15px 5px 15px; + text-decoration: none; + background-image: linear-gradient(bottom, rgb(191, 191, 191) 100%, rgb(255, 255, 255) 0%); + background-image: -o-linear-gradient(bottom, rgb(191, 191, 191) 100%, rgb(255, 255, 255) 0%); + background: -moz-linear-gradient(top, #bfbfbf 0%, #ffffff 100%); + background-image: -webkit-linear-gradient(bottom, rgb(191, 191, 191) 100%, rgb(255, 255, 255) 0%); + background-image: -ms-linear-gradient(bottom, rgb(191, 191, 191) 100%, rgb(255, 255, 255) 0%); + background-image: -webkit-gradient(linear, left bottom, left top, color-stop(1, rgb(191, 191, 191)), color-stop(0, rgb(255, 255, 255))); +} + +.top-nav .toc dt a:hover /* ,.top-nav .toc dt span span*/ +{ + background-image: linear-gradient(bottom, rgb(49, 105, 165) 100%, rgb(255, 255, 255) 0%); + background-image: -o-linear-gradient(bottom, rgb(49, 105, 165) 100%, rgb(255, 255, 255) 0%); + background: -moz-linear-gradient(top, #3d8ac9 0%, #ffffff 100%); + background-image: -webkit-linear-gradient(bottom, rgb(49, 105, 165) 100%, rgb(255, 255, 255) 0%); + background-image: -ms-linear-gradient(bottom, rgb(49, 105, 165) 100%, rgb(255, 255, 255) 0%); + background-image: -webkit-gradient(linear, left bottom, left top, color-stop(1, rgb(49, 105, 165)), color-stop(0, rgb(255, 255, 255))); +} + +.sub-nav +{ +} + +.sub-nav .toc +{ + position: absolute; + top: 65px; + left: 155px; +} + +.sub-nav .toc dl +{ + font-family: sans-serif; + width: 200px; + margin-right: 0px; + margin-left: 0px; + margin-bottom: 40px; +} + +.sub-nav .toc dl dt +{ + font-size: 0.8em; +} + +div.article +{ + padding: 2px; +} + +div.article hr +{ + display: none; +} + +body > div.article, +body > div.section +{ + margin: 80px 20px 20px 360px; + min-height: 1280px; + max-width: 45em; +} + +.sub-nav .toc dl a +{ + display: none; +} + +.sub-nav .toc dt a, +.sub-nav .toc dt span +{ + display: table; + margin: 0; + text-decoration: none; +} +.sub-nav .toc dt a:before, +.sub-nav .toc dt span span:before +{ + content: "\00bb\00a0"; +} +.sub-nav .toc dt span +{ + color: red; +} + +.hlabeledlist tr > td:first-child +{ + width: 136px; +} + +.footer +{ + clear: both; + text-align: center; + padding: 10px 0; + background: #343434; + color: #9a9a9a; + font-size: 80%; +} +.footer p { + text-shadow: none; +} + +div.informaltable +{ + width: 100%; +} +div.informaltable table, +div.table table +{ + background: transparent; +} +div.informaltable table thead, +div.table table thead +{ + border-bottom: 1px solid black; +} + +#flash +{ + margin: 40px; + float: right; + width: 320px; + text-align: right; +} + +.extra-content +{ + display: none; +} + +#F +{ + position: relative; + left: 18px; + top: 3px; +} + +#K +{ + position: relative; + left: 84px; + top: 3px; +} + +#P +{ + position: relative; + left: -65px; + top: 3px; +} + +#S +{ + position: relative; + left: 8px; + top: 3px; +} + +#W +{ + position: relative; + left: -42px; + top: 6px; +} + +#Z +{ + position: relative; + left: -26px; + top: 4px; +} + +/* +#J { position:relative; } +#P { position:absolute; left:0px; } +#F { position:absolute; left:23px; } +#Z { position:absolute; left:60px; } +#W { position:absolute; left:72px; } +#S { position:absolute; left:103px; } +#K { position:absolute; left:122px; top:2px; } +*/ http://git-wip-us.apache.org/repos/asf/polygene-website/blob/ba3a0fac/content/java/develop/css/table-bg.png ---------------------------------------------------------------------- diff --git a/content/java/develop/css/table-bg.png b/content/java/develop/css/table-bg.png new file mode 100644 index 0000000..24877cb Binary files /dev/null and b/content/java/develop/css/table-bg.png differ http://git-wip-us.apache.org/repos/asf/polygene-website/blob/ba3a0fac/content/java/develop/css/tip.png ---------------------------------------------------------------------- diff --git a/content/java/develop/css/tip.png b/content/java/develop/css/tip.png new file mode 100644 index 0000000..d382c8c Binary files /dev/null and b/content/java/develop/css/tip.png differ http://git-wip-us.apache.org/repos/asf/polygene-website/blob/ba3a0fac/content/java/develop/css/warning.png ---------------------------------------------------------------------- diff --git a/content/java/develop/css/warning.png b/content/java/develop/css/warning.png new file mode 100644 index 0000000..cc13f25 Binary files /dev/null and b/content/java/develop/css/warning.png differ http://git-wip-us.apache.org/repos/asf/polygene-website/blob/ba3a0fac/content/java/develop/extension-cache-ehcache.html ---------------------------------------------------------------------- diff --git a/content/java/develop/extension-cache-ehcache.html b/content/java/develop/extension-cache-ehcache.html new file mode 100644 index 0000000..eb4294b --- /dev/null +++ b/content/java/develop/extension-cache-ehcache.html @@ -0,0 +1,198 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Ehcache Cache</title><link rel="stylesheet" type="text/css" href="css/style.css" /><meta name="generator" content="DocBook XSL Stylesheets V1.76.1" /><link rel="home" href="index.html" title="" /><link rel="up" href="extensions.html" title="Extensions" /><link rel="prev" href="extension-vs-stax.html" title="StAX ValueSerialization" /><link rel="next" href="extension-cache-memcache.html" title="Memcache Cache" /> + + +<!-- favicon --> + +<link rel="shortcut icon" href="http://polygene.apache.org/favicon.ico" type="image/vnd.microsoft.icon" /> +<link rel="icon" href="http://polygene.apache.org/favicon.ico" type="image/x-icon" /> + +<!-- style --> + +<link href="css/shCore.css" rel="stylesheet" type="text/css" /> +<link href="css/shCoreEclipse.css" rel="stylesheet" type="text/css" /> +<link href="css/shThemeEclipse.css" rel="stylesheet" type="text/css" /> +<link href="css/polygene.css" rel="stylesheet" type="text/css" /> + +<!-- Syntax Highlighter --> + +<script type="text/javascript" src="js/shCore.js"></script> +<script type="text/javascript" src="js/shBrushJava.js"></script> +<script type="text/javascript" src="js/shBrushScala.js"></script> +<script type="text/javascript" src="js/shBrushJScript.js"></script> +<script type="text/javascript" src="js/shBrushBash.js"></script> +<script type="text/javascript" src="js/shBrushPlain.js"></script> +<script type="text/javascript" src="js/shBrushXml.js"></script> +<script type="text/javascript" src="js/shBrushGroovy.js"></script> +<script type="text/javascript" src="js/shBrushPython.js"></script> +<script type="text/javascript" src="js/shBrushRuby.js"></script> +<script type="text/javascript" src="js/shBrushCSharp.js"></script> + +<script type="text/javascript"> + SyntaxHighlighter.defaults['tab-size'] = 4; + SyntaxHighlighter.defaults['gutter'] = false; + SyntaxHighlighter.defaults['toolbar'] = false; + SyntaxHighlighter.all() +</script> + +<!-- JQuery --> + +<script type="text/javascript" src="js/jquery-1.6.4.min.js"></script> + +<!-- Image Scaler --> + +<script type="text/javascript" src="js/imagescaler.js"></script> + +<!-- Table Styler --> + +<script type="text/javascript" src="js/tablestyler.js"></script> + +<!-- Apache Polygene WebSite Progressive Enhancement --> + +<link href="css/progressive-enhancement.css" rel="stylesheet" type="text/css" /> +<script type="text/javascript" src="js/jquery.scrollTo-1.4.2.js"></script> +<script type="text/javascript" src="js/progressive-enhancement.js"></script> + +<!-- Analytics --> + <script type="text/javascript"> + var _gaq = _gaq || []; + _gaq.push(['_setAccount', 'UA-62007352-1']); + _gaq.push(['_trackPageview']); + + (function() { + var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; + ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; + var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); + })(); + </script> + + </head><body><div xmlns="" xmlns:exsl="http://exslt.org/common" class="logo"><a href="index.html"><img src="images/logo-standard.png" /></a></div><div xmlns="" xmlns:exsl="http://exslt.org/common" class="top-nav"><div xmlns="http://www.w3.org/1999/xhtml" class="toc"><dl><dt><span class="section"><a href="index.html#home">Polygeneâ¢</a></span></dt><dt><span class="section"><a href="intro.html">Introduction</a></span></dt><dt><span class="section"><a href="tutorials.html">Tutorials</a></span></dt><dt><span class="section"><a href="javadocs.html">Javadoc</a></span></dt><dt><span class="section"><a href="samples.html">Samples</a></span></dt><dt><span class="section"><a href="core.html">Core</a></span></dt><dt><span class="section"><a href="libraries.html">Libraries</a></span></dt><dt><span class="section"><span xmlns="" href="extensions.html">Extensions</span></span></dt><dt><span class="section"><a href="tools.html">Tools</a></span></dt><dt><span class="section"><a href="glossary.ht ml">Glossary </a></span></dt></dl></div></div><div xmlns="" xmlns:exsl="http://exslt.org/common" class="sub-nav"><div xmlns="http://www.w3.org/1999/xhtml" class="toc"><dl><dt><span class="section"><a href="extensions.html#_overview_7">Overview</a></span></dt><dt><span class="section"><a href="extension-vs-orgjson.html">org.json ValueSerialization</a></span></dt><dt><span class="section"><a href="extension-vs-jackson.html">Jackson ValueSerialization</a></span></dt><dt><span class="section"><a href="extension-vs-stax.html">StAX ValueSerialization</a></span></dt><dt><span class="section"><span xmlns="" href="extension-cache-ehcache.html">Ehcache Cache</span></span></dt><dt><span class="section"><a href="extension-cache-memcache.html">Memcache Cache</a></span></dt><dt><span class="section"><a href="extension-es-memory.html">Memory EntityStore</a></span></dt><dt><span class="section"><a href="extension-es-file.html">File EntityStore</a></span></dt><dt><span class="section"><a href="exte nsion-es-geode.html">Geode EntityStore</a></span></dt><dt><span class="section"><a href="extension-es-hazelcast.html">Hazelcast EntityStore</a></span></dt><dt><span class="section"><a href="extension-es-jclouds.html">JClouds EntityStore</a></span></dt><dt><span class="section"><a href="extension-es-jdbm.html">JDBM EntityStore</a></span></dt><dt><span class="section"><a href="extension-es-leveldb.html">LevelDB EntityStore</a></span></dt><dt><span class="section"><a href="extension-es-mongodb.html">MongoDB EntityStore</a></span></dt><dt><span class="section"><a href="extension-es-preferences.html">Preferences EntityStore</a></span></dt><dt><span class="section"><a href="extension-es-redis.html">Redis EntityStore</a></span></dt><dt><span class="section"><a href="extension-es-riak.html">Riak EntityStore</a></span></dt><dt><span class="section"><a href="extension-es-sql.html">SQL EntityStore</a></span></dt><dt><span class="section"><a href="extension-index-elasticsearch.html">ElasticSear ch Index/Query</a></span></dt><dt><span class="section"><a href="extension-index-rdf.html">OpenRDF Index/Query</a></span></dt><dt><span class="section"><a href="extension-index-solr.html">Apache Solr Index/Query</a></span></dt><dt><span class="section"><a href="extension-indexing-sql.html">SQL Index/Query</a></span></dt><dt><span class="section"><a href="extension-metrics-metrics.html">Codahale Metrics</a></span></dt><dt><span class="section"><a href="extension-migration.html">Migration</a></span></dt><dt><span class="section"><a href="extension-reindexer.html">Reindexer</a></span></dt></dl></div></div><div class="section" title="Ehcache Cache"><div class="titlepage"><div><div><h3 class="title"><a id="extension-cache-ehcache"></a>Ehcache Cache</h3></div></div></div><p class="remark"><em><span class="comment"></span></em></p><p class="devstatus-code-beta">code</p><p class="devstatus-docs-brief">docs</p><p class="devstatus-tests-some">tests</p><p>EntityStore cache backed by <a class=" ulink" href="http://ehcache.org/" target="_top">EhCache</a>.</p><p>Not all EntityStore implementations use the Cache extension, so check the implementation details of the +EntityStore whether the cache extension can bring any benefits or not.</p><div class="section" title="Assembly"><div class="titlepage"><div><div><h4 class="title"><a id="_assembly_8"></a>Assembly</h4></div></div></div><p>Assembly is done using the provided Assembler:</p><pre class="programlisting brush: java">public void assemble( ModuleAssembly module ) + throws AssemblyException +{ + [...snip...] + + new EhCacheAssembler(). + withConfig( confModule, Visibility.layer ). + assemble( module ); +} +</pre></div><div class="section" title="Configuration"><div class="titlepage"><div><div><h4 class="title"><a id="_configuration_3"></a>Configuration</h4></div></div></div><p>Here are the configuration properties for the EhCache EntityStore Cache:</p><pre class="programlisting brush: java">public interface EhCacheConfiguration extends ConfigurationComposite { + + /** + * Heap tier size. + * + * Default to 1MB, you may want to change this. + * + * @return Heap tier size + */ + @UseDefaults( "1" ) + Property<Long> heapSize(); + + /** + * Heap tier size unit. + * + * @return Heap tier size unit + */ + @OneOf( { "B", "KB", "MB", "GB", "TB", "PB" } ) + @UseDefaults( "MB" ) + Property<String> heapUnit(); + + /** + * Optional off-heap tier size. + * + * @return Optional off-heap tier size + */ + @Optional + Property<Long> offHeapSize(); + + /** + * Off-heap tier size unit. + * + * @return Off-heap tier size unit + */ + @OneOf( { "B", "KB", "MB", "GB", "TB", "PB" } ) + @UseDefaults( "MB" ) + Property<String> offHeapUnit(); + + /** + * Optional disk tier size. + * + * @return Optional disk tier size + */ + @Optional + Property<Long> diskSize(); + + /** + * Disk tier size unit. + * + * @return Disk tier size unit + */ + @OneOf( { "B", "KB", "MB", "GB", "TB", "PB" } ) + @UseDefaults( "MB" ) + Property<String> diskUnit(); + + /** + * If the disk tier is persistent or not. + * + * @return If the disk tier is persistent or not + */ + @UseDefaults + Property<Boolean> diskPersistent(); + + /** + * Maximum size of cached objects. + * + * @return Maximum size of cached objects + */ + @Optional + Property<Long> maxObjectSize(); + + /** + * Unit for maximum size of cached objects. + * + * @return Unit for maximum size of cached objects + */ + @OneOf( { "B", "KB", "MB", "GB", "TB", "PB" } ) + @UseDefaults( "MB" ) + Property<String> maxObjectSizeUnit(); + + /** + * Maximum cached object graph depth. + * + * @return Maximum cached object graph depth + */ + @Optional + Property<Long> maxObjectGraphDepth(); + + /** + * Expiry policy. + * + * @return Expiry policy + */ + @OneOf( { "NONE", "TIME_TO_IDLE", "TIME_TO_LIVE" } ) + @UseDefaults( "NONE" ) + Property<String> expiry(); + + /** + * Expiry length. + * + * @return Expiry length + */ + @Optional + Property<Long> expiryLength(); + + /** + * Expiry time unit. + * + * @return Expiry time unit + */ + @OneOf( { "MILLISECONDS", "SECONDS", "MINUTES", "HOURS", "DAYS" } ) + @UseDefaults( "SECONDS" ) + Property<String> expiryTimeUnit(); +} +</pre></div></div><div xmlns="" xmlns:exsl="http://exslt.org/common" class="footer"><p> + Copyright © 2015 The Apache Software Foundation, Licensed under the <a href="http://www.apache.org/licenses/" target="_blank">Apache License, Version 2.0</a>. + <br /><small> + Apache Polygene, Polygene, Apache, the Apache feather logo, and the Apache Polygene project logo are trademarks of The Apache Software Foundation.<br /> + All other marks mentioned may be trademarks or registered trademarks of their respective owners. + </small></p></div></body></html> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/polygene-website/blob/ba3a0fac/content/java/develop/extension-cache-memcache.html ---------------------------------------------------------------------- diff --git a/content/java/develop/extension-cache-memcache.html b/content/java/develop/extension-cache-memcache.html new file mode 100644 index 0000000..573dd46 --- /dev/null +++ b/content/java/develop/extension-cache-memcache.html @@ -0,0 +1,141 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Memcache Cache</title><link rel="stylesheet" type="text/css" href="css/style.css" /><meta name="generator" content="DocBook XSL Stylesheets V1.76.1" /><link rel="home" href="index.html" title="" /><link rel="up" href="extensions.html" title="Extensions" /><link rel="prev" href="extension-cache-ehcache.html" title="Ehcache Cache" /><link rel="next" href="extension-es-memory.html" title="Memory EntityStore" /> + + +<!-- favicon --> + +<link rel="shortcut icon" href="http://polygene.apache.org/favicon.ico" type="image/vnd.microsoft.icon" /> +<link rel="icon" href="http://polygene.apache.org/favicon.ico" type="image/x-icon" /> + +<!-- style --> + +<link href="css/shCore.css" rel="stylesheet" type="text/css" /> +<link href="css/shCoreEclipse.css" rel="stylesheet" type="text/css" /> +<link href="css/shThemeEclipse.css" rel="stylesheet" type="text/css" /> +<link href="css/polygene.css" rel="stylesheet" type="text/css" /> + +<!-- Syntax Highlighter --> + +<script type="text/javascript" src="js/shCore.js"></script> +<script type="text/javascript" src="js/shBrushJava.js"></script> +<script type="text/javascript" src="js/shBrushScala.js"></script> +<script type="text/javascript" src="js/shBrushJScript.js"></script> +<script type="text/javascript" src="js/shBrushBash.js"></script> +<script type="text/javascript" src="js/shBrushPlain.js"></script> +<script type="text/javascript" src="js/shBrushXml.js"></script> +<script type="text/javascript" src="js/shBrushGroovy.js"></script> +<script type="text/javascript" src="js/shBrushPython.js"></script> +<script type="text/javascript" src="js/shBrushRuby.js"></script> +<script type="text/javascript" src="js/shBrushCSharp.js"></script> + +<script type="text/javascript"> + SyntaxHighlighter.defaults['tab-size'] = 4; + SyntaxHighlighter.defaults['gutter'] = false; + SyntaxHighlighter.defaults['toolbar'] = false; + SyntaxHighlighter.all() +</script> + +<!-- JQuery --> + +<script type="text/javascript" src="js/jquery-1.6.4.min.js"></script> + +<!-- Image Scaler --> + +<script type="text/javascript" src="js/imagescaler.js"></script> + +<!-- Table Styler --> + +<script type="text/javascript" src="js/tablestyler.js"></script> + +<!-- Apache Polygene WebSite Progressive Enhancement --> + +<link href="css/progressive-enhancement.css" rel="stylesheet" type="text/css" /> +<script type="text/javascript" src="js/jquery.scrollTo-1.4.2.js"></script> +<script type="text/javascript" src="js/progressive-enhancement.js"></script> + +<!-- Analytics --> + <script type="text/javascript"> + var _gaq = _gaq || []; + _gaq.push(['_setAccount', 'UA-62007352-1']); + _gaq.push(['_trackPageview']); + + (function() { + var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; + ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; + var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); + })(); + </script> + + </head><body><div xmlns="" xmlns:exsl="http://exslt.org/common" class="logo"><a href="index.html"><img src="images/logo-standard.png" /></a></div><div xmlns="" xmlns:exsl="http://exslt.org/common" class="top-nav"><div xmlns="http://www.w3.org/1999/xhtml" class="toc"><dl><dt><span class="section"><a href="index.html#home">Polygeneâ¢</a></span></dt><dt><span class="section"><a href="intro.html">Introduction</a></span></dt><dt><span class="section"><a href="tutorials.html">Tutorials</a></span></dt><dt><span class="section"><a href="javadocs.html">Javadoc</a></span></dt><dt><span class="section"><a href="samples.html">Samples</a></span></dt><dt><span class="section"><a href="core.html">Core</a></span></dt><dt><span class="section"><a href="libraries.html">Libraries</a></span></dt><dt><span class="section"><span xmlns="" href="extensions.html">Extensions</span></span></dt><dt><span class="section"><a href="tools.html">Tools</a></span></dt><dt><span class="section"><a href="glossary.ht ml">Glossary </a></span></dt></dl></div></div><div xmlns="" xmlns:exsl="http://exslt.org/common" class="sub-nav"><div xmlns="http://www.w3.org/1999/xhtml" class="toc"><dl><dt><span class="section"><a href="extensions.html#_overview_7">Overview</a></span></dt><dt><span class="section"><a href="extension-vs-orgjson.html">org.json ValueSerialization</a></span></dt><dt><span class="section"><a href="extension-vs-jackson.html">Jackson ValueSerialization</a></span></dt><dt><span class="section"><a href="extension-vs-stax.html">StAX ValueSerialization</a></span></dt><dt><span class="section"><a href="extension-cache-ehcache.html">Ehcache Cache</a></span></dt><dt><span class="section"><span xmlns="" href="extension-cache-memcache.html">Memcache Cache</span></span></dt><dt><span class="section"><a href="extension-es-memory.html">Memory EntityStore</a></span></dt><dt><span class="section"><a href="extension-es-file.html">File EntityStore</a></span></dt><dt><span class="section"><a href="exte nsion-es-geode.html">Geode EntityStore</a></span></dt><dt><span class="section"><a href="extension-es-hazelcast.html">Hazelcast EntityStore</a></span></dt><dt><span class="section"><a href="extension-es-jclouds.html">JClouds EntityStore</a></span></dt><dt><span class="section"><a href="extension-es-jdbm.html">JDBM EntityStore</a></span></dt><dt><span class="section"><a href="extension-es-leveldb.html">LevelDB EntityStore</a></span></dt><dt><span class="section"><a href="extension-es-mongodb.html">MongoDB EntityStore</a></span></dt><dt><span class="section"><a href="extension-es-preferences.html">Preferences EntityStore</a></span></dt><dt><span class="section"><a href="extension-es-redis.html">Redis EntityStore</a></span></dt><dt><span class="section"><a href="extension-es-riak.html">Riak EntityStore</a></span></dt><dt><span class="section"><a href="extension-es-sql.html">SQL EntityStore</a></span></dt><dt><span class="section"><a href="extension-index-elasticsearch.html">ElasticSear ch Index/Query</a></span></dt><dt><span class="section"><a href="extension-index-rdf.html">OpenRDF Index/Query</a></span></dt><dt><span class="section"><a href="extension-index-solr.html">Apache Solr Index/Query</a></span></dt><dt><span class="section"><a href="extension-indexing-sql.html">SQL Index/Query</a></span></dt><dt><span class="section"><a href="extension-metrics-metrics.html">Codahale Metrics</a></span></dt><dt><span class="section"><a href="extension-migration.html">Migration</a></span></dt><dt><span class="section"><a href="extension-reindexer.html">Reindexer</a></span></dt></dl></div></div><div class="section" title="Memcache Cache"><div class="titlepage"><div><div><h3 class="title"><a id="extension-cache-memcache"></a>Memcache Cache</h3></div></div></div><p class="remark"><em><span class="comment"></span></em></p><p class="devstatus-code-beta">code</p><p class="devstatus-docs-brief">docs</p><p class="devstatus-tests-some">tests</p><p>EntityStore cache backed by a Memca che server like <a class="ulink" href="http://memcached.org/" target="_top">Memcached</a>.</p><p>Memcached is an in-memory key-value store for small chunks of arbitrary data. +By default, entities serialized state must not exceed 1MB.</p><p>Other implementations such as <a class="ulink" href="https://www.memcachier.com/" target="_top">MemCachier</a> have different peculiarities, +see their documentation.</p><p>Not all EntityStore implementations use the Cache extension, so check the implementation details of the +EntityStore whether the cache extension can bring any benefits or not.</p><div class="section" title="Assembly"><div class="titlepage"><div><div><h4 class="title"><a id="_assembly_9"></a>Assembly</h4></div></div></div><p>Assembly is done using the <code class="literal">MemcacheAssembler</code>:</p><pre class="programlisting brush: java">public void assemble( ModuleAssembly module ) + throws AssemblyException +{ + [...snip...] + + new MemcacheAssembler(). + visibleIn( Visibility.module ). + withConfig( confModule, Visibility.layer ). + assemble( module ); + [...snip...] + +} +</pre></div><div class="section" title="Configuration"><div class="titlepage"><div><div><h4 class="title"><a id="_configuration_4"></a>Configuration</h4></div></div></div><p>Here are the configuration properties for the Memcache EntityStore Cache:</p><pre class="programlisting brush: java">public interface MemcacheConfiguration + extends Configuration<MemcachePoolService> +{ + /** + * Cached items expiration in seconds. + * Defaulted to 3600 seconds, one hour. + * @return Cached items expiration configuration property + */ + @Optional + Property<Integer> expiration(); + + /** + * Memcached server addresses space separated. + * Eg. {@literal "server1:11211 server2:11211"}. + * Defaulted to {@literal "127.0.0.1:11211"}. + * @return Memcached server addresses configuration property + */ + @Optional + Property<String> addresses(); + + /** + * Memcache Protocol. + * Can be {@literal text} or {@literal binary} + * Defaulted to {@literal text}. + * @return Memcache Protocol configuration property + */ + @Optional + Property<String> protocol(); + + /** + * Username. + * Authentication happens only if set. + * @return Username configuration property + */ + @Optional + Property<String> username(); + + /** + * Password. + * @return Password configuration property + */ + @Optional + Property<String> password(); + + /** + * SASL authentication mechanism. + * Defaulted to PLAIN. + * @return Authentication mechanism configuration property + */ + @Optional + Property<String> authMechanism(); +} +</pre><p>As you can see both ASCII and binary flavours of the Memcache protocol are supported as well as SASL authentication.</p></div></div><div xmlns="" xmlns:exsl="http://exslt.org/common" class="footer"><p> + Copyright © 2015 The Apache Software Foundation, Licensed under the <a href="http://www.apache.org/licenses/" target="_blank">Apache License, Version 2.0</a>. + <br /><small> + Apache Polygene, Polygene, Apache, the Apache feather logo, and the Apache Polygene project logo are trademarks of The Apache Software Foundation.<br /> + All other marks mentioned may be trademarks or registered trademarks of their respective owners. + </small></p></div></body></html> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/polygene-website/blob/ba3a0fac/content/java/develop/extension-es-file.html ---------------------------------------------------------------------- diff --git a/content/java/develop/extension-es-file.html b/content/java/develop/extension-es-file.html new file mode 100644 index 0000000..73488b2 --- /dev/null +++ b/content/java/develop/extension-es-file.html @@ -0,0 +1,100 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>File EntityStore</title><link rel="stylesheet" type="text/css" href="css/style.css" /><meta name="generator" content="DocBook XSL Stylesheets V1.76.1" /><link rel="home" href="index.html" title="" /><link rel="up" href="extensions.html" title="Extensions" /><link rel="prev" href="extension-es-memory.html" title="Memory EntityStore" /><link rel="next" href="extension-es-geode.html" title="Geode EntityStore" /> + + +<!-- favicon --> + +<link rel="shortcut icon" href="http://polygene.apache.org/favicon.ico" type="image/vnd.microsoft.icon" /> +<link rel="icon" href="http://polygene.apache.org/favicon.ico" type="image/x-icon" /> + +<!-- style --> + +<link href="css/shCore.css" rel="stylesheet" type="text/css" /> +<link href="css/shCoreEclipse.css" rel="stylesheet" type="text/css" /> +<link href="css/shThemeEclipse.css" rel="stylesheet" type="text/css" /> +<link href="css/polygene.css" rel="stylesheet" type="text/css" /> + +<!-- Syntax Highlighter --> + +<script type="text/javascript" src="js/shCore.js"></script> +<script type="text/javascript" src="js/shBrushJava.js"></script> +<script type="text/javascript" src="js/shBrushScala.js"></script> +<script type="text/javascript" src="js/shBrushJScript.js"></script> +<script type="text/javascript" src="js/shBrushBash.js"></script> +<script type="text/javascript" src="js/shBrushPlain.js"></script> +<script type="text/javascript" src="js/shBrushXml.js"></script> +<script type="text/javascript" src="js/shBrushGroovy.js"></script> +<script type="text/javascript" src="js/shBrushPython.js"></script> +<script type="text/javascript" src="js/shBrushRuby.js"></script> +<script type="text/javascript" src="js/shBrushCSharp.js"></script> + +<script type="text/javascript"> + SyntaxHighlighter.defaults['tab-size'] = 4; + SyntaxHighlighter.defaults['gutter'] = false; + SyntaxHighlighter.defaults['toolbar'] = false; + SyntaxHighlighter.all() +</script> + +<!-- JQuery --> + +<script type="text/javascript" src="js/jquery-1.6.4.min.js"></script> + +<!-- Image Scaler --> + +<script type="text/javascript" src="js/imagescaler.js"></script> + +<!-- Table Styler --> + +<script type="text/javascript" src="js/tablestyler.js"></script> + +<!-- Apache Polygene WebSite Progressive Enhancement --> + +<link href="css/progressive-enhancement.css" rel="stylesheet" type="text/css" /> +<script type="text/javascript" src="js/jquery.scrollTo-1.4.2.js"></script> +<script type="text/javascript" src="js/progressive-enhancement.js"></script> + +<!-- Analytics --> + <script type="text/javascript"> + var _gaq = _gaq || []; + _gaq.push(['_setAccount', 'UA-62007352-1']); + _gaq.push(['_trackPageview']); + + (function() { + var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; + ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; + var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); + })(); + </script> + + </head><body><div xmlns="" xmlns:exsl="http://exslt.org/common" class="logo"><a href="index.html"><img src="images/logo-standard.png" /></a></div><div xmlns="" xmlns:exsl="http://exslt.org/common" class="top-nav"><div xmlns="http://www.w3.org/1999/xhtml" class="toc"><dl><dt><span class="section"><a href="index.html#home">Polygeneâ¢</a></span></dt><dt><span class="section"><a href="intro.html">Introduction</a></span></dt><dt><span class="section"><a href="tutorials.html">Tutorials</a></span></dt><dt><span class="section"><a href="javadocs.html">Javadoc</a></span></dt><dt><span class="section"><a href="samples.html">Samples</a></span></dt><dt><span class="section"><a href="core.html">Core</a></span></dt><dt><span class="section"><a href="libraries.html">Libraries</a></span></dt><dt><span class="section"><span xmlns="" href="extensions.html">Extensions</span></span></dt><dt><span class="section"><a href="tools.html">Tools</a></span></dt><dt><span class="section"><a href="glossary.ht ml">Glossary </a></span></dt></dl></div></div><div xmlns="" xmlns:exsl="http://exslt.org/common" class="sub-nav"><div xmlns="http://www.w3.org/1999/xhtml" class="toc"><dl><dt><span class="section"><a href="extensions.html#_overview_7">Overview</a></span></dt><dt><span class="section"><a href="extension-vs-orgjson.html">org.json ValueSerialization</a></span></dt><dt><span class="section"><a href="extension-vs-jackson.html">Jackson ValueSerialization</a></span></dt><dt><span class="section"><a href="extension-vs-stax.html">StAX ValueSerialization</a></span></dt><dt><span class="section"><a href="extension-cache-ehcache.html">Ehcache Cache</a></span></dt><dt><span class="section"><a href="extension-cache-memcache.html">Memcache Cache</a></span></dt><dt><span class="section"><a href="extension-es-memory.html">Memory EntityStore</a></span></dt><dt><span class="section"><span xmlns="" href="extension-es-file.html">File EntityStore</span></span></dt><dt><span class="section"><a href="exte nsion-es-geode.html">Geode EntityStore</a></span></dt><dt><span class="section"><a href="extension-es-hazelcast.html">Hazelcast EntityStore</a></span></dt><dt><span class="section"><a href="extension-es-jclouds.html">JClouds EntityStore</a></span></dt><dt><span class="section"><a href="extension-es-jdbm.html">JDBM EntityStore</a></span></dt><dt><span class="section"><a href="extension-es-leveldb.html">LevelDB EntityStore</a></span></dt><dt><span class="section"><a href="extension-es-mongodb.html">MongoDB EntityStore</a></span></dt><dt><span class="section"><a href="extension-es-preferences.html">Preferences EntityStore</a></span></dt><dt><span class="section"><a href="extension-es-redis.html">Redis EntityStore</a></span></dt><dt><span class="section"><a href="extension-es-riak.html">Riak EntityStore</a></span></dt><dt><span class="section"><a href="extension-es-sql.html">SQL EntityStore</a></span></dt><dt><span class="section"><a href="extension-index-elasticsearch.html">ElasticSear ch Index/Query</a></span></dt><dt><span class="section"><a href="extension-index-rdf.html">OpenRDF Index/Query</a></span></dt><dt><span class="section"><a href="extension-index-solr.html">Apache Solr Index/Query</a></span></dt><dt><span class="section"><a href="extension-indexing-sql.html">SQL Index/Query</a></span></dt><dt><span class="section"><a href="extension-metrics-metrics.html">Codahale Metrics</a></span></dt><dt><span class="section"><a href="extension-migration.html">Migration</a></span></dt><dt><span class="section"><a href="extension-reindexer.html">Reindexer</a></span></dt></dl></div></div><div class="section" title="File EntityStore"><div class="titlepage"><div><div><h3 class="title"><a id="extension-es-file"></a>File EntityStore</h3></div></div></div><p class="remark"><em><span class="comment"></span></em></p><p class="devstatus-code-stable">code</p><p class="devstatus-docs-good">docs</p><p class="devstatus-tests-good">tests</p><p>EntityStore service backed by a sourc e control friendly file system format.</p><p>Note that content should not be modified directly, and doing so may corrupt the data.</p><div class="section" title="Assembly"><div class="titlepage"><div><div><h4 class="title"><a id="_assembly_11"></a>Assembly</h4></div></div></div><p>Assembly is done as follows:</p><pre class="programlisting brush: java">public void assemble( ModuleAssembly module ) + throws AssemblyException +{ + [...snip...] + + new FileEntityStoreAssembler().withConfig( config, Visibility.layer ).assemble( module ); +} +</pre></div><div class="section" title="Configuration"><div class="titlepage"><div><div><h4 class="title"><a id="_configuration_5"></a>Configuration</h4></div></div></div><p>Here are the configuration properties for the File EntityStore:</p><pre class="programlisting brush: java">public interface FileEntityStoreConfiguration + extends ConfigurationComposite +{ + [...snip...] + + @Optional + Property<String> directory(); + [...snip...] + + @Optional @Range(min=1, max=10000) + Property<Integer> slices(); +} +</pre><p><code class="literal">directory</code> is optional and represent the directory where the File EntityStore will keep its persisted state.</p><p>It defaults to System.getProperty( "user.dir" ) + "/polygene/filestore" +If the given path is not absolute, then itâs relative to the current working directory. +If you use the <a class="xref" href="library-fileconfig.html" title="FileConfig">FileConfig Library</a> then this property value is ignored and FileConfig is prefered.</p><p><code class="literal">slices</code> defines how many slice directories the store should use.</p><p>Many operating systems run into performance problems when the number of files in a directory grows. If +you expect a large number of entities in the file entity store, it is wise to set the number of slices +(default is 1) to an approximation of the square root of number of expected entities.</p><p>For instance, if you estimate that you will have 1 million entities in the file entity store, you should +set the slices to 1000.</p><p>There is a limit of minimum 1 slice and maximum 10,000 slices, and if more slices than that is needed, you +are probably pushing this entitystore beyond its capabilities.</p><p>Note that the slices() can not be changed once it has been set, as it would cause the entity store not to +find the entities anymore.</p></div></div><div xmlns="" xmlns:exsl="http://exslt.org/common" class="footer"><p> + Copyright © 2015 The Apache Software Foundation, Licensed under the <a href="http://www.apache.org/licenses/" target="_blank">Apache License, Version 2.0</a>. + <br /><small> + Apache Polygene, Polygene, Apache, the Apache feather logo, and the Apache Polygene project logo are trademarks of The Apache Software Foundation.<br /> + All other marks mentioned may be trademarks or registered trademarks of their respective owners. + </small></p></div></body></html> \ No newline at end of file
