Package org.webappos.server
Class API
- java.lang.Object
-
- org.webappos.server.API
-
public class API extends java.lang.ObjectProvides access to webAppOS Server-side API for accessing certain server-side resources (such as MRAM, Registry, etc.), which are shared between the server-side bridge and web processors (which are different processes). The API class ensures synchronized access to the resources.- Author:
- Sergejs Kozlovics
-
-
Field Summary
Fields Modifier and Type Field Description static PropertiesClassLoaderclassLoaderstatic ConfigStaticconfigstatic IWebMemoryAreadataMemorystatic IEmailSenderemailSenderstatic IFileSystemhomeFSRootstatic IPropertiesManagerpropertiesManagerstatic IRegistryregistrystatic IStatusstatusstatic IWebCallerwebCallerstatic IRWebProcessorBusServicewpbService
-
Constructor Summary
Constructors Constructor Description API()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidaddShutDownListener(org.webappos.server.IShutDownListener l)static voidinitAPI()Initializes webAppOS Server-Side API within webAppOS Gate.static voidinitAPI(java.lang.String webProcessorID, java.lang.String webProcBusURL, IRWebProcessor wpAPI, boolean register)Initializes webAppOS Server-Side API within a web processor.static voidinitOfflineAPI()Initializes webAppOS API for offline mode, where web calls can be called (in inline mode, i.e., without web processors) and projects can be opened to perform some maintenance without running the whole webAppOS.
-
-
-
Field Detail
-
config
public static ConfigStatic config
-
dataMemory
public static IWebMemoryArea dataMemory
-
webCaller
public static IWebCaller webCaller
-
propertiesManager
public static IPropertiesManager propertiesManager
-
classLoader
public static PropertiesClassLoader classLoader
-
registry
public static IRegistry registry
-
status
public static IStatus status
-
homeFSRoot
public static IFileSystem homeFSRoot
-
emailSender
public static IEmailSender emailSender
-
wpbService
public static IRWebProcessorBusService wpbService
-
-
Method Detail
-
initAPI
public static void initAPI()
Initializes webAppOS Server-Side API within webAppOS Gate. In addition, initializes APIForServerBridge and Java RMI service for web processors.
-
initAPI
public static void initAPI(java.lang.String webProcessorID, java.lang.String webProcBusURL, IRWebProcessor wpAPI, boolean register)Initializes webAppOS Server-Side API within a web processor.- Parameters:
webProcessorID- the web processor ID passed to it as a command-line argumentwebProcBusURL- the URL of the Web Processor Bus Service for handling RMI requestswpAPI- web processor RMI API (IRWebProcessor) for this web processorregister- whether to register the Web Processor within Web Processor Bus Service; if false, the web processor must be registered later by calling API.wpbService.registerWebProcessor
-
initOfflineAPI
public static void initOfflineAPI()
Initializes webAppOS API for offline mode, where web calls can be called (in inline mode, i.e., without web processors) and projects can be opened to perform some maintenance without running the whole webAppOS.
-
addShutDownListener
public static void addShutDownListener(org.webappos.server.IShutDownListener l)
-
-