Skip to content

Commit

Permalink
Minor cleanup in dbms
Browse files Browse the repository at this point in the history
  • Loading branch information
klaren committed Jul 7, 2017
1 parent 840bba5 commit 84d0194
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
Expand Up @@ -62,7 +62,7 @@ public String summary()
@Nonnull
public AdminCommandSection commandSection()
{
return OffineBackupCommandSection.instance();
return OfflineBackupCommandSection.instance();
}

@Override
Expand Down
Expand Up @@ -20,6 +20,7 @@
package org.neo4j.commandline.dbms;

import java.nio.file.Path;
import javax.annotation.Nonnull;

import org.neo4j.commandline.admin.AdminCommand;
import org.neo4j.commandline.admin.AdminCommandSection;
Expand All @@ -35,12 +36,14 @@ public LoadCommandProvider()
}

@Override
@Nonnull
public Arguments allArguments()
{
return LoadCommand.arguments();
}

@Override
@Nonnull
public String description()
{
return "Load a database from an archive. <archive-path> must be an archive created with the dump " +
Expand All @@ -50,18 +53,21 @@ public String description()
}

@Override
@Nonnull
public String summary()
{
return "Load a database from an archive created with the dump command.";
}

@Override
@Nonnull
public AdminCommandSection commandSection()
{
return OffineBackupCommandSection.instance();
return OfflineBackupCommandSection.instance();
}

@Override
@Nonnull
public AdminCommand create( Path homeDir, Path configDir, OutsideWorld outsideWorld )
{
return new LoadCommand( homeDir, configDir, new Loader() );
Expand Down
Expand Up @@ -23,9 +23,9 @@

import org.neo4j.commandline.admin.AdminCommandSection;

public class OffineBackupCommandSection extends AdminCommandSection
public class OfflineBackupCommandSection extends AdminCommandSection
{
private static final OffineBackupCommandSection OFFINE_BACKUP_COMMAND_SECTION = new OffineBackupCommandSection();
private static final OfflineBackupCommandSection OFFINE_BACKUP_COMMAND_SECTION = new OfflineBackupCommandSection();

public static AdminCommandSection instance()
{
Expand Down
Expand Up @@ -29,7 +29,6 @@

public class StoreInfoCommandProvider extends AdminCommand.Provider
{

public StoreInfoCommandProvider()
{
super( "store-info" );
Expand Down

0 comments on commit 84d0194

Please sign in to comment.