|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteu.larkc.core.Larkc
public final class Larkc
Main entry point to the LarKC platform
Constructor Summary | |
---|---|
Larkc()
|
Method Summary | |
---|---|
static void |
addWorkflowExecutorMapping(java.util.UUID workflowId,
Executor executor)
This method adds a workflow - executor mapping. |
static int |
findNextFreePort(int port)
Gets a free port for next executor trial and error. |
static java.lang.String |
getClassName(java.lang.String type)
Gets the class name for the endpoint of the specific type. |
static Executor |
getExecutor(java.util.UUID workflowId)
This method returns executor for a specific workflow id. |
static LarkcKBStatus |
getKBStatus()
Returns the status of the KB |
static PlatformStatus |
getPlatformStatus()
Returns the status of the platform |
static PluginRegistry |
getPluginRegistry()
Getter. |
static ResourceRegistry |
getResourceRegistry()
Getter. |
static void |
initialize()
Deprecated. |
static boolean |
isInitialized()
Checks if the platform is running and has been initialized properly. |
static void |
main(java.lang.String[] args)
Main method of the LarKC platform. |
static void |
setKBStatus(LarkcKBStatus status)
Sets the status of the KB |
static void |
start()
Starts the LarKC platform. |
static void |
stop()
Stops the LarKC platform. |
static void |
terminateExecutor(java.util.UUID workflowId)
This method terminates the executor which is responsible for the specific workflow. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Larkc()
Method Detail |
---|
public static void main(java.lang.String[] args)
-i path_to/larkc-init.lisp -b-i is the parameter for specifying the larkc-init.lisp file, where are commands what to run after initial (skeleton) start -b is a switch, which prevents the console input, which is disabled in LarKC
args
- public static void start()
main(String[])
@Deprecated public static void initialize()
LarkcInit
Should not be
called directly. This method is marked Deprecated
since it should
not be called directly. Use start()
instead.
start()
public static PlatformStatus getPlatformStatus()
PlatformStatus
which indicates the current status of
the platformPlatformStatus
public static LarkcKBStatus getKBStatus()
LarkcKBStatus
which indicates the current status of
the KBLarkcKBStatus
public static void setKBStatus(LarkcKBStatus status)
status
- the new LarkcKBStatus
LarkcKBStatus
public static boolean isInitialized()
public static PluginRegistry getPluginRegistry()
public static ResourceRegistry getResourceRegistry()
public static void addWorkflowExecutorMapping(java.util.UUID workflowId, Executor executor)
workflowId
- the workflow idexecutor
- the executorpublic static void terminateExecutor(java.util.UUID workflowId) throws EndpointShutdownException
workflowId
- the workflow
EndpointShutdownException
- if one or more endpoints are unable to shutdownpublic static Executor getExecutor(java.util.UUID workflowId)
workflowId
- the workflow id
public static java.lang.String getClassName(java.lang.String type)
type
- type of the endpoint
public static int findNextFreePort(int port)
port
- the port to start from
public static void stop() throws EndpointShutdownException
EndpointShutdownException
- on endpoint shutdown errors (e.g. if a server was unable to
shutdown)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |