Package org.onosproject.cli.net
Class IntentRemoveCommand
- java.lang.Object
- 
- org.onosproject.cli.AbstractShellCommand
- 
- org.onosproject.cli.net.IntentRemoveCommand
 
 
- 
- All Implemented Interfaces:
- org.apache.karaf.shell.api.action.Action,- CodecContext
 
 public class IntentRemoveCommand extends AbstractShellCommand Removes an intent.
- 
- 
Field Summary- 
Fields inherited from class org.onosproject.cli.AbstractShellCommandlog
 
- 
 - 
Constructor SummaryConstructors Constructor Description IntentRemoveCommand()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoExecute()Body of the shell command.voidpurgeIntentsInteractive(java.lang.Iterable<Intent> intents)Purges the intents passed as argument after confirmation is provided for each of them.- 
Methods inherited from class org.onosproject.cli.AbstractShellCommandannotations, annotations, annotations, appId, codec, error, execute, get, getService, jsonForEntity, mapper, outputJson, print
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.onosproject.codec.CodecContextdecode, encode
 
- 
 
- 
- 
- 
Method Detail- 
doExecuteprotected void doExecute() Description copied from class:AbstractShellCommandBody of the shell command.- Specified by:
- doExecutein class- AbstractShellCommand
 
 - 
purgeIntentsInteractivepublic void purgeIntentsInteractive(java.lang.Iterable<Intent> intents) Purges the intents passed as argument after confirmation is provided for each of them. If no explicit confirmation is provided, the intent is not purged.- Parameters:
- intents- list of intents to purge
 
 
- 
 
-