Class MessageIntelligenceAgencyImpl
java.lang.Object
org.opendaylight.openflowplugin.impl.statistics.ofpspecific.MessageIntelligenceAgencyImpl
- All Implemented Interfaces:
AutoCloseable
,Runnable
,MessageIntelligenceAgency
,MessageSpy
@Singleton
public final class MessageIntelligenceAgencyImpl
extends Object
implements MessageIntelligenceAgency, AutoCloseable
Implementation of
MessageIntelligenceAgency
.
Class counts message of MessageSpy.StatisticsGroup
type and provides info as debug log.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opendaylight.openflowplugin.api.openflow.statistics.ofpspecific.MessageSpy
MessageSpy.StatisticsGroup
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
void
run()
void
spyMessage
(Class<?> message, MessageSpy.StatisticsGroup statGroup) Spy message.
-
Constructor Details
-
MessageIntelligenceAgencyImpl
@Inject public MessageIntelligenceAgencyImpl()
-
-
Method Details
-
close
@PreDestroy public void close()- Specified by:
close
in interfaceAutoCloseable
-
spyMessage
Description copied from interface:MessageSpy
Spy message.- Specified by:
spyMessage
in interfaceMessageSpy
- Parameters:
message
- from switch or to switch - depends on statGroupstatGroup
- statistics group
-
run
public void run() -
provideIntelligence
- Specified by:
provideIntelligence
in interfaceMessageIntelligenceAgency
-
resetStatistics
public void resetStatistics()- Specified by:
resetStatistics
in interfaceMessageIntelligenceAgency
-