Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/Evolveum/midpoint
- Loading branch information
Showing
63 changed files
with
1,917 additions
and
470 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
...rc/main/java/com/evolveum/midpoint/web/page/admin/configuration/InternalsMemoryPanel.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
~ Copyright (c) 2010-2019 Evolveum | ||
~ | ||
~ Licensed under the Apache License, Version 2.0 (the "License"); | ||
~ you may not use this file except in compliance with the License. | ||
~ You may obtain a copy of the License at | ||
~ | ||
~ http://www.apache.org/licenses/LICENSE-2.0 | ||
~ | ||
~ Unless required by applicable law or agreed to in writing, software | ||
~ distributed under the License is distributed on an "AS IS" BASIS, | ||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
~ See the License for the specific language governing permissions and | ||
~ limitations under the License. | ||
--> | ||
|
||
<html xmlns="http://www.w3.org/1999/xhtml" | ||
xmlns:wicket="http://wicket.apache.org"> | ||
<body> | ||
<wicket:panel> | ||
|
||
<textarea wicket:id="information"></textarea> | ||
|
||
</wicket:panel> | ||
</body> | ||
</html> | ||
|
69 changes: 69 additions & 0 deletions
69
...rc/main/java/com/evolveum/midpoint/web/page/admin/configuration/InternalsMemoryPanel.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
/* | ||
* Copyright (c) 2010-2019 Evolveum | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package com.evolveum.midpoint.web.page.admin.configuration; | ||
|
||
import com.evolveum.midpoint.gui.api.component.BasePanel; | ||
import com.evolveum.midpoint.schema.util.ExceptionUtil; | ||
import com.evolveum.midpoint.task.api.Task; | ||
import com.evolveum.midpoint.web.component.AceEditor; | ||
import org.apache.wicket.model.IModel; | ||
|
||
/** | ||
* Unfinished. | ||
*/ | ||
public class InternalsMemoryPanel extends BasePanel<Void> { | ||
private static final long serialVersionUID = 1L; | ||
|
||
private static final String ID_INFORMATION = "information"; | ||
|
||
private static final String OPERATION_GET_MEMORY_INFORMATION = InternalsMemoryPanel.class.getName() + ".getMemoryInformation"; | ||
|
||
InternalsMemoryPanel(String id) { | ||
super(id); | ||
initLayout(); | ||
} | ||
|
||
private void initLayout() { | ||
AceEditor informationText = new AceEditor(ID_INFORMATION, new IModel<String>() { | ||
@Override | ||
public String getObject() { | ||
return getMemoryInformation(); | ||
} | ||
|
||
@Override | ||
public void setObject(String object) { | ||
// nothing to do here | ||
} | ||
}); | ||
informationText.setReadonly(true); | ||
informationText.setHeight(300); | ||
informationText.setResizeToMaxHeight(true); | ||
informationText.setMode(null); | ||
add(informationText); | ||
|
||
} | ||
|
||
@SuppressWarnings("Duplicates") | ||
private String getMemoryInformation() { | ||
try { | ||
Task task = getPageBase().createSimpleTask(OPERATION_GET_MEMORY_INFORMATION); | ||
return getPageBase().getModelDiagnosticService().getMemoryInformation(task, task.getResult()); | ||
} catch (Throwable t) { | ||
// TODO show feedback message as well | ||
return ExceptionUtil.printStackTrace(t); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.