public class RemoteInputStreamCommandService extends CommandService
| Constructor and Description |
|---|
RemoteInputStreamCommandService()
Constructor for
RemoteInputStreamCommandService. |
| Modifier and Type | Method and Description |
|---|---|
Long |
addInputStream(InputStream stream)
Adds the given input stream to this service, effectively allowing remote clients to access this stream.
|
CommandResponse |
execute(Command command,
InputStream in,
OutputStream out)
Takes the remote stream access request, which has the NameBasedInvocation parameter, and convert that to a method
call on the target stream (using reflection).
|
CommandType[] |
getSupportedCommandTypes()
Supports
remote input stream commands. |
boolean |
removeInputStream(Long stream_id)
Removes the stream associated with the given ID from this service, effectively making this stream inaccessible to
remote clients.
|
void |
startService()
Configures the max idle time taken from this service's container configuration.
|
void |
stopService()
This is called when the MBean is being deregistered from the MBeanServer.
|
getCommandServiceId, getConnector, getServiceContainer, getSubsystem, prepareRemoteInputStream, prepareRemoteOutputStream, preRegister, setServiceContainergetLog, getMBeanServer, getObjectName, postDeregister, postRegister, preDeregisterpublic RemoteInputStreamCommandService()
RemoteInputStreamCommandService.public Long addInputStream(InputStream stream)
RemoteInputStreamCommand.setStreamId(Long)).stream - the new stream to remotepublic boolean removeInputStream(Long stream_id)
stream_id - identifies the stream to removetrue if the stream ID was valid and a stream was removed; false if the ID
referred to a non-existent stream (which could mean either the stream was never registered at all or it
was registered but has already been removed)public void startService()
startService in class CommandMBeanCommandMBean.startService()public void stopService()
CommandMBeanstopService in class CommandMBeanCommandMBean.stopService()public CommandResponse execute(Command command, InputStream in, OutputStream out)
InputStream.command - the command to executein - input stream should the executor want to get streamed data from the clientout - output stream should the executor want to stream data to the clientCommandExecutor.execute(Command, InputStream, OutputStream)public CommandType[] getSupportedCommandTypes()
remote input stream commands.CommandServiceMBean.getSupportedCommandTypes()Copyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.