public class RemotePojoInvocationCommandService extends CommandService implements RemotePojoInvocationCommandServiceMBean
| Constructor and Description |
|---|
RemotePojoInvocationCommandService() |
| Modifier and Type | Method and Description |
|---|---|
void |
addPojo(Object pojo,
String interfaceName)
Adds the given POJO so it becomes remoteable via the
ClientRemotePojoFactory. |
<T> void |
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.
|
getCommandServiceId, getConnector, getServiceContainer, getSubsystem, prepareRemoteInputStream, prepareRemoteOutputStream, preRegister, setServiceContainergetLog, getMBeanServer, getObjectName, postDeregister, postRegister, preDeregisterpublic void startService()
CommandMBeanstartService in class CommandMBeanCommandMBean.startService()public void stopService()
CommandMBeanstopService 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 clientCommandExecutor.execute(Command, java.io.InputStream, java.io.OutputStream)public CommandType[] getSupportedCommandTypes()
RemotePojoInvocationCommand.COMMAND_TYPE.getSupportedCommandTypes in interface CommandServiceMBeanCommandServiceMBean.getSupportedCommandTypes()Copyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.