Package gda.jython
Interface LocalJython
- All Superinterfaces:
Findable,ICurrentScanInformationHolder,IDefaultScannableProvider,IJythonServerNotifer,IJythonServerStatusProvider,gda.observable.IObservable,Jython
- All Known Implementing Classes:
JythonServer
public interface LocalJython
extends Jython, ICurrentScanInformationHolder, IJythonServerNotifer, IDefaultScannableProvider, IJythonServerStatusProvider
Interface for the local JythonServer object.
It supplies extra functionality to the distributed Jython interface so it may pass object references to server-side objects.
Examples of this would be objects in Jython scripts which would like access to the scan object as it is running.
-
Field Summary
Fields inherited from interface gda.jython.Jython
RAW_INPUT_RECEIVED, RAW_INPUT_REQUESTED, SERVER_NAME -
Method Summary
Modifier and TypeMethodDescriptiongetAllNamesForType(Class<F> clazz) Returns all names for all Objects of a type in the Jython namespacegetAllObjectsOfType(Class<F> clazz) runAsJython(Runnable task, String jsfIdentifier) Run the given task in a Jython thread - allows it to be linked to a specific client and be restricted by its authorization levelMethods inherited from interface gda.jython.ICurrentScanInformationHolder
getCurrentScanInformation, setCurrentScanMethods inherited from interface gda.jython.IDefaultScannableProvider
getDefaultScannablesMethods inherited from interface gda.jython.IJythonServerNotifer
notifyServerMethods inherited from interface gda.jython.IJythonServerStatusProvider
addJythonServerStatusObserver, deleteJythonServerStatusObserver, getJythonServerStatusMethods inherited from interface gda.observable.IObservable
addIObserver, deleteIObserver, deleteIObserversMethods inherited from interface gda.jython.Jython
abortCommands, addAliasedCommand, addAliasedVarargCommand, addFacade, amIBatonHolder, assignBaton, beamlineHalt, eval, evaluateCommand, exec, executeCommand, executeCommand, getAliasedCommands, getAliasedVarargCommands, getAllNamesForObject, getAllScriptProjectFolders, getClientInformation, getCommandThreadInfo, getCompletionsFor, getDefaultScriptProjectFolder, getFromJythonNamespace, getJythonServerStatus, getMessageHistory, getOtherClientInformation, getProjectNameForPath, getRelease, getScanStatus, getScriptStatus, getStartupOutput, hasAlias, isBatonHeld, isFinishEarlyRequested, locateScript, pauseCurrentScan, pauseCurrentScript, placeInJythonNamespace, print, projectIsConfigType, projectIsCoreType, projectIsUserType, removeAlias, removeFacade, requestBaton, requestFinishEarly, restartCurrentScan, resumeCurrentScan, resumeCurrentScript, returnBaton, runCommand, runScript, runsource, runsource, sendMessage, setRawInput, setScriptStatus, switchUser
-
Method Details
-
getAllObjectsOfType
-
getAllNamesForType
Description copied from interface:JythonReturns all names for all Objects of a type in the Jython namespace- Specified by:
getAllNamesForTypein interfaceJython- Parameters:
clazz- a Class extending Findable- Returns:
- a set of all names of all objects of a type in the Jython namespace.
-
runAsJython
Run the given task in a Jython thread - allows it to be linked to a specific client and be restricted by its authorization level
-