Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Rename error box

  • Loading branch information...
commit 01b02815bab294457a224db4c9e21a0fd477723c 1 parent 50830d3
@mikecafarella mikecafarella authored
View
29 src/java/com/cloudera/recordbreaker/fisheye/SettingsPage.java
@@ -169,16 +169,18 @@ public void onConfigure() {
}
/////////////////////////////////////////////////////
- // Filesystem cancellation form
+ // Filesystem info/cancellation form
////////////////////////////////////////////////////
- public final class FilesystemCancelForm extends Form<ValueMap> {
- public FilesystemCancelForm(final String id, ValueMap vm) {
+ public final class FilesystemInfoForm extends Form<ValueMap> {
+ public FilesystemInfoForm(final String id, ValueMap vm) {
super(id, new CompoundPropertyModel<ValueMap>(vm));
FishEye fe = FishEye.getInstance();
add(new Label("currentfs"));
List<CrawlSummary> crawlList = fe.getAnalyzer().getCrawlSummaries();
add(new Label("numcrawls", "" + crawlList.size()));
vm.put("currentfs", fe.getFSUrl());
+
+ //List<CrawlSummary> crawlSummaries =
}
public void onSubmit() {
FishEye fe = FishEye.getInstance();
@@ -190,6 +192,25 @@ public void onConfigure() {
}
}
+ /////////////////////////////////////////////////////
+ // Crawl info/progress form
+ ////////////////////////////////////////////////////
+ /**
+ public final class FilesystemCrawlForm extends Form<ValueMap> {
+ public FilesystemCrawlForm(final String id, ValueMap vm) {
+ super(id, new CompoundPropertyModel<ValueMap>(vm));
+ add(
+ }
+ public void onSubmit() {
+ FishEye fe = FishEye.getInstance();
+ fe.startCrawl();
+ setResponsePage(new SettingsPage());
+ }
+ public void onConfigure() {
+ setVisibilityAllowed(FishEye.getInstance().getFSUrl() != null);
+ }
+ }
+ **/
final WebMarkupContainer loginErrorMsgDisplay = new WebMarkupContainer("loginErrorMsgContainer");
@@ -217,7 +238,7 @@ public SettingsPage() {
//
final ValueMap fsinfo = new ValueMap();
add(new FilesystemRegistrationForm("fsaddform", fsinfo));
- add(new FilesystemCancelForm("fscancelform", fsinfo));
+ add(new FilesystemInfoForm("fsinfoform", fsinfo));
final Label fsErrorLabel = new Label("fsErrorMessage", "The filesystem was not found.");
fsErrorMsgDisplay.add(fsErrorLabel);
fsErrorMsgDisplay.setOutputMarkupPlaceholderTag(true);
View
9 src/web/fisheye/SettingsPage.html
@@ -137,13 +137,16 @@
</fieldset>
</form>
- <!-- If there is a filesystem, display the current one -->
- <form class="well form-inline" method="get" wicket:id="fscancelform">
+ <!-- If there is a filesystem, display its name and allow it to be changed -->
+ <form class="well form-inline" method="get" wicket:id="fsinfoform">
<label>
Fisheye is currently examining the filesystem at <strong><span wicket:id="currentfs"></span></strong>.<p/>
There are <strong><span wicket:id="numcrawls"></span></strong> crawls of this filesystem.<p/>
</label><br/>
- <button type="submit" class="btn btn-danger">Change filesystem</button>
+ <button type="submit" class="btn btn-danger">Change filesystem</button>
+ </form>
+
+ <!-- If there is a filesystem, display crawl info and offer recrawl capacity. -->
<!--
<div class="crawlbox" wicket:id="crawlContainer">
Please sign in to comment.
Something went wrong with that request. Please try again.