public class ServerSideResourceManager extends OSResourceManager
This allows initialization and creation of network objects, so that the client-side can call back (if needed) on the server-side, to use these resources.
ALL_RESOURCES, LIBRARY_RESOURCE, LOG, MEMPTR_RESOURCE, resourceInitialization, serverSideResources, STREAMS_RESOURCE
Constructor and Description |
---|
ServerSideResourceManager() |
Modifier and Type | Method and Description |
---|---|
protected void |
initialize()
Initialize each resource, either on client or server-side.
|
NativeAPICaller |
initializeLibrary()
Initialize the OS
OSResourceManager.LIBRARY_RESOURCE resource. |
private static void |
initializeLibraryResource()
Initialize the
OSResourceManager.LIBRARY_RESOURCE resource on server-side, by creating a network proxy for the
LibraryDaemon . |
LowLevelBuffer |
initializeMemptr()
Initialize the OS
OSResourceManager.MEMPTR_RESOURCE resource. |
private static void |
initializeMemptrResource()
Initialize the
OSResourceManager.MEMPTR_RESOURCE resource on server-side, by creating a network proxy for the
MemoryDaemon . |
getInstance, isServerSideLibrary, isServerSideMemptr
public LowLevelBuffer initializeMemptr()
OSResourceManager.MEMPTR_RESOURCE
resource.
If the memptr is server-side
, the MemoryDaemon
is proxied over
the network and this returns a local proxy, to be used on server-side.
initializeMemptr
in class OSResourceManager
LowLevelBuffer
network or local object.public NativeAPICaller initializeLibrary()
OSResourceManager.LIBRARY_RESOURCE
resource.
If the library is server-side
, the LibraryDaemon
is proxied over
the network and this returns a local proxy, to be used on server-side.
initializeLibrary
in class OSResourceManager
NativeAPICaller
network or local object.protected void initialize()
This populates the OSResourceManager#RESOURCES_INITIALIZATION
map with initialization code for
each server-side resource.
initialize
in class OSResourceManager
private static void initializeMemptrResource()
OSResourceManager.MEMPTR_RESOURCE
resource on server-side, by creating a network proxy for the
MemoryDaemon
.private static void initializeLibraryResource()
OSResourceManager.LIBRARY_RESOURCE
resource on server-side, by creating a network proxy for the
LibraryDaemon
.