|
||||||||||
| 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.RemoteInputStreamCommandService
public class RemoteInputStreamCommandService
Processes client requests to read remoted input streams.
| Constructor Summary | |
|---|---|
RemoteInputStreamCommandService()
Constructor for RemoteInputStreamCommandService. |
|
| Method Summary | |
|---|---|
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. |
| 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 RemoteInputStreamCommandService()
RemoteInputStreamCommandService.
| Method Detail |
|---|
public Long addInputStream(InputStream stream)
RemoteInputStreamCommand.setStreamId(Long)).
stream - the new stream to remote
public boolean removeInputStream(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)
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 client
CommandExecutor.execute(Command, InputStream, OutputStream)public CommandType[] getSupportedCommandTypes()
remote input stream commands.
CommandServiceMBean.getSupportedCommandTypes()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||