Interface VirtualMachine.ForHotSpot.Connection.ForJnaSolarisDoor.SolarisLibrary

  • All Superinterfaces:
    com.sun.jna.Library
    Enclosing class:
    VirtualMachine.ForHotSpot.Connection.ForJnaSolarisDoor

    protected static interface VirtualMachine.ForHotSpot.Connection.ForJnaSolarisDoor.SolarisLibrary
    extends com.sun.jna.Library
    A library for interacting with Solaris.
    • Field Summary

      • Fields inherited from interface com.sun.jna.Library

        OPTION_ALLOW_OBJECTS, OPTION_CALLING_CONVENTION, OPTION_CLASSLOADER, OPTION_FUNCTION_MAPPER, OPTION_INVOCATION_MAPPER, OPTION_OPEN_FLAGS, OPTION_STRING_ENCODING, OPTION_STRUCTURE_ALIGNMENT, OPTION_SYMBOL_PROVIDER, OPTION_TYPE_MAPPER
    • Method Detail

      • kill

        int kill​(int processId,
                 int signal)
          throws com.sun.jna.LastErrorException
        Sends a kill signal to the target VM.
        Parameters:
        processId - The target process's id.
        signal - The signal to send.
        Returns:
        The return code.
        Throws:
        com.sun.jna.LastErrorException - If an error occurred while sending the signal.
      • open

        int open​(java.lang.String file,
                 int flags)
          throws com.sun.jna.LastErrorException
        Opens a file.
        Parameters:
        file - The file name.
        flags - the flags for opening.
        Returns:
        The file descriptor.
        Throws:
        com.sun.jna.LastErrorException - If the file could not be opened.
      • read

        int read​(int handle,
                 java.nio.ByteBuffer buffer,
                 int length)
          throws com.sun.jna.LastErrorException
        Reads from a handle.
        Parameters:
        handle - The handle representing the source being read.
        buffer - The buffer to read to.
        length - The buffer length.
        Returns:
        The amount of bytes being read.
        Throws:
        com.sun.jna.LastErrorException - If a read operation failed.
      • close

        int close​(int descriptor)
           throws com.sun.jna.LastErrorException
        Releases a descriptor.
        Parameters:
        descriptor - The descriptor to release.
        Returns:
        The return code.
        Throws:
        com.sun.jna.LastErrorException - If the descriptor could not be closed.