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
alshabib
2014-09-28 22:11:21 -0700
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
271a6209c5a91d2cfc15fc272a4f0fe250e75195
271a6209
1 parent
b7b40639
fix checkstyle
Change-Id: I94e51e898c5581ea5e246b0f0467d9417e208990
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
9 deletions
core/net/src/main/java/org/onlab/onos/net/device/impl/DeviceManager.java
core/net/src/main/java/org/onlab/onos/net/device/impl/DeviceManager.java
View file @
271a620
...
...
@@ -45,9 +45,9 @@ import org.slf4j.Logger;
*/
@Component
(
immediate
=
true
)
@Service
public
class
DeviceManager
extends
AbstractProviderRegistry
<
DeviceProvider
,
DeviceProviderService
>
implements
DeviceService
,
DeviceAdminService
,
DeviceProviderRegistry
{
public
class
DeviceManager
extends
AbstractProviderRegistry
<
DeviceProvider
,
DeviceProviderService
>
implements
DeviceService
,
DeviceAdminService
,
DeviceProviderRegistry
{
private
static
final
String
DEVICE_ID_NULL
=
"Device ID cannot be null"
;
private
static
final
String
PORT_NUMBER_NULL
=
"Port number cannot be null"
;
...
...
@@ -57,7 +57,8 @@ public class DeviceManager extends
private
final
Logger
log
=
getLogger
(
getClass
());
protected
final
AbstractListenerRegistry
<
DeviceEvent
,
DeviceListener
>
listenerRegistry
=
new
AbstractListenerRegistry
<>();
protected
final
AbstractListenerRegistry
<
DeviceEvent
,
DeviceListener
>
listenerRegistry
=
new
AbstractListenerRegistry
<>();
private
final
DeviceStoreDelegate
delegate
=
new
InternalStoreDelegate
();
...
...
@@ -174,9 +175,9 @@ public class DeviceManager extends
}
// Personalized device provider service issued to the supplied provider.
private
class
InternalDeviceProviderService
extends
AbstractProviderService
<
DeviceProvider
>
implements
DeviceProviderService
{
private
class
InternalDeviceProviderService
extends
AbstractProviderService
<
DeviceProvider
>
implements
DeviceProviderService
{
InternalDeviceProviderService
(
DeviceProvider
provider
)
{
super
(
provider
);
...
...
@@ -258,7 +259,8 @@ public class DeviceManager extends
}
// Intercepts mastership events
private
class
InternalMastershipListener
implements
MastershipListener
{
private
class
InternalMastershipListener
implements
MastershipListener
{
@Override
public
void
event
(
MastershipEvent
event
)
{
if
(
event
.
master
().
equals
(
clusterService
.
getLocalNode
().
id
()))
{
...
...
@@ -273,7 +275,8 @@ public class DeviceManager extends
}
// Store delegate to re-post events emitted from the store.
private
class
InternalStoreDelegate
implements
DeviceStoreDelegate
{
private
class
InternalStoreDelegate
implements
DeviceStoreDelegate
{
@Override
public
void
notify
(
DeviceEvent
event
)
{
post
(
event
);
...
...
Please
register
or
login
to post a comment