Skip to content

Commit 4c7a675

Browse files
authored
Merge pull request #1 from scaleoutsoftware/dev-br-geosprosupport
Dev br geosprosupport
2 parents 7aa6ee7 + bf71e88 commit 4c7a675

27 files changed

+469
-83
lines changed

.gitignore

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
##############################
2+
## Java
3+
##############################
4+
.mtj.tmp/
5+
*.class
6+
*.jar
7+
*.war
8+
*.ear
9+
*.nar
10+
hs_err_pid*
11+
12+
##############################
13+
## Maven
14+
##############################
15+
target/
16+
pom.xml.tag
17+
pom.xml.releaseBackup
18+
pom.xml.versionsBackup
19+
pom.xml.next
20+
pom.xml.bak
21+
release.properties
22+
dependency-reduced-pom.xml
23+
buildNumber.properties
24+
.mvn/timing.properties
25+
.mvn/wrapper/maven-wrapper.jar
26+
27+
##############################
28+
## Gradle
29+
##############################
30+
bin/
31+
build/
32+
.gradle
33+
.gradletasknamecache
34+
gradle-app.setting
35+
!gradle-wrapper.jar
36+
37+
##############################
38+
## IntelliJ
39+
##############################
40+
out/
41+
.idea/
42+
.idea_modules/
43+
*.iml
44+
*.ipr
45+
*.iws
46+
47+
##############################
48+
## Eclipse
49+
##############################
50+
.settings/
51+
bin/
52+
tmp/
53+
.metadata
54+
.classpath
55+
.project
56+
*.tmp
57+
*.bak
58+
*.swp
59+
*~.nib
60+
local.properties
61+
.loadpath
62+
.factorypath
63+
64+
##############################
65+
## NetBeans
66+
##############################
67+
nbproject/private/
68+
build/
69+
nbbuild/
70+
dist/
71+
nbdist/
72+
nbactions.xml
73+
nb-configuration.xml
74+
75+
##############################
76+
## Visual Studio Code
77+
##############################
78+
.vscode/
79+
.code-workspace
80+
81+
##############################
82+
## OS X
83+
##############################
84+
.DS_Store
85+
*.jar
86+
*.properties
87+
gradlew
88+
gradlew.bat

