Package net.solarnetwork.node.service
Interface PlatformPackageService.PlatformPackageResult<T>
- Type Parameters:
T- the context object type
- All Known Implementing Classes:
BasicPlatformPackageResult
- Enclosing interface:
PlatformPackageService
public static interface PlatformPackageService.PlatformPackageResult<T>
The results of performing an action on a package.
-
Method Summary
Modifier and TypeMethodDescriptionGet the context object.Get a result exception.Get a complete list of files installed from the package.Get a result message.booleanGet the success flag.
-
Method Details
-
isSuccess
boolean isSuccess()Get the success flag.- Returns:
- true if the package was extracted successfully
-
getMessage
String getMessage()Get a result message.- Returns:
- a result message (or null)
-
getException
Throwable getException()Get a result exception.- Returns:
- an exception, or null if no exception occurred
-
getExtractedPaths
Get a complete list of files installed from the package.- Returns:
- the extracted paths, or null if nothing installed
-
getContext
T getContext()Get the context object.- Returns:
- the context object
-