public class OsPropertiesDaemon extends java.lang.Object implements OperatingSystemInspector
Modifier and Type | Field and Description |
---|---|
private static java.lang.Object |
modToken
Token used to authenticate with the dispatcher when registering APIs.
|
Constructor and Description |
---|
OsPropertiesDaemon(boolean single)
Create an instance and export its API to the network.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCurrentPrinterName()
Get the name of the current printer on the client side.
|
java.lang.String |
getOperatingSystem()
If there is still no match, then any
os.name with the
lowercase text "unix" will return "UNIX" and any os.name
with the lowercase text "windows" will return "WIN32". |
java.lang.String |
getPathSeparator()
Gets the path separator character used to parse the Progress search
path.
|
java.lang.String |
getTempDirectory()
Gets the name of the directory where temporary files are stored.
|
private static java.lang.Object modToken
public OsPropertiesDaemon(boolean single)
single
- true
to startup within the server process which must bypass the
shared infrastructure initialization. Use false
for the normal
client JVM startup.public java.lang.String getOperatingSystem()
os.name
with the
lowercase text "unix" will return "UNIX" and any os.name
with the lowercase text "windows" will return "WIN32".
If there is still no match, the os.name
returned by the
Java will be returned.
getOperatingSystem
in interface OperatingSystemInspector
public java.lang.String getPathSeparator()
The value returned may have been found via a search algorithm that is account (user or process) specific or group specific within the current server or a global default for all servers.
If no value is found via this lookup, then the default value of ':' will be returned.
getPathSeparator
in interface OperatingSystemInspector
public java.lang.String getTempDirectory()
SESSION:TEMP-DIRECTORY
system
handle attribute.getTempDirectory
in interface OperatingSystemInspector
public java.lang.String getCurrentPrinterName()
getCurrentPrinterName
in interface OperatingSystemInspector