Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dm-docs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hammonds
dm-docs
Compare revisions
master to 1a2058e76e17a0351bee3bf58cf37421ec5fe17c
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
hammonds/dm-docs
Select target project
No results found
1a2058e76e17a0351bee3bf58cf37421ec5fe17c
Select Git revision
Swap
Target
DM/dm-docs
Select target project
DM/dm-docs
hammonds/dm-docs
hparraga/dm-docs
3 results
master
Select Git revision
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tools/ExperimentSynchronizer/src/gov/anl/dm/esafsync/serviceconn/StorageServiceConnection.java
+62
-0
62 additions, 0 deletions
...anl/dm/esafsync/serviceconn/StorageServiceConnection.java
tools/make/RULES_DM
+15
-0
15 additions, 0 deletions
tools/make/RULES_DM
with
77 additions
and
0 deletions
tools/ExperimentSynchronizer/src/gov/anl/dm/esafsync/serviceconn/StorageServiceConnection.java
0 → 100644
View file @
1a2058e7
package
gov.anl.dm.esafsync.serviceconn
;
import
java.util.HashMap
;
import
java.util.Map
;
import
javax.swing.JOptionPane
;
public
class
StorageServiceConnection
extends
ServiceConnection
{
class
Keyword
{
static
final
String
EXPERIMENT_NAME
=
"name"
;
static
final
String
EXPERIMENT_DESCRIPTION
=
"description"
;
static
final
String
EXPERIMENT_TYPE_ID
=
"experimentTypeId"
;
static
final
String
EXPERIMENT_START_DATE
=
"startDate"
;
static
final
String
EXPERIMENT_END_DATE
=
"endDate"
;
}
class
StorageServUrl
{
static
final
String
EXPERIMENT
=
"/experiments"
;
static
final
String
EXPERIMENT_USER
=
"/usersByExperiment"
;
static
final
String
START_EXPERIMENT
=
"/experiments/start"
;
}
public
int
addExperiment
(
String
name
,
String
description
,
String
startDate
,
String
endDate
)
{
Map
<
String
,
String
>
data
=
new
HashMap
<>();
if
(
name
==
null
)
{
JOptionPane
.
showMessageDialog
(
null
,
"The experiment name is null"
,
"Error"
,
JOptionPane
.
ERROR_MESSAGE
);
return
ServiceConnection
.
ServiceConnectionStatus
.
ERROR
;
}
else
{
data
.
put
(
Keyword
.
EXPERIMENT_NAME
,
encode
(
name
));
}
if
(
description
!=
null
)
{
data
.
put
(
Keyword
.
EXPERIMENT_DESCRIPTION
,
encode
(
description
));
}
if
(
startDate
!=
null
)
{
data
.
put
(
Keyword
.
EXPERIMENT_START_DATE
,
encode
(
startDate
));
}
if
(
endDate
!=
null
)
{
data
.
put
(
Keyword
.
EXPERIMENT_END_DATE
,
encode
(
endDate
));
}
data
.
put
(
Keyword
.
EXPERIMENT_TYPE_ID
,
ESAF_EXPERIMENT_TYPE
);
return
invokeSessionPostRequest
(
StorageServUrl
.
EXPERIMENT
,
data
);
}
public
int
addExperimentUser
(
String
userName
,
String
experimentName
,
String
role
)
{
Map
<
String
,
String
>
data
=
new
HashMap
<>();
return
invokeSessionPostRequest
(
StorageServUrl
.
EXPERIMENT_USER
+
"/"
+
userName
+
"/"
+
experimentName
+
"/"
+
role
,
data
);
}
public
int
startExperiment
(
String
name
)
{
Map
<
String
,
String
>
data
=
new
HashMap
<>();
if
(
name
==
null
)
{
JOptionPane
.
showMessageDialog
(
null
,
"The experiment name is null"
,
"Error"
,
JOptionPane
.
ERROR_MESSAGE
);
return
ServiceConnection
.
ServiceConnectionStatus
.
ERROR
;
}
else
{
data
.
put
(
Keyword
.
EXPERIMENT_NAME
,
encode
(
name
));
}
return
invokeSessionPutRequest
(
StorageServUrl
.
START_EXPERIMENT
,
data
);
}
}
This diff is collapsed.
Click to expand it.
tools/make/RULES_DM
0 → 100644
View file @
1a2058e7
all:
for d in $(SUBDIRS); do $(MAKE) -C $$d $(ARCH); done
dist:
for d in $(SUBDIRS); do $(MAKE) -C $$d $(ARCH); done
clean:
for d in $(SUBDIRS); do $(MAKE) -C $$d clean; done
distclean:
for d in $(SUBDIRS); do $(MAKE) -C $$d distclean; done
for d in $(SUBDIRS); do rm -f `find $$d -name 'RELEASE.local'`; done
tidy: distclean
This diff is collapsed.
Click to expand it.
Prev
1
…
26
27
28
29
30
Next