Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
floodlight
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
croft1
floodlight
Commits
3aeebcc8
Commit
3aeebcc8
authored
11 years ago
by
Saurav Das
Browse files
Options
Downloads
Patches
Plain Diff
general cleanup, one bug-fix, better comments and consistent counter names
parent
681275b7
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/net/floodlightcontroller/core/internal/Controller.java
+46
-46
46 additions, 46 deletions
...va/net/floodlightcontroller/core/internal/Controller.java
with
46 additions
and
46 deletions
src/main/java/net/floodlightcontroller/core/internal/Controller.java
+
46
−
46
View file @
3aeebcc8
...
@@ -332,13 +332,13 @@ public class Controller implements IFloodlightProviderService,
...
@@ -332,13 +332,13 @@ public class Controller implements IFloodlightProviderService,
void
createCounters
(
IDebugCounterService
debugCounters
)
throws
CounterException
{
void
createCounters
(
IDebugCounterService
debugCounters
)
throws
CounterException
{
setRoleEqual
=
setRoleEqual
=
debugCounters
.
registerCounter
(
debugCounters
.
registerCounter
(
prefix
,
"set
R
ole
E
qual"
,
prefix
,
"set
-r
ole
-e
qual"
,
"Controller received a role request with role of "
+
"Controller received a role request with role of "
+
"EQUAL which is unusual"
,
"EQUAL which is unusual"
,
CounterType
.
ALWAYS_COUNT
);
CounterType
.
ALWAYS_COUNT
);
setSameRole
=
setSameRole
=
debugCounters
.
registerCounter
(
debugCounters
.
registerCounter
(
prefix
,
"set
S
ame
R
ole"
,
prefix
,
"set
-s
ame
-r
ole"
,
"Controller received a role request for the same "
+
"Controller received a role request for the same "
+
"role the controller already had"
,
"role the controller already had"
,
CounterType
.
ALWAYS_COUNT
,
CounterType
.
ALWAYS_COUNT
,
...
@@ -346,21 +346,21 @@ public class Controller implements IFloodlightProviderService,
...
@@ -346,21 +346,21 @@ public class Controller implements IFloodlightProviderService,
setRoleMaster
=
setRoleMaster
=
debugCounters
.
registerCounter
(
debugCounters
.
registerCounter
(
prefix
,
"set
R
ole
M
aster"
,
prefix
,
"set
-r
ole
-m
aster"
,
"Controller received a role request with role of "
+
"Controller received a role request with role of "
+
"MASTER. This counter can be at most 1."
,
"MASTER. This counter can be at most 1."
,
CounterType
.
ALWAYS_COUNT
);
CounterType
.
ALWAYS_COUNT
);
remoteStoreNotification
=
remoteStoreNotification
=
debugCounters
.
registerCounter
(
debugCounters
.
registerCounter
(
prefix
,
"remote
S
tore
N
otification"
,
prefix
,
"remote
-s
tore
-n
otification"
,
"Received a notification from the sync service "
+
"Received a notification from the sync service "
+
"indicating that switch information has changed"
,
"indicating that switch information has changed"
,
CounterType
.
ALWAYS_COUNT
);
CounterType
.
ALWAYS_COUNT
);
invalidPortsChanged
=
invalidPortsChanged
=
debugCounters
.
registerCounter
(
debugCounters
.
registerCounter
(
prefix
,
"invalid
P
orts
C
hanged"
,
prefix
,
"invalid
-p
orts
-c
hanged"
,
"Received an unexpected ports changed "
+
"Received an unexpected ports changed "
+
"notification while the controller was in "
+
"notification while the controller was in "
+
"SLAVE role."
,
"SLAVE role."
,
...
@@ -369,7 +369,7 @@ public class Controller implements IFloodlightProviderService,
...
@@ -369,7 +369,7 @@ public class Controller implements IFloodlightProviderService,
invalidSwitchActivatedWhileSlave
=
invalidSwitchActivatedWhileSlave
=
debugCounters
.
registerCounter
(
debugCounters
.
registerCounter
(
prefix
,
"invalid
S
witch
A
ctivated
W
hile
S
lave"
,
prefix
,
"invalid
-s
witch
-a
ctivated
-w
hile
-s
lave"
,
"Received an unexpected switchActivated "
+
"Received an unexpected switchActivated "
+
"notification while the controller was in "
+
"notification while the controller was in "
+
"SLAVE role."
,
"SLAVE role."
,
...
@@ -378,7 +378,7 @@ public class Controller implements IFloodlightProviderService,
...
@@ -378,7 +378,7 @@ public class Controller implements IFloodlightProviderService,
invalidStoreEventWhileMaster
=
invalidStoreEventWhileMaster
=
debugCounters
.
registerCounter
(
debugCounters
.
registerCounter
(
prefix
,
"invalid
ST
ore
E
vent
W
hile
M
aster"
,
prefix
,
"invalid
-st
ore
-e
vent
-w
hile
-m
aster"
,
"Received an unexpected notification from "
+
"Received an unexpected notification from "
+
"the sync store while the controller was in "
+
"the sync store while the controller was in "
+
"MASTER role."
,
"MASTER role."
,
...
@@ -387,7 +387,7 @@ public class Controller implements IFloodlightProviderService,
...
@@ -387,7 +387,7 @@ public class Controller implements IFloodlightProviderService,
switchDisconnectedWhileSlave
=
switchDisconnectedWhileSlave
=
debugCounters
.
registerCounter
(
debugCounters
.
registerCounter
(
prefix
,
"switch
D
isconnected
W
hile
S
lave"
,
prefix
,
"switch
-d
isconnected
-w
hile
-s
lave"
,
"A switch disconnected and the controller was "
+
"A switch disconnected and the controller was "
+
"in SLAVE role."
,
"in SLAVE role."
,
CounterType
.
ALWAYS_COUNT
,
CounterType
.
ALWAYS_COUNT
,
...
@@ -395,14 +395,14 @@ public class Controller implements IFloodlightProviderService,
...
@@ -395,14 +395,14 @@ public class Controller implements IFloodlightProviderService,
switchActivated
=
switchActivated
=
debugCounters
.
registerCounter
(
debugCounters
.
registerCounter
(
prefix
,
"switch
A
ctivated"
,
prefix
,
"switch
-a
ctivated"
,
"A switch connected to this controller is now "
+
"A switch connected to this controller is now "
+
"in MASTER role"
,
"in MASTER role"
,
CounterType
.
ALWAYS_COUNT
);
CounterType
.
ALWAYS_COUNT
);
errorSameSwitchReactivated
=
// err
errorSameSwitchReactivated
=
// err
debugCounters
.
registerCounter
(
debugCounters
.
registerCounter
(
prefix
,
"error
S
ame
S
witch
R
eactivated"
,
prefix
,
"error
-s
ame
-s
witch
-r
eactivated"
,
"A switch that was already in active state "
+
"A switch that was already in active state "
+
"was activated again. This indicates a "
+
"was activated again. This indicates a "
+
"controller defect"
,
"controller defect"
,
...
@@ -411,7 +411,7 @@ public class Controller implements IFloodlightProviderService,
...
@@ -411,7 +411,7 @@ public class Controller implements IFloodlightProviderService,
switchWithSameDpidActivated
=
// warn
switchWithSameDpidActivated
=
// warn
debugCounters
.
registerCounter
(
debugCounters
.
registerCounter
(
prefix
,
"switch
W
ith
S
ame
D
pid
A
ctivated"
,
prefix
,
"switch
-w
ith
-s
ame
-d
pid
-a
ctivated"
,
"A switch with the same DPID as another switch "
+
"A switch with the same DPID as another switch "
+
"connected to the controller. This can be "
+
"connected to the controller. This can be "
+
"caused by multiple switches configured with "
+
"caused by multiple switches configured with "
+
...
@@ -422,14 +422,14 @@ public class Controller implements IFloodlightProviderService,
...
@@ -422,14 +422,14 @@ public class Controller implements IFloodlightProviderService,
newSwitchActivated
=
// new switch
newSwitchActivated
=
// new switch
debugCounters
.
registerCounter
(
debugCounters
.
registerCounter
(
prefix
,
"new
S
witch
A
ctivated"
,
prefix
,
"new
-s
witch
-a
ctivated"
,
"A new switch has completed the handshake as "
+
"A new switch has completed the handshake as "
+
"MASTER. The switch was not known to any other "
+
"MASTER. The switch was not known to any other "
+
"controller in the cluster"
,
"controller in the cluster"
,
CounterType
.
ALWAYS_COUNT
);
CounterType
.
ALWAYS_COUNT
);
syncedSwitchActivated
=
syncedSwitchActivated
=
debugCounters
.
registerCounter
(
debugCounters
.
registerCounter
(
prefix
,
"synced
S
witch
A
ctivated"
,
prefix
,
"synced
-s
witch
-a
ctivated"
,
"A switch has completed the handshake as "
+
"A switch has completed the handshake as "
+
"MASTER. The switch was known to another "
+
"MASTER. The switch was known to another "
+
"controller in the cluster"
,
"controller in the cluster"
,
...
@@ -437,7 +437,7 @@ public class Controller implements IFloodlightProviderService,
...
@@ -437,7 +437,7 @@ public class Controller implements IFloodlightProviderService,
readyForReconcile
=
readyForReconcile
=
debugCounters
.
registerCounter
(
debugCounters
.
registerCounter
(
prefix
,
"ready
ForR
econcile"
,
prefix
,
"ready
-for-r
econcile"
,
"Controller is ready for flow reconciliation "
+
"Controller is ready for flow reconciliation "
+
"after Slave to Master transition. Either all "
+
"after Slave to Master transition. Either all "
+
"previously known switches are now active "
+
"previously known switches are now active "
+
...
@@ -447,7 +447,7 @@ public class Controller implements IFloodlightProviderService,
...
@@ -447,7 +447,7 @@ public class Controller implements IFloodlightProviderService,
newSwitchFromStore
=
newSwitchFromStore
=
debugCounters
.
registerCounter
(
debugCounters
.
registerCounter
(
prefix
,
"new
S
witch
F
rom
S
tore"
,
prefix
,
"new
-s
witch
-f
rom
-s
tore"
,
"A new switch has connected to another "
+
"A new switch has connected to another "
+
"another controller in the cluster. This "
+
"another controller in the cluster. This "
+
"controller instance has received a sync store "
+
"controller instance has received a sync store "
+
...
@@ -456,7 +456,7 @@ public class Controller implements IFloodlightProviderService,
...
@@ -456,7 +456,7 @@ public class Controller implements IFloodlightProviderService,
updatedSwitchFromStore
=
updatedSwitchFromStore
=
debugCounters
.
registerCounter
(
debugCounters
.
registerCounter
(
prefix
,
"updated
S
witch
F
rom
S
tore"
,
prefix
,
"updated
-s
witch
-f
rom
-s
tore"
,
"Information about a switch connected to "
+
"Information about a switch connected to "
+
"another controller instance was updated in "
+
"another controller instance was updated in "
+
"the sync store. This controller instance has "
+
"the sync store. This controller instance has "
+
...
@@ -465,13 +465,13 @@ public class Controller implements IFloodlightProviderService,
...
@@ -465,13 +465,13 @@ public class Controller implements IFloodlightProviderService,
switchDisconnected
=
switchDisconnected
=
debugCounters
.
registerCounter
(
debugCounters
.
registerCounter
(
prefix
,
"switch
D
isconnected"
,
prefix
,
"switch
-d
isconnected"
,
"FIXME: switch has disconnected"
,
"FIXME: switch has disconnected"
,
CounterType
.
ALWAYS_COUNT
);
CounterType
.
ALWAYS_COUNT
);
syncedSwitchRemoved
=
syncedSwitchRemoved
=
debugCounters
.
registerCounter
(
debugCounters
.
registerCounter
(
prefix
,
"synced
S
witch
R
emoved"
,
prefix
,
"synced
-s
witch
-r
emoved"
,
"A switch connected to another controller "
+
"A switch connected to another controller "
+
"instance has disconnected from the controller "
+
"instance has disconnected from the controller "
+
"cluster. This controller instance has "
+
"cluster. This controller instance has "
+
...
@@ -480,7 +480,7 @@ public class Controller implements IFloodlightProviderService,
...
@@ -480,7 +480,7 @@ public class Controller implements IFloodlightProviderService,
unknownSwitchRemovedFromStore
=
unknownSwitchRemovedFromStore
=
debugCounters
.
registerCounter
(
debugCounters
.
registerCounter
(
prefix
,
"unknown
S
witch
R
emoved
F
rom
S
tore"
,
prefix
,
"unknown
-s
witch
-r
emoved
-f
rom
-s
tore"
,
"This controller instances has received a sync "
+
"This controller instances has received a sync "
+
"store notification that a switch has "
+
"store notification that a switch has "
+
"disconnected but this controller instance "
+
"disconnected but this controller instance "
+
...
@@ -491,7 +491,7 @@ public class Controller implements IFloodlightProviderService,
...
@@ -491,7 +491,7 @@ public class Controller implements IFloodlightProviderService,
consolidateStoreRunCount
=
consolidateStoreRunCount
=
debugCounters
.
registerCounter
(
debugCounters
.
registerCounter
(
prefix
,
"consolidate
S
tore
RunC
ount"
,
prefix
,
"consolidate
-s
tore
-run-c
ount"
,
"This controller has transitioned from SLAVE "
+
"This controller has transitioned from SLAVE "
+
"to MASTER and waited for switches to reconnect. "
+
"to MASTER and waited for switches to reconnect. "
+
"The controller has finished waiting and has "
+
"The controller has finished waiting and has "
+
...
@@ -501,7 +501,7 @@ public class Controller implements IFloodlightProviderService,
...
@@ -501,7 +501,7 @@ public class Controller implements IFloodlightProviderService,
consolidateStoreInconsistencies
=
consolidateStoreInconsistencies
=
debugCounters
.
registerCounter
(
debugCounters
.
registerCounter
(
prefix
,
"consolidate
S
tore
I
nconsistencies"
,
prefix
,
"consolidate
-s
tore
-i
nconsistencies"
,
"During switch sync store consolidation: "
+
"During switch sync store consolidation: "
+
"Number of switches that were in the store "
+
"Number of switches that were in the store "
+
"but not otherwise known plus number of "
+
"but not otherwise known plus number of "
+
...
@@ -516,7 +516,7 @@ public class Controller implements IFloodlightProviderService,
...
@@ -516,7 +516,7 @@ public class Controller implements IFloodlightProviderService,
storeSyncError
=
storeSyncError
=
debugCounters
.
registerCounter
(
debugCounters
.
registerCounter
(
prefix
,
"store
S
ync
E
rror"
,
prefix
,
"store
-s
ync
-e
rror"
,
"Number of times a sync store operation failed "
+
"Number of times a sync store operation failed "
+
"due to a store sync exception or an entry in "
+
"due to a store sync exception or an entry in "
+
"in the store had invalid data."
,
"in the store had invalid data."
,
...
@@ -525,7 +525,7 @@ public class Controller implements IFloodlightProviderService,
...
@@ -525,7 +525,7 @@ public class Controller implements IFloodlightProviderService,
switchesNotReconnectingToNewMaster
=
switchesNotReconnectingToNewMaster
=
debugCounters
.
registerCounter
(
debugCounters
.
registerCounter
(
prefix
,
"switches
NotR
econnecting
ToNewM
aster"
,
prefix
,
"switches
-not-r
econnecting
-to-new-m
aster"
,
"Switches that were connected to another "
+
"Switches that were connected to another "
+
"controller instance in the cluster but that "
+
"controller instance in the cluster but that "
+
"did not reconnect to this controller after it "
+
"did not reconnect to this controller after it "
+
...
@@ -534,19 +534,19 @@ public class Controller implements IFloodlightProviderService,
...
@@ -534,19 +534,19 @@ public class Controller implements IFloodlightProviderService,
switchPortChanged
=
switchPortChanged
=
debugCounters
.
registerCounter
(
debugCounters
.
registerCounter
(
prefix
,
"switch
P
ort
C
hanged"
,
prefix
,
"switch
-p
ort
-c
hanged"
,
"Number of times switch ports have changed"
,
"Number of times switch ports have changed"
,
CounterType
.
ALWAYS_COUNT
);
CounterType
.
ALWAYS_COUNT
);
switchOtherChange
=
switchOtherChange
=
debugCounters
.
registerCounter
(
debugCounters
.
registerCounter
(
prefix
,
"switch
O
ther
C
hange"
,
prefix
,
"switch
-o
ther
-c
hange"
,
"Number of times other information of a switch "
+
"Number of times other information of a switch "
+
"has changed."
,
"has changed."
,
CounterType
.
ALWAYS_COUNT
);
CounterType
.
ALWAYS_COUNT
);
dispatchMessageWhileSlave
=
dispatchMessageWhileSlave
=
debugCounters
.
registerCounter
(
debugCounters
.
registerCounter
(
prefix
,
"dispatch
M
essage
W
hile
S
lave"
,
prefix
,
"dispatch
-m
essage
-w
hile
-s
lave"
,
"Number of times an OF message was received "
+
"Number of times an OF message was received "
+
"and supposed to be dispatched but the "
+
"and supposed to be dispatched but the "
+
"controller was in SLAVE role and the message "
+
"controller was in SLAVE role and the message "
+
...
@@ -555,14 +555,14 @@ public class Controller implements IFloodlightProviderService,
...
@@ -555,14 +555,14 @@ public class Controller implements IFloodlightProviderService,
dispatchMessage
=
// does this cnt make sense? more specific?? per type? count stops?
dispatchMessage
=
// does this cnt make sense? more specific?? per type? count stops?
debugCounters
.
registerCounter
(
debugCounters
.
registerCounter
(
prefix
,
"dispatch
M
essage"
,
prefix
,
"dispatch
-m
essage"
,
"Number of times an OF message was dispatched "
+
"Number of times an OF message was dispatched "
+
"to registered modules"
,
"to registered modules"
,
CounterType
.
ALWAYS_COUNT
);
CounterType
.
ALWAYS_COUNT
);
controllerNodeIpsChanged
=
controllerNodeIpsChanged
=
debugCounters
.
registerCounter
(
debugCounters
.
registerCounter
(
prefix
,
"controller
N
odes
IpsC
hanged"
,
prefix
,
"controller
-n
odes
-ips-c
hanged"
,
"IP addresses of controller nodes have changed"
,
"IP addresses of controller nodes have changed"
,
CounterType
.
ALWAYS_COUNT
);
CounterType
.
ALWAYS_COUNT
);
...
@@ -570,13 +570,13 @@ public class Controller implements IFloodlightProviderService,
...
@@ -570,13 +570,13 @@ public class Controller implements IFloodlightProviderService,
// channel handler counters. Factor them out ??
// channel handler counters. Factor them out ??
messageReceived
=
messageReceived
=
debugCounters
.
registerCounter
(
debugCounters
.
registerCounter
(
prefix
,
"message
R
eceived"
,
prefix
,
"message
-r
eceived"
,
"Number of OpenFlow messages received. Some of "
+
"Number of OpenFlow messages received. Some of "
+
"these might be throttled"
,
"these might be throttled"
,
CounterType
.
ALWAYS_COUNT
);
CounterType
.
ALWAYS_COUNT
);
messageInputThrottled
=
messageInputThrottled
=
debugCounters
.
registerCounter
(
debugCounters
.
registerCounter
(
prefix
,
"message
I
nput
T
hrottled"
,
prefix
,
"message
-i
nput
-t
hrottled"
,
"Number of OpenFlow messages that were "
+
"Number of OpenFlow messages that were "
+
"throttled due to high load from the sender"
,
"throttled due to high load from the sender"
,
CounterType
.
ALWAYS_COUNT
,
CounterType
.
ALWAYS_COUNT
,
...
@@ -585,7 +585,7 @@ public class Controller implements IFloodlightProviderService,
...
@@ -585,7 +585,7 @@ public class Controller implements IFloodlightProviderService,
switchDisconnectReadTimeout
=
switchDisconnectReadTimeout
=
debugCounters
.
registerCounter
(
debugCounters
.
registerCounter
(
prefix
,
"switch
D
isconnect
R
ead
T
imeout"
,
prefix
,
"switch
-d
isconnect
-r
ead
-t
imeout"
,
"Number of times a switch was disconnected due "
+
"Number of times a switch was disconnected due "
+
"due the switch failing to send OpenFlow "
+
"due the switch failing to send OpenFlow "
+
"messages or responding to OpenFlow ECHOs"
,
"messages or responding to OpenFlow ECHOs"
,
...
@@ -593,7 +593,7 @@ public class Controller implements IFloodlightProviderService,
...
@@ -593,7 +593,7 @@ public class Controller implements IFloodlightProviderService,
IDebugCounterService
.
CTR_MDATA_ERROR
);
IDebugCounterService
.
CTR_MDATA_ERROR
);
switchDisconnectHandshakeTimeout
=
switchDisconnectHandshakeTimeout
=
debugCounters
.
registerCounter
(
debugCounters
.
registerCounter
(
prefix
,
"switch
D
isconnect
H
andshake
T
imeout"
,
prefix
,
"switch
-d
isconnect
-h
andshake
-t
imeout"
,
"Number of times a switch was disconnected "
+
"Number of times a switch was disconnected "
+
"because it failed to complete the handshake "
+
"because it failed to complete the handshake "
+
"in time."
,
"in time."
,
...
@@ -601,14 +601,14 @@ public class Controller implements IFloodlightProviderService,
...
@@ -601,14 +601,14 @@ public class Controller implements IFloodlightProviderService,
IDebugCounterService
.
CTR_MDATA_ERROR
);
IDebugCounterService
.
CTR_MDATA_ERROR
);
switchDisconnectIOError
=
switchDisconnectIOError
=
debugCounters
.
registerCounter
(
debugCounters
.
registerCounter
(
prefix
,
"switch
D
isconnect
IOE
rror"
,
prefix
,
"switch
-d
isconnect
-io-e
rror"
,
"Number of times a switch was disconnected "
+
"Number of times a switch was disconnected "
+
"due to IO errors on the switch connection."
,
"due to IO errors on the switch connection."
,
CounterType
.
ALWAYS_COUNT
,
CounterType
.
ALWAYS_COUNT
,
IDebugCounterService
.
CTR_MDATA_ERROR
);
IDebugCounterService
.
CTR_MDATA_ERROR
);
switchDisconnectParseError
=
switchDisconnectParseError
=
debugCounters
.
registerCounter
(
debugCounters
.
registerCounter
(
prefix
,
"switch
D
isconnect
P
arse
E
rror"
,
prefix
,
"switch
-d
isconnect
-p
arse
-e
rror"
,
"Number of times a switch was disconnected "
+
"Number of times a switch was disconnected "
+
"because it sent an invalid packet that could "
+
"because it sent an invalid packet that could "
+
"not be parsed"
,
"not be parsed"
,
...
@@ -617,7 +617,7 @@ public class Controller implements IFloodlightProviderService,
...
@@ -617,7 +617,7 @@ public class Controller implements IFloodlightProviderService,
switchDisconnectSwitchStateException
=
switchDisconnectSwitchStateException
=
debugCounters
.
registerCounter
(
debugCounters
.
registerCounter
(
prefix
,
"switch
D
isconnect
S
witch
S
tate
E
xception"
,
prefix
,
"switch
-d
isconnect
-s
witch
-s
tate
-e
xception"
,
"Number of times a switch was disconnected "
+
"Number of times a switch was disconnected "
+
"because it sent messages that were invalid "
+
"because it sent messages that were invalid "
+
"given the switch connection's state."
,
"given the switch connection's state."
,
...
@@ -625,14 +625,14 @@ public class Controller implements IFloodlightProviderService,
...
@@ -625,14 +625,14 @@ public class Controller implements IFloodlightProviderService,
IDebugCounterService
.
CTR_MDATA_ERROR
);
IDebugCounterService
.
CTR_MDATA_ERROR
);
rejectedExecutionException
=
rejectedExecutionException
=
debugCounters
.
registerCounter
(
debugCounters
.
registerCounter
(
prefix
,
"rejected
E
xecution
E
xception"
,
prefix
,
"rejected
-e
xecution
-e
xception"
,
"TODO"
,
"TODO"
,
CounterType
.
ALWAYS_COUNT
,
CounterType
.
ALWAYS_COUNT
,
IDebugCounterService
.
CTR_MDATA_ERROR
);
IDebugCounterService
.
CTR_MDATA_ERROR
);
switchDisconnectOtherException
=
switchDisconnectOtherException
=
debugCounters
.
registerCounter
(
debugCounters
.
registerCounter
(
prefix
,
"switch
D
isconnect
O
ther
E
xception"
,
prefix
,
"switch
-d
isconnect
-o
ther
-e
xception"
,
"Number of times a switch was disconnected "
+
"Number of times a switch was disconnected "
+
"due to an exceptional situation not covered "
+
"due to an exceptional situation not covered "
+
"by other counters"
,
"by other counters"
,
...
@@ -641,14 +641,14 @@ public class Controller implements IFloodlightProviderService,
...
@@ -641,14 +641,14 @@ public class Controller implements IFloodlightProviderService,
switchConnected
=
switchConnected
=
debugCounters
.
registerCounter
(
debugCounters
.
registerCounter
(
prefix
,
"switch
C
onnected"
,
prefix
,
"switch
-c
onnected"
,
"Number of times a new switch connection was "
+
"Number of times a new switch connection was "
+
"established"
,
"established"
,
CounterType
.
ALWAYS_COUNT
);
CounterType
.
ALWAYS_COUNT
);
unhandledMessage
=
unhandledMessage
=
debugCounters
.
registerCounter
(
debugCounters
.
registerCounter
(
prefix
,
"unhandled
M
essage"
,
prefix
,
"unhandled
-m
essage"
,
"Number of times an OpenFlow message was "
+
"Number of times an OpenFlow message was "
+
"received that the controller ignored because "
+
"received that the controller ignored because "
+
"it was inapproriate given the switch "
+
"it was inapproriate given the switch "
+
...
@@ -659,14 +659,14 @@ public class Controller implements IFloodlightProviderService,
...
@@ -659,14 +659,14 @@ public class Controller implements IFloodlightProviderService,
packetInWhileSwitchIsSlave
=
packetInWhileSwitchIsSlave
=
debugCounters
.
registerCounter
(
debugCounters
.
registerCounter
(
prefix
,
"packet
InW
hile
S
witch
IsS
lave"
,
prefix
,
"packet
-in-w
hile
-s
witch
-is-s
lave"
,
"Number of times a packet in was received "
+
"Number of times a packet in was received "
+
"from a switch that was in SLAVE role. "
+
"from a switch that was in SLAVE role. "
+
"Possibly inidicates inconsistent roles."
,
"Possibly inidicates inconsistent roles."
,
CounterType
.
ALWAYS_COUNT
);
CounterType
.
ALWAYS_COUNT
);
epermErrorWhileSwitchIsMaster
=
epermErrorWhileSwitchIsMaster
=
debugCounters
.
registerCounter
(
debugCounters
.
registerCounter
(
prefix
,
"eperm
E
rror
W
hile
S
witch
IsM
aster"
,
prefix
,
"eperm
-e
rror
-w
hile
-s
witch
-is-m
aster"
,
"Number of times a permission error was "
+
"Number of times a permission error was "
+
"received while the switch was in MASTER role. "
+
"received while the switch was in MASTER role. "
+
"Possibly inidicates inconsistent roles."
,
"Possibly inidicates inconsistent roles."
,
...
@@ -675,20 +675,20 @@ public class Controller implements IFloodlightProviderService,
...
@@ -675,20 +675,20 @@ public class Controller implements IFloodlightProviderService,
roleNotResentBecauseRolePending
=
roleNotResentBecauseRolePending
=
debugCounters
.
registerCounter
(
debugCounters
.
registerCounter
(
prefix
,
"role
NotR
esent
B
ecause
R
ole
P
ending"
,
prefix
,
"role
-not-r
esent
-b
ecause
-r
ole
-p
ending"
,
"The controller tried to reestablish a role "
+
"The controller tried to reestablish a role "
+
"with a switch but did not do so because a "
+
"with a switch but did not do so because a "
+
"previous role request was still pending"
,
"previous role request was still pending"
,
CounterType
.
ALWAYS_COUNT
);
CounterType
.
ALWAYS_COUNT
);
roleRequestSent
=
roleRequestSent
=
debugCounters
.
registerCounter
(
debugCounters
.
registerCounter
(
prefix
,
"role
R
equest
S
ent"
,
prefix
,
"role
-r
equest
-s
ent"
,
"Number of times the controller sent a role "
+
"Number of times the controller sent a role "
+
"request to a switch."
,
"request to a switch."
,
CounterType
.
ALWAYS_COUNT
);
CounterType
.
ALWAYS_COUNT
);
roleReplyTimeout
=
roleReplyTimeout
=
debugCounters
.
registerCounter
(
debugCounters
.
registerCounter
(
prefix
,
"role
R
eply
T
imeout"
,
prefix
,
"role
-r
eply
-t
imeout"
,
"Number of times a role request message did not "
+
"Number of times a role request message did not "
+
"receive the expected reply from a switch"
,
"receive the expected reply from a switch"
,
CounterType
.
ALWAYS_COUNT
,
CounterType
.
ALWAYS_COUNT
,
...
@@ -696,14 +696,14 @@ public class Controller implements IFloodlightProviderService,
...
@@ -696,14 +696,14 @@ public class Controller implements IFloodlightProviderService,
roleReplyReceived
=
// expected RoleReply received
roleReplyReceived
=
// expected RoleReply received
debugCounters
.
registerCounter
(
debugCounters
.
registerCounter
(
prefix
,
"role
R
eply
R
eceived"
,
prefix
,
"role
-r
eply
-r
eceived"
,
"Number of times the controller received the "
+
"Number of times the controller received the "
+
"expected role reply message from a switch"
,
"expected role reply message from a switch"
,
CounterType
.
ALWAYS_COUNT
);
CounterType
.
ALWAYS_COUNT
);
roleReplyErrorUnsupported
=
roleReplyErrorUnsupported
=
debugCounters
.
registerCounter
(
debugCounters
.
registerCounter
(
prefix
,
"role
R
eply
E
rror
U
nsupported"
,
prefix
,
"role
-r
eply
-e
rror
-u
nsupported"
,
"Number of times the controller received an "
+
"Number of times the controller received an "
+
"error from a switch in response to a role "
+
"error from a switch in response to a role "
+
"request indicating that the switch does not "
+
"request indicating that the switch does not "
+
...
...
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