public class RemoteOutputStreamCommandService extends CommandService
| Constructor and Description |
|---|
RemoteOutputStreamCommandService()
Constructor for
RemoteOutputStreamCommandService. |
| Modifier and Type | Method and Description |
|---|---|
Long |
addOutputStream(OutputStream stream)
Adds the given output 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 output stream commands. |
boolean |
removeOutputStream(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 RemoteOutputStreamCommandService()
RemoteOutputStreamCommandService.public Long addOutputStream(OutputStream stream)
RemoteOutputStreamCommand.setStreamId(Long)).stream - the new stream to remotepublic boolean removeOutputStream(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)
OutputStream.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 output stream commands.CommandServiceMBean.getSupportedCommandTypes()Copyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.