psdi.util

Class DefaultToolClientHandler

  • java.lang.Object
    • psdi.util.DefaultToolClientHandler
  • All Implemented Interfaces:
    ToolClientHandler


    public class DefaultToolClientHandler
    extends java.lang.Object
    implements ToolClientHandler
    This is the ToolClientHandler that handles out of the box maximo command line tools.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.Object dispatchRequest(MXSession mxSession, java.lang.String command, java.lang.Object[] params)
      Dispatch the command.
      java.lang.Object[] packageParam(java.lang.String command, java.lang.String[] args)
      Compose the parameter objects based on a set of command line parameters.
      java.lang.String processReturn(java.lang.String command, java.lang.Object retObject)
      Handle the return object of the call.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultToolClientHandler

        public DefaultToolClientHandler()
    • Method Detail

      • dispatchRequest

        public java.lang.Object dispatchRequest(MXSession mxSession,
                                                java.lang.String command,
                                                java.lang.Object[] params)
                                         throws MXException,
                                                java.rmi.RemoteException
        Description copied from interface: ToolClientHandler
        Dispatch the command. The command is an identifier to the type of request.
        Specified by:
        dispatchRequest in interface ToolClientHandler
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException
      • packageParam

        public java.lang.Object[] packageParam(java.lang.String command,
                                               java.lang.String[] args)
        Compose the parameter objects based on a set of command line parameters. The return value will be the parameter objects that understood by dispatchRequest.
        Specified by:
        packageParam in interface ToolClientHandler
        Returns:
      • processReturn

        public java.lang.String processReturn(java.lang.String command,
                                              java.lang.Object retObject)
        Handle the return object of the call.
        Specified by:
        processReturn in interface ToolClientHandler
        Parameters:
        command -
        retObject -
        Returns: