Runtime

Last updated 9 months ago

Inclusion code:

Service Deployment

Port Name

Location

Protocol

Interfaces

Runtime

-

-

RuntimeInterface

List of Available Interfaces

RuntimeInterface

Operation Name

Input Type

Output Type

Faults

loadLibrary

string

void

IOException( IOExceptionType )

removeOutputPort

string

void

setRedirection

SetRedirectionRequest

void

RuntimeException( RuntimeExceptionType )

getOutputPorts

void

GetOutputPortsResponse

loadEmbeddedService

LoadEmbeddedServiceRequest

any

RuntimeException( RuntimeExceptionType )

getOutputPort

GetOutputPortRequest

GetOutputPortResponse

OutputPortDoesNotExist( undefined )

dumpState

void

string

getLocalLocation

void

any

getRedirection

GetRedirectionRequest

any

setOutputPort

SetOutputPortRequest

void

halt

HaltRequest

void

callExit

any

void

stats

void

Stats

removeRedirection

GetRedirectionRequest

void

RuntimeException( RuntimeExceptionType )

setMonitor

SetMonitorRequest

void

getProcessId

void

string

getIncludePaths

void

GetIncludePathResponse

getenv

string

MaybeString

Operation Description

loadLibrary

Invocation template:

loadLibrary@Runtime( request )( response )

Request type

Type: string

Type documentation: no documentation provided

Response type

Type: void

Type documentation: no documentation provided

Possible faults thrown

Fault IOException with type IOExceptionType

Fault-handling install template:

install ( IOException => /* error-handling code */ )
type IOExceptionType: JavaExceptionType

removeOutputPort

Invocation template:

removeOutputPort@Runtime( request )( response )

Request type

Type: string

Type documentation: no documentation provided

Response type

Type: void

Type documentation: no documentation provided

setRedirection

Invocation template:

setRedirection@Runtime( request )( response )

Request type

Type: SetRedirectionRequest

Type documentation: no documentation provided

type SetRedirectionRequest: void {
.inputPortName: string
.outputPortName: string
.resourceName: string
}

Response type

Type: void

Type documentation: no documentation provided

Possible faults thrown

Fault RuntimeException with type RuntimeExceptionType

Fault-handling install template:

install ( RuntimeException => /* error-handling code */ )
type RuntimeExceptionType: JavaExceptionType

getOutputPorts

Operation documentation: it returns the list of definitions of all the available outputPorts of the service

Invocation template:

getOutputPorts@Runtime( request )( response )

Request type

Type: void

Type documentation: no documentation provided

Response type

Type: GetOutputPortsResponse

Type documentation: no documentation provided

type GetOutputPortsResponse: void {
.port*: void {
.protocol: string
.name: string
.location: string
}
}

loadEmbeddedService

Invocation template:

loadEmbeddedService@Runtime( request )( response )

Request type

Type: LoadEmbeddedServiceRequest

Type documentation: no documentation provided

type LoadEmbeddedServiceRequest: void {
.filepath: string
.type: string
}

Response type

Type: any

Type documentation: no documentation provided

Possible faults thrown

Fault RuntimeException with type RuntimeExceptionType

Fault-handling install template:

install ( RuntimeException => /* error-handling code */ )
type RuntimeExceptionType: JavaExceptionType

getOutputPort

Operation documentation: it returns a port definition if it exists, OuputPortDoesNotExist fault otherwise

Invocation template:

getOutputPort@Runtime( request )( response )

Request type

Type: GetOutputPortRequest

Type documentation: no documentation provided

type GetOutputPortRequest: void {
.name: string
}

Response type

Type: GetOutputPortResponse

Type documentation: no documentation provided

type GetOutputPortResponse: void {
.protocol: string
.name: string
.location: string
}

Possible faults thrown

Fault OutputPortDoesNotExist with type undefined

Fault-handling install template:

install ( OutputPortDoesNotExist => /* error-handling code */ )

dumpState

Invocation template:

dumpState@Runtime( request )( response )

Request type

Type: void

Type documentation: no documentation provided

Response type

Type: string

Type documentation: no documentation provided

getLocalLocation

Invocation template:

getLocalLocation@Runtime( request )( response )

Request type

Type: void

Type documentation: no documentation provided

Response type

Type: any

Type documentation: no documentation provided

getRedirection

Invocation template:

getRedirection@Runtime( request )( response )

Request type

Type: GetRedirectionRequest

Type documentation: no documentation provided

type GetRedirectionRequest: void {
.inputPortName: string
.resourceName: string
}

Response type

Type: any

Type documentation: no documentation provided

setOutputPort

Invocation template:

setOutputPort@Runtime( request )( response )

Request type

Type: SetOutputPortRequest

Type documentation: no documentation provided

type SetOutputPortRequest: void {
.protocol?: undefined
.name: string
.location: any
}

Response type

Type: void

Type documentation: no documentation provided

halt

Invocation template:

halt@Runtime( request )( response )

Request type

Type: HaltRequest

Type documentation: no documentation provided

type HaltRequest: void {
.status?: int
}

Response type

Type: void

Type documentation: no documentation provided

callExit

Invocation template:

callExit@Runtime( request )( response )

Request type

Type: any

Type documentation: no documentation provided

Response type

Type: void

Type documentation: no documentation provided

stats

Operation documentation: Get information about the runtime state of the Jolie interpreter.

Invocation template:

stats@Runtime( request )( response )

Request type

Type: void

Type documentation: no documentation provided

Response type

Type: Stats

Type documentation: no documentation provided

type Stats: void {
.os: void {
.availableProcessors: int
.systemLoadAverage: double
.name: string
.arch: string
.version: string
}
.files: void {
.openCount?: long
.maxCount?: long
}
}

removeRedirection

Invocation template:

removeRedirection@Runtime( request )( response )

Request type

Type: GetRedirectionRequest

Type documentation: no documentation provided

type GetRedirectionRequest: void {
.inputPortName: string
.resourceName: string
}

Response type

Type: void

Type documentation: no documentation provided

Possible faults thrown

Fault RuntimeException with type RuntimeExceptionType

Fault-handling install template:

install ( RuntimeException => /* error-handling code */ )
type RuntimeExceptionType: JavaExceptionType

setMonitor

Invocation template:

setMonitor@Runtime( request )( response )

Request type

Type: SetMonitorRequest

Type documentation: no documentation provided

type SetMonitorRequest: void {
.protocol?: undefined
.location: any
}

Response type

Type: void

Type documentation: no documentation provided

getProcessId

Invocation template:

getProcessId@Runtime( request )( response )

Request type

Type: void

Type documentation: no documentation provided

Response type

Type: string

Type documentation: no documentation provided

getIncludePaths

Invocation template:

getIncludePaths@Runtime( request )( response )

Request type

Type: void

Type documentation: no documentation provided

Response type

Type: GetIncludePathResponse

Type documentation: no documentation provided

type GetIncludePathResponse: void {
.path*: string
}

getenv

Operation documentation: Get the value of an environment variable

Invocation template:

getenv@Runtime( request )( response )

Request type

Type: string

Type documentation: no documentation provided

Response type

Type: MaybeString

Type documentation: no documentation provided

type MaybeString: type MaybeString: void|type MaybeString: string

Subtypes

IOExceptionType

type IOExceptionType: JavaExceptionType

RuntimeExceptionType

type RuntimeExceptionType: JavaExceptionType