Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ProB Rodin Plugin
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
general
stups
ProB Rodin Plugin
Commits
b772f9e3
Commit
b772f9e3
authored
1 year ago
by
dgelessus
Browse files
Options
Downloads
Patches
Plain Diff
Remove some unused stuff from ServerConnection
parent
9c310df7
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
de.prob.core/src/de/prob/core/internal/ServerConnection.java
+0
-33
0 additions, 33 deletions
de.prob.core/src/de/prob/core/internal/ServerConnection.java
with
0 additions
and
33 deletions
de.prob.core/src/de/prob/core/internal/ServerConnection.java
+
0
−
33
View file @
b772f9e3
...
...
@@ -27,22 +27,12 @@ public class ServerConnection {
private
CliStarter
cli
=
null
;
private
String
lastCommand
;
private
volatile
boolean
shutdown
=
true
;
// private static final ScheduledExecutorService exec = new
// ScheduledThreadPoolExecutor(
// 1);
private
void
startcli
(
final
File
file
)
throws
CliException
{
cli
=
new
CliStarter
(
file
);
}
public
String
getLastCommand
()
{
return
lastCommand
;
}
private
void
establishConnection
(
final
int
port
)
throws
CliException
{
try
{
socket
=
new
Socket
(
InetAddress
.
getByName
(
null
),
port
);
...
...
@@ -75,7 +65,6 @@ public class ServerConnection {
}
private
void
sendQuery
(
final
String
commandString
)
throws
ProBException
{
lastCommand
=
commandString
;
Logger
.
assertProB
(
"commandString.trim().endsWith(\".\")"
,
commandString
.
trim
().
endsWith
(
"."
));
...
...
@@ -99,24 +88,6 @@ public class ServerConnection {
return
input
;
}
// private String timedRun(final Callable<String> r, final long timeOut,
// final TimeUnit unit) throws InterruptedException, ProBException {
// String s = null;
// Future<String> task = exec.submit(r);
// try {
// s = task.get(timeOut, unit);
// } catch (TimeoutException e) {
// final String message = "Timeout while waiting for ProB's answer";
// ProblemHandler.handleCliException(message, e);
// } catch (ExecutionException e) {
// final String message = e.getCause().getLocalizedMessage();
// ProblemHandler.handleCliException(message, e.getCause());
// } finally {
// task.cancel(true);
// }
// return s;
// }
protected
String
readAnswer
()
throws
IOException
{
final
StringBuilder
result
=
new
StringBuilder
();
final
byte
[]
buffer
=
new
byte
[
1024
];
...
...
@@ -190,10 +161,6 @@ public class ServerConnection {
}
}
public
int
getCliPortNumber
()
{
return
cli
.
getPort
();
}
public
void
sendUserInterruptSignal
()
{
if
(
cli
!=
null
)
{
cli
.
sendUserInterruptReference
();
...
...
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