org.pm4j.core.pm.remote
Interface PmRemoteChannel

All Known Implementing Classes:
PmRemoteChannelInVm

public interface PmRemoteChannel

Interface to remote PMs. Usually used for client server communication.

Client server communication usually comprises the following tasks/phases:

  1. attach to a server session (may include osiv support)
  2. resolve server PM
  3. receive values
  4. execute command (includes optional validation)
  5. apply changed server values to the client object
  6. add PM messages to the response

Author:
olaf boede

Method Summary
 void sendValuesAndCallServerCommand(java.lang.String pmPath, PmObject pm, java.lang.String cmdToCall)
          Sends the following data to the server: The (configurable) content of the given PM The name of the server command to call. Receives the following data from the server: The (configurable) content of the server PM. The the PM messages that are generated during command execution.
 

Method Detail

sendValuesAndCallServerCommand

void sendValuesAndCallServerCommand(java.lang.String pmPath,
                                    PmObject pm,
                                    java.lang.String cmdToCall)
Sends the following data to the server:
  1. The (configurable) content of the given PM
  2. The name of the server command to call.
Receives the following data from the server:
  1. The (configurable) content of the server PM.
  2. The the PM messages that are generated during command execution.

Parameters:
pmPath - The path of the addressed server PM.
pm - The client PM to get the values from. It will be updated with the result values of the server PM.
cmdToCall - Name of the command to call on the server PM.