Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #805 from sonatype/NXCM-5181-allowForceUpdateOfSys…

…temStatus

REVIEW: NXCM-5181 expose ability to force an update of SystemStatus
  • Loading branch information...
commit ff2c0ac6025cf0f6555d10663b9d1618eee09be6 2 parents 46b1f8d + 9721c1b
@kellyrob99 kellyrob99 authored
View
10 nexus-core/src/main/java/org/sonatype/nexus/AbstractApplicationStatusSource.java
@@ -71,7 +71,7 @@ protected ReadWriteLock getLock()
// ==
/**
- * Returns the SystemStatus, guaranteeing it's consistent state.
+ * Returns the SystemStatus, guaranteeing its consistent state.
*/
public SystemStatus getSystemStatus()
{
@@ -91,6 +91,14 @@ public SystemStatus getSystemStatus()
}
}
+ /**
+ * Force an update of SystemStatus.
+ */
+ public void updateSystemStatus()
+ {
+ updateSystemStatusIfNeeded( true );
+ }
+
public boolean setState( SystemState state )
{
Lock lock = getLock().writeLock();
Please sign in to comment.
Something went wrong with that request. Please try again.