Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
4369493f
Commit
4369493f
authored
Nov 15, 2015
by
Johnny Lim
Committed by
Phillip Webb
Nov 15, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish
parent
5c19d3bf
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
14 deletions
+14
-14
InfinispanCacheStatisticsProvider.java
...boot/actuate/cache/InfinispanCacheStatisticsProvider.java
+2
-2
AbstractEndpoint.java
...ringframework/boot/actuate/endpoint/AbstractEndpoint.java
+2
-2
Endpoint.java
...a/org/springframework/boot/actuate/endpoint/Endpoint.java
+1
-1
HypermediaDisabled.java
...amework/boot/actuate/endpoint/mvc/HypermediaDisabled.java
+1
-1
PublicMetricsAutoConfigurationTests.java
...te/autoconfigure/PublicMetricsAutoConfigurationTests.java
+8
-8
No files found.
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/cache/InfinispanCacheStatisticsProvider.java
View file @
4369493f
...
@@ -55,13 +55,13 @@ public class InfinispanCacheStatisticsProvider
...
@@ -55,13 +55,13 @@ public class InfinispanCacheStatisticsProvider
statistics
.
setSize
((
long
)
size
);
statistics
.
setSize
((
long
)
size
);
if
(
size
>
0
)
{
if
(
size
>
0
)
{
// Let's initialize the stats if we have some data
// Let's initialize the stats if we have some data
initalizeStats
(
objectName
,
statistics
);
init
i
alizeStats
(
objectName
,
statistics
);
}
}
}
}
return
statistics
;
return
statistics
;
}
}
private
void
initalizeStats
(
ObjectName
objectName
,
private
void
init
i
alizeStats
(
ObjectName
objectName
,
DefaultCacheStatistics
statistics
)
{
DefaultCacheStatistics
statistics
)
{
Double
hitRatio
=
getAttribute
(
objectName
,
"hitRatio"
,
Double
.
class
);
Double
hitRatio
=
getAttribute
(
objectName
,
"hitRatio"
,
Double
.
class
);
if
((
hitRatio
!=
null
))
{
if
((
hitRatio
!=
null
))
{
...
...
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/AbstractEndpoint.java
View file @
4369493f
...
@@ -54,7 +54,7 @@ public abstract class AbstractEndpoint<T> implements Endpoint<T>, EnvironmentAwa
...
@@ -54,7 +54,7 @@ public abstract class AbstractEndpoint<T> implements Endpoint<T>, EnvironmentAwa
private
Boolean
enabled
;
private
Boolean
enabled
;
/**
/**
* Create a new sensitive endpoint instance. The enpoint will enabled flag will be
* Create a new sensitive endpoint instance. The en
d
point will enabled flag will be
* based on the spring {@link Environment} unless explicitly set.
* based on the spring {@link Environment} unless explicitly set.
* @param id the endpoint ID
* @param id the endpoint ID
*/
*/
...
@@ -63,7 +63,7 @@ public abstract class AbstractEndpoint<T> implements Endpoint<T>, EnvironmentAwa
...
@@ -63,7 +63,7 @@ public abstract class AbstractEndpoint<T> implements Endpoint<T>, EnvironmentAwa
}
}
/**
/**
* Create a new endpoint instance. The enpoint will enabled flag will be based on the
* Create a new endpoint instance. The en
d
point will enabled flag will be based on the
* spring {@link Environment} unless explicitly set.
* spring {@link Environment} unless explicitly set.
* @param id the endpoint ID
* @param id the endpoint ID
* @param sensitive if the endpoint is sensitive by default
* @param sensitive if the endpoint is sensitive by default
...
...
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/Endpoint.java
View file @
4369493f
...
@@ -31,7 +31,7 @@ public interface Endpoint<T> {
...
@@ -31,7 +31,7 @@ public interface Endpoint<T> {
/**
/**
* The logical ID of the endpoint. Must only contain simple letters, numbers and '_'
* The logical ID of the endpoint. Must only contain simple letters, numbers and '_'
* characters (i
e
a {@literal "\w"} regex).
* characters (i
.e.
a {@literal "\w"} regex).
* @return the endpoint ID
* @return the endpoint ID
*/
*/
String
getId
();
String
getId
();
...
...
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/mvc/HypermediaDisabled.java
View file @
4369493f
...
@@ -26,7 +26,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
...
@@ -26,7 +26,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
/**
/**
* Annotation to indicate that an {@link MvcEndpoint} class or {@link RequestMapping}
* Annotation to indicate that an {@link MvcEndpoint} class or {@link RequestMapping}
* method should't generate a hypermedia response.
* method should
n
't generate a hypermedia response.
*
*
* @author Dave Syer
* @author Dave Syer
* @since 1.3.0
* @since 1.3.0
...
...
spring-boot-actuator/src/test/java/org/springframework/boot/actuate/autoconfigure/PublicMetricsAutoConfigurationTests.java
View file @
4369493f
...
@@ -270,18 +270,18 @@ public class PublicMetricsAutoConfigurationTests {
...
@@ -270,18 +270,18 @@ public class PublicMetricsAutoConfigurationTests {
@Bean
@Bean
public
DataSource
tomcatDataSource
()
{
public
DataSource
tomcatDataSource
()
{
return
InitalizedBuilder
.
create
()
return
Init
i
alizedBuilder
.
create
()
.
type
(
org
.
apache
.
tomcat
.
jdbc
.
pool
.
DataSource
.
class
).
build
();
.
type
(
org
.
apache
.
tomcat
.
jdbc
.
pool
.
DataSource
.
class
).
build
();
}
}
@Bean
@Bean
public
DataSource
hikariDS
()
{
public
DataSource
hikariDS
()
{
return
InitalizedBuilder
.
create
().
type
(
HikariDataSource
.
class
).
build
();
return
Init
i
alizedBuilder
.
create
().
type
(
HikariDataSource
.
class
).
build
();
}
}
@Bean
@Bean
public
DataSource
commonsDbcpDataSource
()
{
public
DataSource
commonsDbcpDataSource
()
{
return
InitalizedBuilder
.
create
().
type
(
BasicDataSource
.
class
).
build
();
return
Init
i
alizedBuilder
.
create
().
type
(
BasicDataSource
.
class
).
build
();
}
}
}
}
...
@@ -291,13 +291,13 @@ public class PublicMetricsAutoConfigurationTests {
...
@@ -291,13 +291,13 @@ public class PublicMetricsAutoConfigurationTests {
@Bean
@Bean
@Primary
@Primary
public
DataSource
myDataSource
()
{
public
DataSource
myDataSource
()
{
return
InitalizedBuilder
.
create
()
return
Init
i
alizedBuilder
.
create
()
.
type
(
org
.
apache
.
tomcat
.
jdbc
.
pool
.
DataSource
.
class
).
build
();
.
type
(
org
.
apache
.
tomcat
.
jdbc
.
pool
.
DataSource
.
class
).
build
();
}
}
@Bean
@Bean
public
DataSource
commonsDbcpDataSource
()
{
public
DataSource
commonsDbcpDataSource
()
{
return
InitalizedBuilder
.
create
().
type
(
BasicDataSource
.
class
).
build
();
return
Init
i
alizedBuilder
.
create
().
type
(
BasicDataSource
.
class
).
build
();
}
}
}
}
...
@@ -307,13 +307,13 @@ public class PublicMetricsAutoConfigurationTests {
...
@@ -307,13 +307,13 @@ public class PublicMetricsAutoConfigurationTests {
@Bean
@Bean
@Primary
@Primary
public
DataSource
myDataSource
()
{
public
DataSource
myDataSource
()
{
return
InitalizedBuilder
.
create
()
return
Init
i
alizedBuilder
.
create
()
.
type
(
org
.
apache
.
tomcat
.
jdbc
.
pool
.
DataSource
.
class
).
build
();
.
type
(
org
.
apache
.
tomcat
.
jdbc
.
pool
.
DataSource
.
class
).
build
();
}
}
@Bean
@Bean
public
DataSource
dataSource
()
{
public
DataSource
dataSource
()
{
return
InitalizedBuilder
.
create
().
type
(
BasicDataSource
.
class
).
build
();
return
Init
i
alizedBuilder
.
create
().
type
(
BasicDataSource
.
class
).
build
();
}
}
}
}
...
@@ -381,7 +381,7 @@ public class PublicMetricsAutoConfigurationTests {
...
@@ -381,7 +381,7 @@ public class PublicMetricsAutoConfigurationTests {
}
}
private
static
class
InitalizedBuilder
{
private
static
class
Init
i
alizedBuilder
{
public
static
DataSourceBuilder
create
()
{
public
static
DataSourceBuilder
create
()
{
return
DataSourceBuilder
.
create
()
return
DataSourceBuilder
.
create
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment