Index

A B C D E F G H I K N R S T W 
All Classes and Interfaces|All Packages|Constant Field Values

A

ALIASES - Static variable in class nz.org.riskscape.cpython.CPythonRealizableFunction
Type name mappings used for python type info serialization - this just cleans them up a little in error messages, BUT it makes them inconsistent with their names in java error messages...

B

badBridgeScript(Path) - Method in interface nz.org.riskscape.cpython.CPythonProblems
 
build(String, Project, BoundParameters) - Method in class nz.org.riskscape.cpython.CPythonFunctionFramework
 

C

canBuild(Project, Map<String, List<?>>) - Method in class nz.org.riskscape.cpython.CPythonFunctionFramework
 
canEqual(Object) - Method in class nz.org.riskscape.cpython.CPythonSettings
 
checkForOutput() - Method in class nz.org.riskscape.cpython.CPythonSpawner
A Non-blocking version of checkForOutputAndBlock.
checkForOutputAndWait() - Method in class nz.org.riskscape.cpython.CPythonSpawner
Blocks the calling thread until there's been a full loop of the reaper thread.
checkPython3Working(ProblemSink) - Method in class nz.org.riskscape.cpython.CPythonSettings
Runs a few checks to get some confidence that our cpython adaptor is going to work properly, logging errors to problemSink
CPythonFunctionFramework - Class in nz.org.riskscape.cpython
Framework for running a python function natively in CPython (as opposed to JythonFunctionFramework in nz.org.riskscape.jython) which executes the user's python code in Jython).
CPythonFunctionFramework(CPythonSpawner) - Constructor for class nz.org.riskscape.cpython.CPythonFunctionFramework
 
CPythonPlugin - Class in nz.org.riskscape.cpython
 
CPythonPlugin(PluginDescriptor) - Constructor for class nz.org.riskscape.cpython.CPythonPlugin
 
CPythonProblems - Interface in nz.org.riskscape.cpython
 
CPythonProcess(Process, Resource) - Constructor for class nz.org.riskscape.cpython.CPythonSpawner.CPythonProcess
 
CPythonRealizableFunction - Class in nz.org.riskscape.cpython
 
CPythonRealizableFunction(FunctionMetadata, Resource, CPythonSpawner) - Constructor for class nz.org.riskscape.cpython.CPythonRealizableFunction
 
