AdventNet CLI 2.0 API Specification

com.adventnet.cli.rmi
Interface CLIClient


public interface CLIClient
extends java.rmi.Remote

This is the RMI interface that should be implemented by RMI Client applications which want to receive Asynchronous CLI responses. To use asynchronous requests, this interface must be implemented by the class that handles the asynchronous response.


Method Summary
 boolean callback(CLISession session, CLIMessage cliMsg, int msgID)
          This method is called whenever a response for an asynchronous CLI message is received.
 

Method Detail

callback

public boolean callback(CLISession session,
                        CLIMessage cliMsg,
                        int msgID)
                 throws java.rmi.RemoteException
This method is called whenever a response for an asynchronous CLI message is received. The user has to implement this method in the application and register with the CLISession using the addClient method.
Parameters:
session - CLISession which received the response.
cliMsg - the CLI response message.
msgID - the message ID of the response.
Returns:
if this returns false the message is dropped by the receiver.

AdventNet CLI 2.0 API Specification