Toggle navigation
Toggle navigation
This project
Loading...
Sign in
홍길동
/
onos
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
pankaj
2014-10-07 18:37:32 -0700
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f0f80b2a572b3eb4b3855a337e5a06fd0c5ad320
f0f80b2a
1 parent
b299e2f1
Arguments defaults
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
apps/foo/src/main/java/org/onlab/onos/foo/SimpleNettyClient.java
apps/foo/src/main/java/org/onlab/onos/foo/SimpleNettyClientCommand.java
apps/foo/src/main/java/org/onlab/onos/foo/SimpleNettyClient.java
View file @
f0f80b2
...
...
@@ -49,7 +49,6 @@ public final class SimpleNettyClient {
}
Timer
sendAsyncTimer
=
metrics
.
createTimer
(
component
,
feature
,
"AsyncSender"
);
Timer
sendAndReceiveTimer
=
metrics
.
createTimer
(
component
,
feature
,
"SendAndReceive"
);
for
(
int
i
=
0
;
i
<
iterations
;
i
++)
{
Timer
.
Context
context
=
sendAsyncTimer
.
time
();
...
...
@@ -57,6 +56,7 @@ public final class SimpleNettyClient {
context
.
stop
();
}
Timer
sendAndReceiveTimer
=
metrics
.
createTimer
(
component
,
feature
,
"SendAndReceive"
);
for
(
int
i
=
0
;
i
<
iterations
;
i
++)
{
Timer
.
Context
context
=
sendAndReceiveTimer
.
time
();
Response
response
=
messaging
...
...
apps/foo/src/main/java/org/onlab/onos/foo/SimpleNettyClientCommand.java
View file @
f0f80b2
...
...
@@ -14,9 +14,9 @@ import org.onlab.onos.cli.AbstractShellCommand;
public
class
SimpleNettyClientCommand
extends
AbstractShellCommand
{
//FIXME: replace these arguments with proper ones needed for the test.
@Argument
(
index
=
0
,
name
=
"
serverIp"
,
description
=
"Server IP address
"
,
@Argument
(
index
=
0
,
name
=
"
hostname"
,
description
=
"Server Hostname
"
,
required
=
false
,
multiValued
=
false
)
String
serverIp
=
"127.0.0.1
"
;
String
host
=
"localhost
"
;
@Argument
(
index
=
3
,
name
=
"port"
,
description
=
"Port"
,
required
=
false
,
multiValued
=
false
)
...
...
@@ -28,12 +28,12 @@ public class SimpleNettyClientCommand extends AbstractShellCommand {
@Argument
(
index
=
2
,
name
=
"messageCount"
,
description
=
"Message count"
,
required
=
false
,
multiValued
=
false
)
String
messageCount
=
"
1
00000"
;
String
messageCount
=
"
50
00000"
;
@Override
protected
void
execute
()
{
try
{
startStandalone
(
new
String
[]{
serverIp
,
port
,
warmup
,
messageCount
});
startStandalone
(
new
String
[]{
host
,
port
,
warmup
,
messageCount
});
}
catch
(
Exception
e
)
{
error
(
"Unable to start client %s"
,
e
);
}
...
...
Please
register
or
login
to post a comment