public abstract class RemoteFileRequestAndHandler extends Object
Modifier and Type | Class and Description |
---|---|
static class |
RemoteFileRequestAndHandler.CannotCreateLocalDirectoryException
Indicates a directory could not be created
|
static class |
RemoteFileRequestAndHandler.DidNotReadEntireFileException
Indicates a file was not completely read
|
static interface |
RemoteFileRequestAndHandler.RemoteFileProtocolIdMapper
Maps the expected protocol codes to the actual protocol
|
static interface |
RemoteFileRequestAndHandler.RootFileReader
Reads the root file being got
|
Modifier | Constructor and Description |
---|---|
protected |
RemoteFileRequestAndHandler(RemoteFileRequestAndHandler.RemoteFileProtocolIdMapper protocol) |
protected |
RemoteFileRequestAndHandler(RemoteFileRequestAndHandler.RemoteFileProtocolIdMapper protocol,
Executor asyncExecutor) |
Modifier and Type | Method and Description |
---|---|
void |
handleRequest(DataInput input,
RemoteFileRequestAndHandler.RootFileReader reader,
ActiveOperation.ResultHandler<Void> resultHandler,
ManagementRequestContext<Void> context) |
void |
handleResponse(DataInput input,
File localPath,
org.jboss.logging.BasicLogger log,
ActiveOperation.ResultHandler<File> resultHandler,
ManagementRequestContext<Void> context) |
void |
sendRequest(FlushableDataOutput output,
byte rootId,
String filePath) |
protected RemoteFileRequestAndHandler(RemoteFileRequestAndHandler.RemoteFileProtocolIdMapper protocol)
protected RemoteFileRequestAndHandler(RemoteFileRequestAndHandler.RemoteFileProtocolIdMapper protocol, Executor asyncExecutor)
public void sendRequest(FlushableDataOutput output, byte rootId, String filePath) throws IOException
IOException
public void handleResponse(DataInput input, File localPath, org.jboss.logging.BasicLogger log, ActiveOperation.ResultHandler<File> resultHandler, ManagementRequestContext<Void> context) throws IOException, RemoteFileRequestAndHandler.CannotCreateLocalDirectoryException, RemoteFileRequestAndHandler.DidNotReadEntireFileException
public void handleRequest(DataInput input, RemoteFileRequestAndHandler.RootFileReader reader, ActiveOperation.ResultHandler<Void> resultHandler, ManagementRequestContext<Void> context) throws IOException
IOException
Copyright © 2023 JBoss by Red Hat. All rights reserved.