Enum Class BaseSolarPkgPlatformPackageService.Action
java.lang.Object
java.lang.Enum<BaseSolarPkgPlatformPackageService.Action>
net.solarnetwork.node.service.support.BaseSolarPkgPlatformPackageService.Action
- All Implemented Interfaces:
Serializable,Comparable<BaseSolarPkgPlatformPackageService.Action>,Constable
- Enclosing class:
- BaseSolarPkgPlatformPackageService
public static enum BaseSolarPkgPlatformPackageService.Action
extends Enum<BaseSolarPkgPlatformPackageService.Action>
The "solarpkg" actions.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionClean up cached resources.Install a package.Test if a package is installed.List all packages.List available packages.List installed packages.Refresh local package cache.Remove a package.Upgrade a package. -
Method Summary
Modifier and TypeMethodDescriptionforCommand(String cmd) Get an enum from a command value.Get the action command value.Returns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Clean
Clean up cached resources. -
Install
Install a package. -
IsInstalled
Test if a package is installed. -
List
List all packages. -
ListAvailable
List available packages. -
ListInstalled
List installed packages. -
Refresh
Refresh local package cache. -
Remove
Remove a package. -
Upgrade
Upgrade a package.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getCommand
Get the action command value.- Returns:
- the command value
-
forCommand
Get an enum from a command value.- Parameters:
cmd- the command value- Returns:
- the associated enum
- Throws:
IllegalArgumentException- ifcmdis not supported
-