Package org.webappos.memory
Interface IMRAM
-
public interface IMRAM
Interface used by the server-side bridge and by server-side web processors to access server-side MRAM slots.- Author:
- Sergejs Kozlovics
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
faultMRAM(java.lang.String project_id)
Clears the MRAM slot for the given project and disconnects all users by calling onFault runnables (within slot.done()).java.lang.String
getProjectFolder(java.lang.String project_id)
Returns the cache folder for the given webAppOS project.java.lang.String
getProjectFullAppName(java.lang.String project_id)
Returns the full webAppOS app name used to open the given project.lv.lumii.tda.kernel.TDAKernel
getTDAKernel(java.lang.String project_id)
Returns the TDA kernel (or some wrapper using webAppOS memory bus) associated with the given project id.boolean
renameActiveProject(java.lang.String project_id, java.lang.String new_project_id)
Renames an active project (and re-assocates the project cache folder with the new project file).
-
-
-
Method Detail
-
getTDAKernel
lv.lumii.tda.kernel.TDAKernel getTDAKernel(java.lang.String project_id)
Returns the TDA kernel (or some wrapper using webAppOS memory bus) associated with the given project id.- Parameters:
project_id
- the project_id for which to get a TDA Kernel- Returns:
- an initialized TDAKernel instance or null if the project is not active/not found
-
getProjectFolder
java.lang.String getProjectFolder(java.lang.String project_id)
Returns the cache folder for the given webAppOS project.- Parameters:
project_id
- the project_id for which to get the cache folder- Returns:
- project cache folder, or null if the project is not active/not found
-
getProjectFullAppName
java.lang.String getProjectFullAppName(java.lang.String project_id)
Returns the full webAppOS app name used to open the given project.- Parameters:
project_id
- the project_id for which to get the app using the project- Returns:
- full app name or null, if the project is not active/not found
-
renameActiveProject
boolean renameActiveProject(java.lang.String project_id, java.lang.String new_project_id)
Renames an active project (and re-assocates the project cache folder with the new project file).- Parameters:
project_id
- active project idnew_project_id
- desired project id- Returns:
- whether the operation succeeded
-
faultMRAM
void faultMRAM(java.lang.String project_id)
Clears the MRAM slot for the given project and disconnects all users by calling onFault runnables (within slot.done()).- Parameters:
project_id
- the project_id for which to perform "MRAM fault" action.
-
-