README.md

Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ repositories {
2424
...and then you can add the ScaleOut Spring Session API as a dependency:
2525

2626
```
27-
compile group: 'com.scaleoutsoftware.spring', name: "session", version: '1.0'
27+
compile group: 'com.scaleoutsoftware.spring', name: "session", version: '2.0'
2828
```
2929

3030
### Maven
@@ -45,11 +45,47 @@ For Maven, you can add the ScaleOut API Repository to your pom.xml by adding the
4545
<dependency>
4646
<groupId>com.scaleoutsoftware.spring</groupId>
4747
<artifactId>session</artifactId>
48-
<version>1.0</version>
48+
<version>2.0</version>
4949
</dependency>
5050
</dependencies>
5151
```
5252

53+
### Usage
54+
55+
ScaleOut can be used a SessionRepository by using the ``` EnableScaleoutHttpSession ``` attribute.
56+
57+
The attribute has six parameters:
58+
59+
##### cacheName
60+
61+
The ``` cacheName ``` parameter defines the ScaleOut namespace the ScaleoutSessionRepository will use for storing session objects.
62+
63+
Default Value: ``` SpringSessionRepo ```
64+
65+
#### maxInactiveTimeMinutes
66+
67+
The ``` maxInactiveTimeMinutes ``` parameter defines the maximum allowed time that a session can exist before expiring. The timeout used is sliding, such that after every access (``` findById(id) ``` or ``` save(session) ```) the timeout is reset.
68+
69+
Default value: ``` 30 ```
70+
71+
#### useLocking
72+
73+
The ``` useLocking ``` parameter tells the ScaleoutSessionRepository whether to lock Session's during access operations.
74+
75+
Note, locking required if GeoServer pull enabled.
76+
77+
Default value: ``` true ```
78+
79+
#### remoteStoreName
80+
81+
The ``` remoteStoreName ``` parameter tells the ScaleoutSessionRepository to create objects with the GeoServer notify coherency policy and push creates and updates to a remote store specified by the parameter name. When two ScaleOut StateServer stores are configured for bi-directional pull replication using ScaleOut GeoServer Pro, this enables object updates to be replicated between both stores while allowing synchronized access to the objects.
82+
83+
Note, the useLocking parameter must be set to true.
84+
85+
Note, ScaleOut GeoServer® Pro is licensed separately from ScaleOut StateServer.
86+
87+
Default value: ``` null (unused) ```
88+
5389
This library is open source and has dependencies on other ScaleOut
5490
Software products.
5591

build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
group 'com.scaleoutsoftware'
2-
version '1.0-RELEASE'
2+
version '2.0-RELEASE'
33

44
apply plugin: 'java'
55
apply plugin: 'eclipse'
@@ -33,9 +33,9 @@ dependencies {
3333
testCompile group: 'org.springframework', name: 'spring-context', version: '5.0.7.RELEASE'
3434
testCompile group: 'org.springframework', name: 'spring-web', version: '5.0.7.RELEASE'
3535
testCompile group: 'javax.servlet', name: 'javax.servlet-api', version: '4.0.1'
36-
testCompile group: 'com.scaleoutsoftware', name: 'jnc', version: '5.8'
36+
testCompile group: 'com.scaleoutsoftware.client', name: 'jnc', version: '5.8.18.349'
3737

38-
compile group: 'com.scaleoutsoftware', name: 'jnc', version: '5.8'
38+
compile group: 'com.scaleoutsoftware.client', name: 'jnc', version: '5.8.18.349'
3939
compile group: 'org.springframework.session', name: 'spring-session-core', version: '2.0.5.RELEASE'
4040
compile group: 'org.springframework', name: 'spring-context', version: '5.0.7.RELEASE'
4141
compile group: 'org.springframework', name: 'spring-web', version: '5.0.7.RELEASE'

docs/allclasses-frame.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22
<!-- NewPage -->
33
<html lang="en">
44
<head>
5-
<!-- Generated by javadoc (1.8.0_121) on Fri Aug 10 13:45:19 PDT 2018 -->
5+
<!-- Generated by javadoc -->
66
<title>All Classes (ScaleoutSpringHttpSessions 1.0-RELEASE API)</title>
7-
<meta name="date" content="2018-08-10">
87
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
98
<script type="text/javascript" src="script.js"></script>
109
</head>

docs/allclasses-noframe.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22
<!-- NewPage -->
33
<html lang="en">
44
<head>
5-
<!-- Generated by javadoc (1.8.0_121) on Fri Aug 10 13:45:19 PDT 2018 -->
5+
<!-- Generated by javadoc -->
66
<title>All Classes (ScaleoutSpringHttpSessions 1.0-RELEASE API)</title>
7-
<meta name="date" content="2018-08-10">
87
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
98
<script type="text/javascript" src="script.js"></script>
109
</head>

docs/constant-values.html

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22
<!-- NewPage -->
33
<html lang="en">
44
<head>
5-
<!-- Generated by javadoc (1.8.0_121) on Fri Aug 10 13:45:19 PDT 2018 -->
5+
<!-- Generated by javadoc -->
66
<title>Constant Field Values (ScaleoutSpringHttpSessions 1.0-RELEASE API)</title>
7-
<meta name="date" content="2018-08-10">
87
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
98
<script type="text/javascript" src="script.js"></script>
109
</head>
@@ -116,6 +115,20 @@ <h2 title="org.springframework">org.springframework.*</h2>
116115
<td class="colLast"><code>"SpringSessionRepo"</code></td>
117116
</tr>
118117
<tr class="rowColor">
118+
<td class="colFirst"><a name="org.springframework.session.soss.ScaleoutSessionRepository.DEF_REMOTE_READPENDING_RETRIES">
119+
<!-- -->
120+
</a><code>public&nbsp;static&nbsp;final&nbsp;int</code></td>
121+
<td><code><a href="org/springframework/session/soss/ScaleoutSessionRepository.html#DEF_REMOTE_READPENDING_RETRIES">DEF_REMOTE_READPENDING_RETRIES</a></code></td>
122+
<td class="colLast"><code>2400</code></td>
123+
</tr>
124+
<tr class="altColor">
125+
<td class="colFirst"><a name="org.springframework.session.soss.ScaleoutSessionRepository.DEF_REMOTE_READPENDING_RETRY_INTERVAL">
126+
<!-- -->
127+
</a><code>public&nbsp;static&nbsp;final&nbsp;int</code></td>
128+
<td><code><a href="org/springframework/session/soss/ScaleoutSessionRepository.html#DEF_REMOTE_READPENDING_RETRY_INTERVAL">DEF_REMOTE_READPENDING_RETRY_INTERVAL</a></code></td>
129+
<td class="colLast"><code>10</code></td>
130+
</tr>
131+
<tr class="rowColor">
119132
<td class="colFirst"><a name="org.springframework.session.soss.ScaleoutSessionRepository.DEF_USE_LOCKING">
120133
<!-- -->
121134
</a><code>public&nbsp;static&nbsp;final&nbsp;boolean</code></td>

docs/deprecated-list.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22
<!-- NewPage -->
33
<html lang="en">
44
<head>
5-
<!-- Generated by javadoc (1.8.0_121) on Fri Aug 10 13:45:19 PDT 2018 -->
5+
<!-- Generated by javadoc -->
66
<title>Deprecated List (ScaleoutSpringHttpSessions 1.0-RELEASE API)</title>
7-
<meta name="date" content="2018-08-10">
87
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
98
<script type="text/javascript" src="script.js"></script>
109
</head>

docs/help-doc.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22
<!-- NewPage -->
33
<html lang="en">
44
<head>
5-
<!-- Generated by javadoc (1.8.0_121) on Fri Aug 10 13:45:19 PDT 2018 -->
5+
<!-- Generated by javadoc -->
66
<title>API Help (ScaleoutSpringHttpSessions 1.0-RELEASE API)</title>
7-
<meta name="date" content="2018-08-10">
87
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
98
<script type="text/javascript" src="script.js"></script>
109
</head>

docs/index-all.html

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22
<!-- NewPage -->
33
<html lang="en">
44
<head>
5-
<!-- Generated by javadoc (1.8.0_121) on Fri Aug 10 13:45:19 PDT 2018 -->
5+
<!-- Generated by javadoc -->
66
<title>Index (ScaleoutSpringHttpSessions 1.0-RELEASE API)</title>
7-
<meta name="date" content="2018-08-10">
87
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
98
<script type="text/javascript" src="script.js"></script>
109
</head>
@@ -95,6 +94,14 @@ <h2 class="title">D</h2>
9594
<dd>
9695
<div class="block">Default inactive time in minutes for a session.</div>
9796
</dd>
97+
<dt><span class="memberNameLink"><a href="org/springframework/session/soss/ScaleoutSessionRepository.html#DEF_REMOTE_READPENDING_RETRIES">DEF_REMOTE_READPENDING_RETRIES</a></span> - Static variable in class org.springframework.session.soss.<a href="org/springframework/session/soss/ScaleoutSessionRepository.html" title="class in org.springframework.session.soss">ScaleoutSessionRepository</a></dt>
98+
<dd>
99+
<div class="block">default remote read-pending retries.</div>
100+
</dd>
101+
<dt><span class="memberNameLink"><a href="org/springframework/session/soss/ScaleoutSessionRepository.html#DEF_REMOTE_READPENDING_RETRY_INTERVAL">DEF_REMOTE_READPENDING_RETRY_INTERVAL</a></span> - Static variable in class org.springframework.session.soss.<a href="org/springframework/session/soss/ScaleoutSessionRepository.html" title="class in org.springframework.session.soss">ScaleoutSessionRepository</a></dt>
102+
<dd>
103+
<div class="block">default remote read-pending retry interval.</div>
104+
</dd>
98105
<dt><span class="memberNameLink"><a href="org/springframework/session/soss/ScaleoutSessionRepository.html#DEF_USE_LOCKING">DEF_USE_LOCKING</a></span> - Static variable in class org.springframework.session.soss.<a href="org/springframework/session/soss/ScaleoutSessionRepository.html" title="class in org.springframework.session.soss">ScaleoutSessionRepository</a></dt>
99106
<dd>
100107
<div class="block">Default locking value.</div>
@@ -229,7 +236,7 @@ <h2 class="title">S</h2>
229236
<div class="block">A <code>SessionRepository</code> implementation that is backed by ScaleOut StateServer's
230237
NamedCache API.</div>
231238
</dd>
232-
<dt><span class="memberNameLink"><a href="org/springframework/session/soss/ScaleoutSessionRepository.html#ScaleoutSessionRepository-java.lang.String-java.time.Duration-boolean-">ScaleoutSessionRepository(String, Duration, boolean)</a></span> - Constructor for class org.springframework.session.soss.<a href="org/springframework/session/soss/ScaleoutSessionRepository.html" title="class in org.springframework.session.soss">ScaleoutSessionRepository</a></dt>
239+
<dt><span class="memberNameLink"><a href="org/springframework/session/soss/ScaleoutSessionRepository.html#ScaleoutSessionRepository-java.lang.String-java.time.Duration-boolean-java.lang.String-int-int-">ScaleoutSessionRepository(String, Duration, boolean, String, int, int)</a></span> - Constructor for class org.springframework.session.soss.<a href="org/springframework/session/soss/ScaleoutSessionRepository.html" title="class in org.springframework.session.soss">ScaleoutSessionRepository</a></dt>
233240
<dd>
234241
<div class="block">Instantiates the ScaleOutSessionRepository.</div>
235242
</dd>

docs/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<!-- NewPage -->
33
<html lang="en">
44
<head>
5-
<!-- Generated by javadoc (1.8.0_121) on Fri Aug 10 13:45:19 PDT 2018 -->
5+
<!-- Generated by javadoc -->
66
<title>ScaleoutSpringHttpSessions 1.0-RELEASE API</title>
77
<script type="text/javascript">
88
tmpTargetPage = "" + window.location.search;

0 commit comments

Comments
 (0)