cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Schuller (Updated) (JIRA)" <>
Subject [jira] [Updated] (CASSANDRA-3734) Support native link w/o JNA in Java7
Date Sun, 05 Feb 2012 07:18:53 GMT


Peter Schuller updated CASSANDRA-3734:

    Attachment: CASSANDRA-3734-trunk-v1.txt

Attached patch. Creates a {{NativeFileSystem}} interface, with a {{Java6}} and {{Java7}} implementation.
FileUtils.createHardLink() created, and the decision on which backend to use happens upon
static initialization of FileUtils based on whether nio2 classes seem to be available.

Broke tradition and named arguments "existing" and "link" instead of "source" and "dest" to
make it less possible to confuse the "direction" of linking.

Added a temporary directory creation utility to FileUtil while at it (instead of using the
racy create-file-delete-mkdir approach).

Unit tests always test the java6 version, and tests the java7 version if on java7.

> Support native link w/o JNA in Java7
> ------------------------------------
>                 Key: CASSANDRA-3734
>                 URL:
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Core
>            Reporter: Jonathan Ellis
>            Assignee: Peter Schuller
>            Priority: Minor
>             Fix For: 1.2
>         Attachments: CASSANDRA-3734-trunk-v1.txt
> Java7 provides native support for hard links:,
> We should prefer this method when Java7 is the host.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message