Class IpcServer
java.lang.Object
org.eclipse.aether.named.ipc.IpcServer
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final booleanstatic final Stringstatic final intstatic final Stringstatic final booleanstatic final booleanstatic final StringShould the IPC server log debug messages? (i.e.static final StringIPC socket family to use.static final StringIPC idle timeout in seconds.static final StringThe name if the IPC server native executable (without file extension like ".exe")static final StringShould the IPC server not fork? (i.e.static final StringShould the IPC server not use native executable? -
Constructor Summary
ConstructorsConstructorDescriptionIpcServer(SocketFamily family) Deprecated.IpcServer(SocketFamily family, String bootstrapToken) Creates a server that honors a remote stop request only when it carries the given bootstrap token, which is shared exclusively with the client that spawned this server. -
Method Summary
-
Field Details
-
SYSTEM_PROP_NO_FORK
Should the IPC server not fork? (i.e. for testing purposes)- See Also:
-
DEFAULT_NO_FORK
- See Also:
-
SYSTEM_PROP_IDLE_TIMEOUT
IPC idle timeout in seconds. If there is no IPC request during idle time, it will stop.- See Also:
-
DEFAULT_IDLE_TIMEOUT
- See Also:
-
SYSTEM_PROP_FAMILY
-
DEFAULT_FAMILY
- See Also:
-
SYSTEM_PROP_NO_NATIVE
Should the IPC server not use native executable?- See Also:
-
DEFAULT_NO_NATIVE
- See Also:
-
SYSTEM_PROP_NATIVE_NAME
The name if the IPC server native executable (without file extension like ".exe")- See Also:
-
DEFAULT_NATIVE_NAME
- See Also:
-
SYSTEM_PROP_DEBUG
Should the IPC server log debug messages? (i.e. for testing purposes)- See Also:
-
DEFAULT_DEBUG
- See Also:
-
-
Constructor Details
-
IpcServer
Deprecated.a server created without a bootstrap token refusesIpcMessages.REQUEST_STOPrequests; useIpcServer(SocketFamily, String)instead.- Throws:
IOException
-
IpcServer
Creates a server that honors a remote stop request only when it carries the given bootstrap token, which is shared exclusively with the client that spawned this server. The rest of the protocol is unauthenticated, but destructive cross-client operations (closing foreign contexts, stopping the daemon) are refused.- Throws:
IOException- Since:
- 2.0.23
-
-
Method Details
-
main
-
getLocalAddress
- Throws:
IOException
-
run
-
IpcMessages.REQUEST_STOPrequests; useIpcServer(SocketFamily, String)instead.