public class Bootstrap extends Object
| Modifier and Type | Field and Description |
|---|---|
static boolean |
shutdown |
| Constructor and Description |
|---|
Bootstrap() |
| Modifier and Type | Method and Description |
|---|---|
static void |
abort()
Set flag for the thread to abort gracefully
|
static void |
checkAdminAgents() |
static DomainPath |
createResource(String ns,
String itemName,
int version,
String itemType,
Set<Outcome> outcomes,
boolean reset)
Create a resource item from its module definition.
|
static void |
createServerItem() |
static StateMachine |
getPredefSM()
Get the StateMachine of a Predefined Step
|
static void |
init()
Initilaise Bootstrap
|
static void |
initServerItemWf() |
static void |
run()
Run everything without timing-out the service wrapper
|
static void |
verifyBootDataItems()
Checks all kernel descriptions stored in resources and create or update them if they were changed
|
static DomainPath |
verifyResource(String ns,
String itemName,
int version,
String itemType,
ItemPath itemPath,
Set<Outcome> outcomes,
boolean reset)
Verify a resource item against a module version, but supplies the resource outcomes directly
instead of through a location lookup
|
static DomainPath |
verifyResource(String ns,
String itemName,
int version,
String itemType,
ItemPath itemPath,
String dataLocation,
boolean reset)
Verify a resource item against a module version, using a ResourceImportHandler configured
to find outcomes at the given dataLocation
|
public static StateMachine getPredefSM() throws ObjectNotFoundException, InvalidDataException
ObjectNotFoundException - StateMachine called 'PredefinedStep' version '0' does not existsInvalidDataException - the stored state machine data was invalidpublic static void init()
throws Exception
Exception - in case of any errorpublic static void run()
throws Exception
Exceptionpublic static void abort()
public static void verifyBootDataItems()
throws Exception
Exceptionpublic static DomainPath createResource(String ns, String itemName, int version, String itemType, Set<Outcome> outcomes, boolean reset) throws Exception
Exceptionpublic static DomainPath verifyResource(String ns, String itemName, int version, String itemType, ItemPath itemPath, String dataLocation, boolean reset) throws Exception
Exceptionpublic static DomainPath verifyResource(String ns, String itemName, int version, String itemType, ItemPath itemPath, Set<Outcome> outcomes, boolean reset) throws Exception
ExceptionCopyright © 1997–2019 CRISTAL-iSE. All rights reserved.