|
||||||||||
| 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.remotepojo.server.RemotePojoInvocationCommandService
public class RemotePojoInvocationCommandService
Processes a client request to invoke a remoted POJO.
| Constructor Summary | |
|---|---|
RemotePojoInvocationCommandService()
|
|
| Method Summary | ||
|---|---|---|
void |
addPojo(Object pojo,
String interfaceName)
Adds the given POJO so it becomes remoteable via the ClientRemotePojoFactory. |
|
|
addPojo(T pojo,
Class<T> remoteInterface)
Adds the given POJO so it becomes remoteable via the ClientRemotePojoFactory. |
|
CommandResponse |
execute(Command command,
InputStream in,
OutputStream out)
Takes the remote POJO invocation request, which has the NameBasedInvocation parameter, and convert that to a method call on the target POJO (using reflection). |
|
CommandType[] |
getSupportedCommandTypes()
Supports RemotePojoInvocationCommand.COMMAND_TYPE. |
|
void |
removePojo(Class<?> remoteInterface)
Removes the POJO with the given remoted interface so it no longer is remoteable and cannot be invoked via remote clients. |
|
void |
removePojo(String remoteInterfaceName)
Removes the POJO with the given remoted interface so it no longer is remoteable and cannot be invoked via remote clients. |
|
void |
startService()
This is called after the MBean is fully registered with the MBeanServer. |
|
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 RemotePojoInvocationCommandService()
| Method Detail |
|---|
public void startService()
CommandMBean
startService in class CommandMBeanCommandMBean.startService()public void stopService()
CommandMBean
stopService in class CommandMBeanCommandMBean.stopService()
public void addPojo(Object pojo,
String interfaceName)
RemotePojoInvocationCommandServiceMBeanClientRemotePojoFactory. The
remoteInterfaceName will be the name of the interface that is exposed to the remote clients.
addPojo in interface RemotePojoInvocationCommandServiceMBeanpojo - the POJO to add to the list of remoted POJOsinterfaceName - name of the interface to expose to remote clientsRemotePojoInvocationCommandServiceMBean.addPojo(Object, String)
public <T> void addPojo(T pojo,
Class<T> remoteInterface)
RemotePojoInvocationCommandServiceMBeanClientRemotePojoFactory. The
remoteInterface will be the interface that is exposed to the remote clients.
addPojo in interface RemotePojoInvocationCommandServiceMBeanpojo - the POJO to add to the list of remoted POJOsremoteInterface - the interface to expose to remote clientsRemotePojoInvocationCommandServiceMBean.addPojo(Object, Class)public void removePojo(String remoteInterfaceName)
RemotePojoInvocationCommandServiceMBeanremoteInterfaceName must be the name of the interface that was exposed to the remote
clients.
removePojo in interface RemotePojoInvocationCommandServiceMBeanremoteInterfaceName - name of the interface that was exposed to remote clientsRemotePojoInvocationCommandServiceMBean.removePojo(String)public void removePojo(Class<?> remoteInterface)
RemotePojoInvocationCommandServiceMBeanremoteInterface must be the interface that was exposed to the remote clients.
removePojo in interface RemotePojoInvocationCommandServiceMBeanremoteInterface - the interface that was exposed to remote clientsRemotePojoInvocationCommandServiceMBean.removePojo(Class)
public CommandResponse execute(Command command,
InputStream in,
OutputStream out)
execute in interface CommandExecutorcommand - 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, java.io.InputStream, java.io.OutputStream)public CommandType[] getSupportedCommandTypes()
RemotePojoInvocationCommand.COMMAND_TYPE.
getSupportedCommandTypes in interface CommandServiceMBeanCommandServiceMBean.getSupportedCommandTypes()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||