-
Notifications
You must be signed in to change notification settings - Fork 12
L2pNodeLauncher Commands
This is a list containing the most used commands in the L2pNodeLauncher class. These commands can be either executed when starting the node or after the node has been started.
uploadStartupDirectory
uploads the contents of the default startup directory ('etc/startup') to the global storage of the LAS2peer network
(note, that for agents you have to provide the passphrases in the file 'passphrases.txt' stored in the same directory)
uploadStartupDirectory('C:\folder')
uploads the contents of the given directory to the global storage of the LAS2peer network
registerUserAgent('UserA','userAPass')
registers a user at this node
startHttpConnector / startWebConnector
starts one of the two predefined connectors
startConnector('connector.package.class')
starts an arbitrary connector given by its class name
startService('i5.las2peer.services.servicePackage.ServiceClass','SampleServicePass')
starts a service with a known agent
startService('i5.las2peer.services.servicePackage.ServiceClass')
starts a service and generates a new service agent for this service
invoke('i5.las2peer.services.servicePackage.ServiceClass','testMethod','xyz')
function testMethod in the service ServiceClass takes one string parameter (use a "-" as separator to pass multiple parameters in the last argument of this call)
unregisterCurrentAgent
unregisters the currently active agent (registered by the registerUserAgent method) to register another one to be used with this launcher
findService('i5.las2peer.services.servicePackage.ServiceClass')
looks for the service 'i5.las2peer.services.servicePackage.ServiceClass' in the LAS2peer network and determines whether it exists
findAgent('agent ID')
looks for the given agent with the given agent id in the LAS2peer network
shutdown
closes the current node
getServiceMethods('i5.las2peer.services.servicePackage.ServiceClass')
returns all services methods' signatures of the specified service
interactive
should be executed as a login argument when starting the L2PNodeLauncher and enables the interactive console
(see additional tutorial [L2PNodeLauncher - Interactive Command Line](https://github.com/rwth-acis/LAS2peer-Template-Project/wiki/L2PNodeLauncher - Interactive Command Line))
getLocalNodeInfo
returns some node information specified in the 'nodeInfo.xml' (located in the 'etc' folder)
getInfoOfKnownNodes
returns the node information about all known nodes