public class ClientSideResourceManager extends OSResourceManager
For each server-side OS resource, this will obtain a network proxy. Otherwise, a local proxy is generated.
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.String,java.lang.Object> |
resources
The remote objects, either network or local, depending on how the OS resource is configured.
|
ALL_RESOURCES, LIBRARY_RESOURCE, LOG, MEMPTR_RESOURCE, resourceInitialization, serverSideResources, STREAMS_RESOURCE
Constructor and Description |
---|
ClientSideResourceManager() |
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. |
LowLevelBuffer |
initializeMemptr()
Initialize the OS
OSResourceManager.MEMPTR_RESOURCE resource. |
getInstance, isServerSideLibrary, isServerSideMemptr
private java.util.Map<java.lang.String,java.lang.Object> resources
public LowLevelBuffer initializeMemptr()
OSResourceManager.MEMPTR_RESOURCE
resource.
If the memptr is server-side
, this returns a network proxy.
Otherwise, a local proxy is returned.
initializeMemptr
in class OSResourceManager
LowLevelBuffer
network or local object.public NativeAPICaller initializeLibrary()
OSResourceManager.LIBRARY_RESOURCE
resource.
If the library is server-side
, this returns a network proxy.
Otherwise, a local proxy is returned.
initializeLibrary
in class OSResourceManager
NativeAPICaller
network or local object.protected void initialize()
This populates the OSResourceManager#RESOURCES_INITIALIZATION
map with initialization code for
each resource.
initialize
in class OSResourceManager