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
Sho SHIMIZU
2016-08-12 17:29:02 -0700
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
8d50c8d0754d3315d745f6751f68e2e59b2f700e
8d50c8d0
1 parent
81470a5c
Simplify String concatenation
Change-Id: I266cc74d80c22675cffd539260171f9044fc1b78
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
21 deletions
core/api/src/main/java/org/onosproject/net/device/DefaultPortStatistics.java
core/api/src/main/java/org/onosproject/net/flow/DefaultTableStatisticsEntry.java
core/api/src/main/java/org/onosproject/net/device/DefaultPortStatistics.java
View file @
8d50c8d
...
...
@@ -153,19 +153,16 @@ public final class DefaultPortStatistics implements PortStatistics {
@Override
public
String
toString
()
{
StringBuilder
sb
=
new
StringBuilder
(
"device: "
+
deviceId
+
", "
);
sb
.
append
(
"port: "
+
this
.
port
+
", "
);
sb
.
append
(
"pktRx: "
+
this
.
packetsReceived
+
", "
);
sb
.
append
(
"pktTx: "
+
this
.
packetsSent
+
", "
);
sb
.
append
(
"byteRx: "
+
this
.
bytesReceived
+
", "
);
sb
.
append
(
"byteTx: "
+
this
.
bytesSent
+
", "
);
sb
.
append
(
"pktRxErr: "
+
this
.
packetsRxErrors
+
", "
);
sb
.
append
(
"pktTxErr: "
+
this
.
packetsTxErrors
+
", "
);
sb
.
append
(
"pktRxDrp: "
+
this
.
packetsRxDropped
+
", "
);
sb
.
append
(
"pktTxDrp: "
+
this
.
packetsTxDropped
);
return
sb
.
toString
();
return
"device: "
+
deviceId
+
", "
+
"port: "
+
this
.
port
+
", "
+
"pktRx: "
+
this
.
packetsReceived
+
", "
+
"pktTx: "
+
this
.
packetsSent
+
", "
+
"byteRx: "
+
this
.
bytesReceived
+
", "
+
"byteTx: "
+
this
.
bytesSent
+
", "
+
"pktRxErr: "
+
this
.
packetsRxErrors
+
", "
+
"pktTxErr: "
+
this
.
packetsTxErrors
+
", "
+
"pktRxDrp: "
+
this
.
packetsRxDropped
+
", "
+
"pktTxDrp: "
+
this
.
packetsTxDropped
;
}
public
static
final
class
Builder
{
...
...
core/api/src/main/java/org/onosproject/net/flow/DefaultTableStatisticsEntry.java
View file @
8d50c8d
...
...
@@ -52,14 +52,11 @@ public final class DefaultTableStatisticsEntry implements TableStatisticsEntry {
@Override
public
String
toString
()
{
StringBuilder
sb
=
new
StringBuilder
(
"device: "
+
deviceId
+
", "
);
sb
.
append
(
"tableId: "
+
this
.
tableId
+
", "
);
sb
.
append
(
"activeEntries: "
+
this
.
activeFlowEntries
+
", "
);
sb
.
append
(
"packetsLookedUp: "
+
this
.
packetsLookedupCount
+
", "
);
sb
.
append
(
"packetsMatched: "
+
this
.
packetsMatchedCount
);
return
sb
.
toString
();
return
"device: "
+
deviceId
+
", "
+
"tableId: "
+
this
.
tableId
+
", "
+
"activeEntries: "
+
this
.
activeFlowEntries
+
", "
+
"packetsLookedUp: "
+
this
.
packetsLookedupCount
+
", "
+
"packetsMatched: "
+
this
.
packetsMatchedCount
;
}
@Override
...
...
Please
register
or
login
to post a comment