Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
NomadCommandSystem
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository 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
Instrument Control
NomadCommandSystem
Commits
9ef919f5
Commit
9ef919f5
authored
11 years ago
by
helene ortiz
Browse files
Options
Downloads
Patches
Plain Diff
No commit message
No commit message
parent
9fa82363
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/fr/ill/ics/bridge/SurveyEventSender.java
+56
-0
56 additions, 0 deletions
src/fr/ill/ics/bridge/SurveyEventSender.java
with
56 additions
and
0 deletions
src/fr/ill/ics/bridge/SurveyEventSender.java
0 → 100644
+
56
−
0
View file @
9ef919f5
/*
* Nomad Instrument Control Software
*
* Copyright 2011 Institut Laue-Langevin
*
* Licensed under the EUPL, Version 1.1 only (the "License");
* You may not use this work except in compliance with the Licence.
* You may obtain a copy of the Licence at:
*
* http://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package
fr.ill.ics.bridge
;
import
java.util.HashMap
;
import
java.util.Map
;
import
fr.ill.ics.bridge.listeners.ServerSurveyXMLListener
;
public
class
SurveyEventSender
{
private
static
Map
<
String
,
SurveyEventSender
>
instances
=
new
HashMap
<
String
,
SurveyEventSender
>();
private
String
serverId
;
private
SurveyEventSender
(
String
serverId
)
{
this
.
serverId
=
serverId
;
}
public
static
SurveyEventSender
getInstance
(
String
serverId
)
{
if
(!
instances
.
containsKey
(
serverId
))
{
SurveyEventSender
instance
=
new
SurveyEventSender
(
serverId
);
instances
.
put
(
serverId
,
instance
);
}
return
instances
.
get
(
serverId
);
}
/**
* Add new listener for server survey events
* @param listener
*/
public
void
addSurveyXMLListener
(
ServerSurveyXMLListener
listener
)
{
System
.
out
.
println
(
"TODO: code addSurveyXMLListener !"
);
}
public
void
removeSurveyXMLListener
(
ServerSurveyXMLListener
listener
)
{
System
.
out
.
println
(
"TODO: code removeSurveyXMLListener !"
);
}
}
\ No newline at end of file
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