Package org.webappos.server
Class API
- java.lang.Object
-
- org.webappos.server.API
-
public class API extends java.lang.Object
Provides 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 PropertiesClassLoader
classLoader
static ConfigStatic
config
static IWebMemoryArea
dataMemory
static IEmailSender
emailSender
static IFileSystem
homeFSRoot
static IPropertiesManager
propertiesManager
static IRegistry
registry
static IStatus
status
static IWebCaller
webCaller
static IRWebProcessorBusService
wpbService
-
Constructor Summary
Constructors Constructor Description API()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
addShutDownListener(org.webappos.server.IShutDownListener l)
static void
initAPI()
Initializes webAppOS Server-Side API within webAppOS Gate.static void
initAPI(java.lang.String webProcessorID, java.lang.String webProcBusURL, IRWebProcessor wpAPI, boolean register)
Initializes webAppOS Server-Side API within a web processor.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.
-
-
-
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)
-
-