ballerina.runtime package

public function getCurrentDirectory ( ) ( string )

Returns the current working directory.

public function getFileEncoding ( ) ( string )

Returns the charset encoding used in the runtime.

public function getProperties ( ) ( map )

Returns all system properties.

public function getProperty ( string name ) ( string )

Returns the value associated with the specified property name.

Parameter Name Data Type Description
name string Name of the property

public function setProperty ( string name , string value )

Adds the given name, value pair to the system properties.

Parameter Name Data Type Description
name string Name of the property
value string Value of the property

public function sleepCurrentThread ( int millis )

Halts the current thread for a predefined amount of time.

Parameter Name Data Type Description
millis int Amount of time to sleep in milliseconds