Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
Rugged
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Orekit
Rugged
Commits
a75f32c1
Commit
a75f32c1
authored
6 years ago
by
Guylaine Prat
Browse files
Options
Downloads
Patches
Plain Diff
Add the possibility to suspend and resume the dump.
Fixes
#377
parent
02f25ea4
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/org/orekit/rugged/errors/DumpManager.java
+16
-1
16 additions, 1 deletion
src/main/java/org/orekit/rugged/errors/DumpManager.java
with
16 additions
and
1 deletion
src/main/java/org/orekit/rugged/errors/DumpManager.java
+
16
−
1
View file @
a75f32c1
...
@@ -48,6 +48,9 @@ public class DumpManager {
...
@@ -48,6 +48,9 @@ public class DumpManager {
/** Dump file (default initial value is null, i.e. nothing is dumped). */
/** Dump file (default initial value is null, i.e. nothing is dumped). */
private
static
final
ThreadLocal
<
Dump
>
DUMP
=
new
ThreadLocal
<
Dump
>();
private
static
final
ThreadLocal
<
Dump
>
DUMP
=
new
ThreadLocal
<
Dump
>();
/** Boolean to check if the dump is suspended. */
private
static
boolean
isSuspended
=
false
;
/** Private constructor for utility class.
/** Private constructor for utility class.
*/
*/
private
DumpManager
()
{
private
DumpManager
()
{
...
@@ -81,11 +84,23 @@ public class DumpManager {
...
@@ -81,11 +84,23 @@ public class DumpManager {
}
}
}
}
/** Suspend the dump.
*/
public
static
void
suspend
()
{
isSuspended
=
true
;
}
/** Resume the dump.
*/
public
static
void
resume
()
{
isSuspended
=
false
;
}
/** Check if dump is active for this thread.
/** Check if dump is active for this thread.
* @return true if dump is active for this thread
* @return true if dump is active for this thread
*/
*/
public
static
boolean
isActive
()
{
public
static
boolean
isActive
()
{
return
DUMP
.
get
()
!=
null
;
return
DUMP
.
get
()
!=
null
&&
!
isSuspended
;
}
}
/** Dump DEM cell data.
/** Dump DEM cell data.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment