Package org.cristalise.kernel.process
Class StandardClient
java.lang.Object
org.cristalise.kernel.process.AbstractMain
org.cristalise.kernel.process.StandardClient
- Direct Known Subclasses:
ClientShell,UserCodeProcess
-
Field Summary
FieldsFields inherited from class org.cristalise.kernel.process.AbstractMain
isServer, MAIN_ARG_CONFIG, MAIN_ARG_CONNECT, MAIN_ARG_SKIPBOOTSTRAP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidprotected static StateMachinegetRequiredStateMachine(String propPrefix, String namesSpaceDefault, String bootfileDefault) CRISTAL-iSE clients could use the StateMachine information to implement application logic.protected voidstatic voidstandardInitialisation(String[] args) static voidstandardInitialisation(Properties props, ResourceLoader res) Methods inherited from class org.cristalise.kernel.process.AbstractMain
readC2KArgs, readPropertyFiles, setShutdownHandler, shutdown
-
Field Details
-
agent
-
-
Constructor Details
-
StandardClient
public StandardClient()
-
-
Method Details
-
createClientVerticles
public static void createClientVerticles() -
login
protected void login(String agentName, String agentPass, String resource) throws InvalidDataException - Parameters:
agentName-agentPass-resource-- Throws:
InvalidDataException
-
getRequiredStateMachine
protected static StateMachine getRequiredStateMachine(String propPrefix, String namesSpaceDefault, String bootfileDefault) throws InvalidDataException CRISTAL-iSE clients could use the StateMachine information to implement application logic. This method loads the required StateMachine using different cristal-ise configuration.- Parameters:
propPrefix- the Property Name prefix to find client specific configurationnamesSpaceDefault- default value to load bootstrap file if no configuration was providedbootfileDefault- default value to load bootstrap file if no configuration was provided- Returns:
- the initialised StateMachine object
- Throws:
InvalidDataException- Missing/Incorrect configuration data
-
standardInitialisation
- Throws:
Exception
-
standardInitialisation
- Throws:
Exception
-