CPythonSerializer - Class in nz.org.riskscape.cpython
Adds rudimentary handling of unexpected null values before we try to serialize the data (i.e.
CPythonSerializer() - Constructor for class nz.org.riskscape.cpython.CPythonSerializer
 
CPythonSettings - Class in nz.org.riskscape.cpython
Encapsulates some higher level logic around the configured python environment
CPythonSettings() - Constructor for class nz.org.riskscape.cpython.CPythonSettings
 
CPythonSpawner - Class in nz.org.riskscape.cpython
Handles spawning child CPython processes.
CPythonSpawner(CPythonSettings, ProblemSink) - Constructor for class nz.org.riskscape.cpython.CPythonSpawner
 
CPythonSpawner.CPythonProcess - Class in nz.org.riskscape.cpython
Simple class to help track child CPython processes that we spawn.

D

DEFAULT_ADAPTOR_PATH - Static variable in class nz.org.riskscape.cpython.CPythonSettings
 
DEFAULT_PYTHON3_OPTIONS - Static variable in class nz.org.riskscape.cpython.CPythonSettings
 
defaults(Path, String) - Static method in class nz.org.riskscape.cpython.CPythonSettings
Returns default settings from just the plugin's library dir and the path to a python interpreter
destroy() - Method in class nz.org.riskscape.cpython.CPythonSpawner.CPythonProcess
 
destroy() - Method in class nz.org.riskscape.cpython.CPythonSpawner
Destroys this spawner by stopping the reaper thread, killing all of the child processes and then waiting for the reaper to exit.

E

equals(Object) - Method in class nz.org.riskscape.cpython.CPythonSettings
 
exittedOK() - Method in class nz.org.riskscape.cpython.CPythonSpawner.CPythonProcess
Simple test for checking the process finished successfully.

F

failedToLoadScript(Object) - Method in interface nz.org.riskscape.cpython.CPythonProblems
 
failedToStartPlugin(String) - Method in interface nz.org.riskscape.cpython.CPythonProblems
 
failedToStartScript(Object, String) - Method in interface nz.org.riskscape.cpython.CPythonProblems
A problem was encountered trying to launch the user's python script.
fromIniSection(Path, Map<String, List<String>>) - Static method in class nz.org.riskscape.cpython.CPythonSettings
Build settings from the given iniSection config
functionCallException(String) - Method in interface nz.org.riskscape.cpython.CPythonProblems
A problem was encounter while running the user script's function - this is very likely to be a problem with the user's script
functionOutput(Resource, String) - Method in interface nz.org.riskscape.cpython.CPythonProblems
Some output came from either stdout or stderr

G

get() - Static method in interface nz.org.riskscape.cpython.CPythonProblems
 
getAdaptorPath() - Method in class nz.org.riskscape.cpython.CPythonSettings
 
getChild() - Method in class nz.org.riskscape.cpython.CPythonSpawner.CPythonProcess
 
getChildStdIn() - Method in class nz.org.riskscape.cpython.CPythonSpawner.CPythonProcess
Writing to this stream will send data to the child process's stdin
getChildStdOut() - Method in class nz.org.riskscape.cpython.CPythonSpawner.CPythonProcess
Reading from this stream will receive data from the child process's stdout
getErrorText() - Method in class nz.org.riskscape.cpython.CPythonSpawner.CPythonProcess
 
getId() - Method in class nz.org.riskscape.cpython.CPythonFunctionFramework
 
getLibDir() - Method in class nz.org.riskscape.cpython.CPythonSettings
 
getMaxProcessesPerFunction() - Method in class nz.org.riskscape.cpython.CPythonSettings
 
getParameterSet() - Method in class nz.org.riskscape.cpython.CPythonFunctionFramework
 
getPriority() - Method in class nz.org.riskscape.cpython.CPythonFunctionFramework
 
getPython3Bin() - Method in class nz.org.riskscape.cpython.CPythonSettings
 
getPython3Options() - Method in class nz.org.riskscape.cpython.CPythonSettings
 
getSettings() - Method in class nz.org.riskscape.cpython.CPythonSpawner
 
getUserScript() - Method in class nz.org.riskscape.cpython.CPythonSpawner.CPythonProcess
 

H

hasErrorText() - Method in class nz.org.riskscape.cpython.CPythonSpawner.CPythonProcess
 
hashCode() - Method in class nz.org.riskscape.cpython.CPythonSettings
 

I

initializeEngine(Engine) - Method in class nz.org.riskscape.cpython.CPythonPlugin
 
isAlive() - Method in class nz.org.riskscape.cpython.CPythonSpawner.CPythonProcess
 
isPython3BinSet() - Method in class nz.org.riskscape.cpython.CPythonSettings
 

K

killAll() - Method in class nz.org.riskscape.cpython.CPythonSpawner
Forcibly destroy all the processes under our care.

N

newPython3Command() - Method in class nz.org.riskscape.cpython.CPythonSettings
 
NOT_SET - Static variable in class nz.org.riskscape.cpython.CPythonSettings
 
notEnabled() - Static method in class nz.org.riskscape.cpython.CPythonFunctionFramework
 
nullSafeType(Type) - Static method in class nz.org.riskscape.cpython.CPythonSerializer
Returns an equivalent type that will handle unexpected null values in the underlying input data.
nz.org.riskscape.cpython - package nz.org.riskscape.cpython
 

R

realize(RealizationContext, FunctionCall, List<Type>) - Method in class nz.org.riskscape.cpython.CPythonRealizableFunction
 

S

serialize(DataOutputStream, Type, Object) - Method in class nz.org.riskscape.cpython.CPythonSerializer
Serializes the given type/value to the given output stream with additional null-safety checks.
startUp(Map<String, List<String>>, ProblemSink) - Method in class nz.org.riskscape.cpython.CPythonPlugin
 
startWrapperScript(Object, Resource, String...) - Method in class nz.org.riskscape.cpython.CPythonSpawner
Starts cpython process that wraps a user's python script so that it can start accepting function calls

T

toString() - Method in class nz.org.riskscape.cpython.CPythonSettings
 
toString() - Method in class nz.org.riskscape.cpython.CPythonSpawner.CPythonProcess
 

W

wasDestroyed() - Method in class nz.org.riskscape.cpython.CPythonSpawner.CPythonProcess
 
A B C D E F G H I K N R S T W 
All Classes and Interfaces|All Packages|Constant Field Values