public static interface VirtualMachine.ForOpenJ9.Dispatcher
| Modifier and Type | Interface and Description |
|---|---|
static class |
VirtualMachine.ForOpenJ9.Dispatcher.ForJnaPosixEnvironment
A connector implementation for a POSIX environment using JNA.
|
static class |
VirtualMachine.ForOpenJ9.Dispatcher.ForJnaWindowsEnvironment
A connector implementation for a Windows environment using JNA.
|
| Modifier and Type | Method and Description |
|---|---|
void |
chownFileToUser(File file,
long userId)
Changes the ownership of a file.
|
void |
decrementSemaphore(File directory,
String name,
boolean global,
int count)
Decrements a semaphore.
|
int |
getOwnerIdOf(File file)
Returns the user id of the owner of the supplied file.
|
String |
getTemporaryFolder(String processId)
Returns this machine's temporary folder.
|
void |
incrementSemaphore(File directory,
String name,
boolean global,
int count)
Increments a semaphore.
|
boolean |
isExistingProcess(int processId)
Returns
true if the supplied process id is a running process. |
int |
pid()
Returns the process id of this process.
|
void |
setPermissions(File file,
int permissions)
Sets permissions for the supplied file.
|
int |
userId()
Returns the user id of this process.
|
String getTemporaryFolder(String processId)
processId - The target process's id.int pid()
int userId()
boolean isExistingProcess(int processId)
true if the supplied process id is a running process.processId - The process id to evaluate.true if the supplied process id is currently running.int getOwnerIdOf(File file)
file - The file for which to locate the owner.void setPermissions(File file, int permissions)
file - The file for which to set the permissions.permissions - The permission bits to set.void incrementSemaphore(File directory, String name, boolean global, int count)
directory - The sempahore's control directory.name - The semaphore's name.global - true if the semaphore is in the global namespace (only applicable on Windows).count - The amount of increments.void decrementSemaphore(File directory, String name, boolean global, int count)
directory - The sempahore's control directory.name - The semaphore's name.global - true if the semaphore is in the global namespace (only applicable on Windows).count - The amount of decrements.void chownFileToUser(File file, long userId)
file - The path of the file to change ownership of.userId - The user that should own the file.Copyright © 2014–2025. All rights reserved.