org.rhq.enterprise.communications.command.impl.remotepojo.server
Interface RemotePojoInvocationCommandServiceMBean

All Superinterfaces:
CommandExecutor, CommandServiceMBean
All Known Implementing Classes:
RemotePojoInvocationCommandService

public interface RemotePojoInvocationCommandServiceMBean
extends CommandServiceMBean

The MBean interface to the remote POJO invocation command service. This interface introduces the ability to add a new POJO so it can be remotely invoked and remove a remote POJO so it is no longer remoted.

Author:
John Mazzitelli

Method Summary
 void addPojo(Object pojo, String remoteInterfaceName)
          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.
 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.
 
Methods inherited from interface org.rhq.enterprise.communications.command.server.CommandServiceMBean
getSupportedCommandTypes
 
Methods inherited from interface org.rhq.enterprise.communications.command.CommandExecutor
execute
 

Method Detail

addPojo

void addPojo(Object pojo,
             String remoteInterfaceName)
Adds the given POJO so it becomes remoteable via the ClientRemotePojoFactory. The remoteInterfaceName will be the name of the interface that is exposed to the remote clients.

Parameters:
pojo - the POJO to add to the list of remoted POJOs
remoteInterfaceName - name of the interface to expose to remote clients
See Also:
removePojo(String), removePojo(Class)

addPojo

<T> void addPojo(T pojo,
                 Class<T> remoteInterface)
Adds the given POJO so it becomes remoteable via the ClientRemotePojoFactory. The remoteInterface will be the interface that is exposed to the remote clients.

Parameters:
pojo - the POJO to add to the list of remoted POJOs
remoteInterface - the interface to expose to remote clients
See Also:
removePojo(String), removePojo(Class)

removePojo

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. The remoteInterfaceName must be the name of the interface that was exposed to the remote clients.

Parameters:
remoteInterfaceName - name of the interface that was exposed to remote clients
See Also:
addPojo(Object, String), addPojo(Object, Class)

removePojo

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. The remoteInterface must be the interface that was exposed to the remote clients.

Parameters:
remoteInterface - the interface that was exposed to remote clients
See Also:
addPojo(Object, String), addPojo(Object, Class)


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.