Package org.onosproject.net.intent.util
Class IntentMiniSummary
- java.lang.Object
-
- org.onosproject.net.intent.util.IntentMiniSummary
-
public final class IntentMiniSummary extends Object
Lists the summary of intents and their states.
-
-
Constructor Summary
Constructors Constructor Description IntentMiniSummary()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCompiling()
Returns Compiling intent count.int
getFailed()
Returns Failed intent count.int
getInstalled()
Returns Installed intent count.int
getInstalling()
Returns Installing intent count.int
getInstallReq()
Returns InstallReq intent count.String
getIntentType()
Returns intent Type.int
getRecompiling()
Returns Recompiling intent count.int
getTotal()
Returns total intent count.int
getUnknownState()
Returns unknownState intent count.int
getWithdrawing()
Returns Withdrawing intent count.int
getWithdrawn()
Returns Withdrawn intent count.int
getWithdrawReq()
Returns WithdrawReq intent count.Map<String,IntentMiniSummary>
summarize(Iterable<Intent> intents, IntentService intentService)
Build summary of intents per intent type.void
update(IntentState intentState)
Updates the Intent Summary.
-
-
-
Method Detail
-
getIntentType
public String getIntentType()
Returns intent Type.- Returns:
- intentType
-
getTotal
public int getTotal()
Returns total intent count.- Returns:
- total
-
getInstallReq
public int getInstallReq()
Returns InstallReq intent count.- Returns:
- InstallReq
-
getCompiling
public int getCompiling()
Returns Compiling intent count.- Returns:
- Compiling
-
getInstalling
public int getInstalling()
Returns Installing intent count.- Returns:
- Installing
-
getInstalled
public int getInstalled()
Returns Installed intent count.- Returns:
- Installed
-
getRecompiling
public int getRecompiling()
Returns Recompiling intent count.- Returns:
- Recompiling
-
getWithdrawReq
public int getWithdrawReq()
Returns WithdrawReq intent count.- Returns:
- WithdrawReq
-
getWithdrawing
public int getWithdrawing()
Returns Withdrawing intent count.- Returns:
- Withdrawing
-
getWithdrawn
public int getWithdrawn()
Returns Withdrawn intent count.- Returns:
- Withdrawn
-
getFailed
public int getFailed()
Returns Failed intent count.- Returns:
- Failed
-
getUnknownState
public int getUnknownState()
Returns unknownState intent count.- Returns:
- unknownState
-
update
public void update(IntentState intentState)
Updates the Intent Summary.- Parameters:
intentState
- the state of the intent
-
summarize
public Map<String,IntentMiniSummary> summarize(Iterable<Intent> intents, IntentService intentService)
Build summary of intents per intent type.- Parameters:
intents
- to summarizeintentService
- to get IntentState- Returns:
- summaries per Intent type
-
-