private class GetFileOperation implements ManagementRequestHandler<ModelNode, Void> {
@Override
public void handleRequest(DataInput input, ResultHandler<ModelNode> resultHandler, ManagementRequestContext<Void> context)
throws IOException {
final RootFileReader reader = new RootFileReader() {
public File readRootFile(byte rootId, String filePath) throws RequestProcessingException {
byte[] hash = HashUtil.hexStringToByteArray(filePath);
return deploymentFileRepository.getDeploymentRoot(hash);
}
};