public interface GatewayModule
Modifier and Type | Method and Description |
---|---|
byte[] |
extractResource(java.lang.String path)
Extract a resource from the *.modl file
|
ModuleFaultCause |
getFaultCause()
If the state is faulted, this enum may contain information about why the fault occurred.
|
java.lang.Throwable |
getFaultReason()
If the state is faulted, this will be non-null containing information about the failure.
|
GatewayModuleHook |
getHook()
The hook instance.
|
ModuleInfo |
getInfo()
The module info, which represents the information from the "module.xml" file inside the *.modl file.
|
ModuleState |
getState() |
java.time.LocalDateTime |
getStateTimestamp(ModuleState state)
The last time this module's state has changed to the given state, or null if the state has not been reached.
|
ModuleInfo getInfo()
GatewayModuleHook getHook()
ModuleState getState()
java.time.LocalDateTime getStateTimestamp(ModuleState state)
java.lang.Throwable getFaultReason()
ModuleFaultCause getFaultCause()
byte[] extractResource(java.lang.String path) throws java.io.IOException
java.io.IOException