Index
All Classes and Interfaces|All Packages|Serialized Form
A
- all(boolean) - Method in class com.sun.akuma.Daemon
-
Do all the necessary steps in one go.
- arguments - Variable in class com.sun.akuma.NetworkServer
-
Java arguments.
C
- chdir(String) - Method in interface com.sun.akuma.CLibrary
- chdirToRoot() - Method in class com.sun.akuma.Daemon
-
change directory to '/' to avoid locking directories.
- chdirToRoot() - Method in class com.sun.akuma.Daemon.WithoutChdir
- CLibrary - Interface in com.sun.akuma
-
GNU C library.
- CLibrary.FILE - Class in com.sun.akuma
- closeDescriptors() - Method in class com.sun.akuma.Daemon
-
Closes inherited file descriptors.
- com.sun.akuma - package com.sun.akuma
- createServerSocket() - Method in class com.sun.akuma.EchoServer
- createServerSocket() - Method in class com.sun.akuma.NetworkServer
-
Creates a bound
ServerSocket
that will be shared by all worker processes. - current() - Static method in class com.sun.akuma.JavaVMArguments
-
Gets the process argument list of the current process.
D
- Daemon - Class in com.sun.akuma
-
Forks a copy of the current process into the background.
- Daemon() - Constructor for class com.sun.akuma.Daemon
- Daemon.WithoutChdir - Class in com.sun.akuma
-
Flavor of
Daemon
that doesn't change the current directory. - daemonize() - Method in class com.sun.akuma.Daemon
-
Relaunches the JVM with the exact same arguments into the daemon.
- daemonize(JavaVMArguments) - Method in class com.sun.akuma.Daemon
-
Relaunches the JVM with the given arguments into the daemon.
E
- EchoServer - Class in com.sun.akuma
-
Sample echo server.
- EchoServer(String[]) - Constructor for class com.sun.akuma.EchoServer
- execv(String, StringArray) - Method in interface com.sun.akuma.CLibrary
F
- fclose(CLibrary.FILE) - Method in interface com.sun.akuma.CLibrary
- FILE() - Constructor for class com.sun.akuma.CLibrary.FILE
- FILE(Pointer) - Constructor for class com.sun.akuma.CLibrary.FILE
- fopen(String, String) - Method in interface com.sun.akuma.CLibrary
- fork() - Method in interface com.sun.akuma.CLibrary
- forkWorkers(JavaVMArguments) - Method in class com.sun.akuma.EchoServer
- forkWorkers(JavaVMArguments) - Method in class com.sun.akuma.NetworkServer
-
Forks the worker thread with the given JVM args.
- forkWorkerThreads(JavaVMArguments, int) - Method in class com.sun.akuma.NetworkServer
-
Called by the front-end code to fork a number of worker processes into the background.
- fread(Pointer, int, int, CLibrary.FILE) - Method in interface com.sun.akuma.CLibrary
- frontend() - Method in class com.sun.akuma.EchoServer
- frontend() - Method in class com.sun.akuma.NetworkServer
-
Front-end.
- fseek(CLibrary.FILE, long, int) - Method in interface com.sun.akuma.CLibrary
- ftell(CLibrary.FILE) - Method in interface com.sun.akuma.CLibrary
G
- getCurrentExecutable() - Static method in class com.sun.akuma.Daemon
-
Gets the current executable name.
- getpid() - Method in interface com.sun.akuma.CLibrary
- getppid() - Method in interface com.sun.akuma.CLibrary
I
- init() - Method in class com.sun.akuma.Daemon
-
Prepares the current process to act as a daemon.
- init(String) - Method in class com.sun.akuma.Daemon
-
Prepares the current process to act as a daemon.
- isDaemonized() - Method in class com.sun.akuma.Daemon
-
Returns true if the current process is already launched as a daemon via
Daemon.daemonize()
.
J
- JavaVMArguments - Class in com.sun.akuma
-
List of arguments for Java VM and application.
- JavaVMArguments() - Constructor for class com.sun.akuma.JavaVMArguments
- JavaVMArguments(Collection<? extends String>) - Constructor for class com.sun.akuma.JavaVMArguments
K
- kill(int, int) - Method in interface com.sun.akuma.CLibrary
L
M
- main(String[]) - Static method in class com.sun.akuma.EchoServer
- main(String[]) - Static method in class com.sun.akuma.JavaVMArguments
N
- NetworkServer - Class in com.sun.akuma
-
Multi-process network server that accepts connections on the same TCP port.
- NetworkServer(String[]) - Constructor for class com.sun.akuma.NetworkServer
O
- of(int) - Static method in class com.sun.akuma.JavaVMArguments
-
Gets the process argument list of the specified process ID.
P
- perror(String) - Method in interface com.sun.akuma.CLibrary
R
- readlink(String, Memory, NativeLong) - Method in interface com.sun.akuma.CLibrary
-
Read a symlink.
- removeSystemProperty(String) - Method in class com.sun.akuma.JavaVMArguments
- removeTail(int) - Method in class com.sun.akuma.JavaVMArguments
-
Removes the n items from the end.
- run() - Method in class com.sun.akuma.NetworkServer
-
Entry point.
S
- selfExec(JavaVMArguments) - Static method in class com.sun.akuma.Daemon
-
Overwrites the current process with a new Java VM with the given JVM arguments.
- setenv(String, String) - Method in interface com.sun.akuma.CLibrary
- setgid(short) - Method in interface com.sun.akuma.CLibrary
- setsid() - Method in interface com.sun.akuma.CLibrary
- setSystemProperty(String, String) - Method in class com.sun.akuma.JavaVMArguments
- setuid(short) - Method in interface com.sun.akuma.CLibrary
- shouldBeDaemonized() - Method in class com.sun.akuma.EchoServer
-
Daemonize if something is given as arguments.
- shouldBeDaemonized() - Method in class com.sun.akuma.NetworkServer
-
Determine if we should daemonize ourselves.
- strerror(int) - Method in interface com.sun.akuma.CLibrary
- sysctl(int[], int, Pointer, IntByReference, Pointer, IntByReference) - Method in interface com.sun.akuma.CLibrary
- sysctlbyname(String, Pointer, IntByReference, Pointer, IntByReference) - Method in interface com.sun.akuma.CLibrary
- sysctlnametomib(String, Pointer, IntByReference) - Method in interface com.sun.akuma.CLibrary
U
- umask(int) - Method in interface com.sun.akuma.CLibrary
- unsetenv(String) - Method in interface com.sun.akuma.CLibrary
W
- WithoutChdir() - Constructor for class com.sun.akuma.Daemon.WithoutChdir
- worker() - Method in class com.sun.akuma.NetworkServer
- worker(ServerSocket) - Method in class com.sun.akuma.EchoServer
- worker(ServerSocket) - Method in class com.sun.akuma.NetworkServer
-
Worker thread main code.
- writePidFile(String) - Method in class com.sun.akuma.Daemon
-
Writes out the PID of the current process to the specified file.
All Classes and Interfaces|All Packages|Serialized Form