Skip to content

Commit

Permalink
Move StoreLocker to internal pkgs
Browse files Browse the repository at this point in the history
  • Loading branch information
davidegrohmann committed Feb 25, 2016
1 parent b4bafa3 commit ba524d4
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 20 deletions.
Expand Up @@ -34,8 +34,8 @@
import org.neo4j.io.fs.FileSystemAbstraction;
import org.neo4j.io.pagecache.PageCache;
import org.neo4j.kernel.AvailabilityGuard;
import org.neo4j.kernel.StoreLocker;
import org.neo4j.kernel.StoreLockerLifecycleAdapter;
import org.neo4j.kernel.internal.StoreLocker;
import org.neo4j.kernel.internal.StoreLockerLifecycleAdapter;
import org.neo4j.kernel.internal.Version;
import org.neo4j.kernel.configuration.Config;
import org.neo4j.kernel.extension.KernelExtensionFactory;
Expand Down
Expand Up @@ -17,7 +17,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package org.neo4j.kernel;
package org.neo4j.kernel.internal;

import java.io.File;
import java.io.IOException;
Expand All @@ -26,11 +26,8 @@

import org.neo4j.io.fs.FileSystemAbstraction;
import org.neo4j.io.fs.StoreChannel;
import org.neo4j.kernel.StoreLockException;

/**
* @deprecated This will be moved to internal packages in the next major release.
*/
@Deprecated
public class StoreLocker
{
public static final String STORE_LOCK_FILENAME = "store_lock";
Expand Down
Expand Up @@ -17,16 +17,12 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package org.neo4j.kernel;
package org.neo4j.kernel.internal;

import java.io.File;

import org.neo4j.kernel.lifecycle.LifecycleAdapter;

/**
* @deprecated This will be moved to internal packages in the next major release.
*/
@Deprecated
public class StoreLockerLifecycleAdapter extends LifecycleAdapter
{
private final StoreLocker storeLocker;
Expand Down
Expand Up @@ -53,7 +53,7 @@
import org.neo4j.io.pagecache.PageCache;
import org.neo4j.io.pagecache.tracing.PageCacheTracer;
import org.neo4j.kernel.internal.EmbeddedGraphDatabase;
import org.neo4j.kernel.StoreLocker;
import org.neo4j.kernel.internal.StoreLocker;
import org.neo4j.kernel.api.constraints.NodePropertyExistenceConstraint;
import org.neo4j.kernel.api.constraints.RelationshipPropertyExistenceConstraint;
import org.neo4j.kernel.api.constraints.UniquenessConstraint;
Expand Down
Expand Up @@ -17,7 +17,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package org.neo4j.kernel;
package org.neo4j.kernel.internal;

import org.junit.Rule;
import org.junit.Test;
Expand All @@ -27,6 +27,7 @@
import org.neo4j.graphdb.GraphDatabaseService;
import org.neo4j.graphdb.factory.GraphDatabaseFactory;
import org.neo4j.graphdb.factory.GraphDatabaseSettings;
import org.neo4j.kernel.StoreLockException;
import org.neo4j.kernel.configuration.Settings;
import org.neo4j.test.TargetDirectory;
import org.neo4j.test.TargetDirectory.TestDirectory;
Expand All @@ -35,7 +36,6 @@
import static org.hamcrest.core.IsInstanceOf.instanceOf;
import static org.junit.Assert.assertThat;
import static org.junit.Assert.fail;

import static org.neo4j.helpers.collection.MapUtil.stringMap;

public class StoreLockerLifecycleAdapterTest
Expand Down
Expand Up @@ -17,7 +17,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package org.neo4j.kernel;
package org.neo4j.kernel.internal;

import org.junit.Rule;
import org.junit.Test;
Expand All @@ -33,6 +33,7 @@
import org.neo4j.io.fs.DefaultFileSystemAbstraction;
import org.neo4j.io.fs.FileSystemAbstraction;
import org.neo4j.io.fs.StoreChannel;
import org.neo4j.kernel.StoreLockException;
import org.neo4j.test.TargetDirectory;
import org.neo4j.test.TestGraphDatabaseFactory;

Expand All @@ -41,7 +42,7 @@
import static org.hamcrest.core.Is.is;
import static org.junit.Assert.assertThat;
import static org.junit.Assert.fail;
import static org.neo4j.kernel.StoreLocker.STORE_LOCK_FILENAME;
import static org.neo4j.kernel.internal.StoreLocker.STORE_LOCK_FILENAME;

public class StoreLockerTest
{
Expand Down
Expand Up @@ -29,7 +29,7 @@
import org.neo4j.io.pagecache.PageCache;
import org.neo4j.io.fs.DefaultFileSystemAbstraction;
import org.neo4j.kernel.StoreLockException;
import org.neo4j.kernel.StoreLocker;
import org.neo4j.kernel.internal.StoreLocker;
import org.neo4j.kernel.impl.store.NeoStores;
import org.neo4j.test.ReflectionUtil;
import org.neo4j.test.TargetDirectory;
Expand Down
Expand Up @@ -42,7 +42,7 @@
import org.neo4j.io.fs.FileSystemAbstraction;
import org.neo4j.io.pagecache.PageCache;
import org.neo4j.kernel.NeoStoreDataSource;
import org.neo4j.kernel.StoreLockerLifecycleAdapter;
import org.neo4j.kernel.internal.StoreLockerLifecycleAdapter;
import org.neo4j.kernel.configuration.Config;
import org.neo4j.kernel.extension.KernelExtensionFactory;
import org.neo4j.kernel.ha.BranchedDataException;
Expand Down
Expand Up @@ -44,7 +44,7 @@
import org.neo4j.io.pagecache.PageCache;
import org.neo4j.io.pagecache.PagedFile;
import org.neo4j.kernel.NeoStoreDataSource;
import org.neo4j.kernel.StoreLockerLifecycleAdapter;
import org.neo4j.kernel.internal.StoreLockerLifecycleAdapter;
import org.neo4j.kernel.configuration.Config;
import org.neo4j.kernel.ha.BranchedDataException;
import org.neo4j.kernel.ha.BranchedDataPolicy;
Expand Down

0 comments on commit ba524d4

Please sign in to comment.