NAME

grpc_get_info_np - Returns session information.

SYNOPSIS

grpc_error_t grpc_get_info_np(grpc_sessionid_t session_id, grpc_exec_info_t_np *info, int *status)

ARGUMENTS

grpc_sessionid_t session_id
The session ID
grpc_exec_info_t_np *info
The session information
int *status
The session status

DESCRIPTION

Not recommend. Use grpc_session_info_get_np() instead.
The grpc_get_info_np() function returns information on the specified session.
If NULL is specified in info, only the session status is returned as the return value.
grpc_exec_info_t_np is defined in $NG_DIR/include/grpc.h.
The time of compression is included in members of grpc_exec_info_t_np listed following.
  typedef struct grpc_exec_info_s_np {
      struct {
          /* Measured by the remote method */

          /* Real time of the time concerning argument transmission */
          struct timeval transferArgumentRealTime;
          /* CPU time of the time concerning argument transmission */
          struct timeval transferArgumentCpuTime;
          /* Real time of Calculation time of executable */
          struct timeval calculationRealTime;
          /* CPU time of Calculation time of executable */
          struct timeval calculationCpuTime;
          /* Real time of the time concerning transmitting a result */
          struct timeval transferResultRealTime;
          /* CPU time of the time concerning transmitting a result */
          struct timeval transferResultCpuTime;

          /* Real time of the time concerning argument transmission of callback */
          struct timeval callbackTransferArgumentRealTime;
          /* CPU time of the time concerning argument transmission of callback */
          struct timeval callbackTransferArgumentCpuTime;
          /* Real time of time concerning callback */
          struct timeval callbackCalculationRealTime;
          /* CPU time of time concerning callback */
          struct timeval callbackCalculationCpuTime;
          /* Real time of the time concerning transmitting a result of callback */
          struct timeval callbackTransferResultRealTime;
          /* CPU time of the time concerning transmitting a result of callback */
          struct timeval callbackTransferResultCpuTime;
      } gei_measureExecutable;
      struct {
          /* Measured by the client */

          /* Real time of the time concerning request remote machine information */
          struct timeval remoteMachineInfoRequestRealTime;
          /* CPU time of the time concerning request remote machine information */
          struct timeval remoteMachineInfoRequestCpuTime;
          /* Real time of the time concerning request remote class information */
          struct timeval remoteClassInfoRequestRealTime;
          /* CPU time of the time concerning request remote class information */
          struct timeval remoteClassInfoRequestCpuTime;
          /* Real time of the time concerning invoke GRAM */
          struct timeval gramInvokeRealTime;
          /* CPU time of the time concerning invoke GRAM */
          struct timeval gramInvokeCpuTime;

          /* Real time of the time concerning argument transmission */
          struct timeval transferArgumentRealTime;
          /* CPU time of the time concerning argument transmission */
          struct timeval transferArgumentCpuTime;
          /* Real time of Calculation time of client */
          struct timeval calculationRealTime;
          /* CPU time of Calculation time of client */
          struct timeval calculationCpuTime;
          /* Real time of the time concerning transmitting a result */
          struct timeval transferResultRealTime;
          /* CPU time of the time concerning transmitting a result */
          struct timeval transferResultCpuTime;

          /* Real time of the time concerning argument transmission of callback */
          struct timeval callbackTransferArgumentRealTime;
          /* CPU time of the time concerning argument transmission of callback */
          struct timeval callbackTransferArgumentCpuTime;
          /* Real time of time concerning calculation of callback */
          struct timeval callbackCalculationRealTime;
          /* CPU time of time concerning calculation of callback */
          struct timeval callbackCalculationCpuTime;
          /* Real time of the time concerning transmitting a result of callback */
          struct timeval callbackTransferResultRealTime;
          /* CPU time of the time concerning transmitting a result of callback */
          struct timeval callbackTransferResultCpuTime;
      } gei_measureClient;
  } grpc_exec_info_t_np;

Refer to the following for return status.

GRPC_SESSION_ARG_IS_NOT_TRANSMITTED
Transmission of the arguments to the stub has not been completed.

GRPC_SESSION_EXECUTING
The session is in progress.

GRPC_SESSION_DOWN
The session is not being executed.

GRPC_SESSION_DONE
The session has ended.

GRPC_SESSION_UNKNOWN_STATUS
API was failed.

This function is MT-safe.

RETURN VALUE

If successful, GRPC_NO_ERROR is returned. In the case of an error, Error code is returned.

ERRORS

GRPC_NOT_INITIALIZED
GRPC client is not initialized yet.
GRPC_INVALID_SESSION_ID
Session ID is not valid.
GRPC_OTHER_ERROR_CODE
Internal error detected.

last update : $Date: 2005/07/11 07:11:24 $