|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rhq.enterprise.communications.command.server.CommandMBean
org.rhq.enterprise.communications.command.server.CommandService
org.rhq.enterprise.communications.command.impl.stream.server.RemoteOutputStreamCommandService
public class RemoteOutputStreamCommandService
Processes client requests to write remoted output streams.
| Constructor Summary | |
|---|---|
RemoteOutputStreamCommandService()
Constructor for RemoteOutputStreamCommandService. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.rhq.enterprise.communications.command.server.CommandService |
|---|
getCommandServiceId, getConnector, getServiceContainer, getSubsystem, prepareRemoteInputStream, prepareRemoteOutputStream, preRegister, setServiceContainer |
| Methods inherited from class org.rhq.enterprise.communications.command.server.CommandMBean |
|---|
getLog, getMBeanServer, getObjectName, postDeregister, postRegister, preDeregister |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RemoteOutputStreamCommandService()
RemoteOutputStreamCommandService.
| Method Detail |
|---|
public Long addOutputStream(OutputStream stream)
RemoteOutputStreamCommand.setStreamId(Long)).
stream - the new stream to remote
public boolean removeOutputStream(Long stream_id)
stream_id - identifies the stream to remove
true 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()
CommandMBean
stopService 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 client
CommandExecutor.execute(Command, InputStream, OutputStream)public CommandType[] getSupportedCommandTypes()
remote output stream commands.
CommandServiceMBean.getSupportedCommandTypes()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||