Proud::IRmiStub Class Referenceabstract

Public Member Functions

virtual RmiID * GetRmiIDList ()=0
 
virtual int GetRmiIDListCount ()=0
 
virtual bool ProcessReceivedMessage (CReceivedMessage &pa, void *hostTag)=0
 
virtual PROUD_API void AfterRmiInvocation (const AfterRmiSummary &summary)
 
virtual PROUD_API void BeforeRmiInvocation (const BeforeRmiSummary &summary)
 
virtual PROUD_API void NotifyCallFromStub (HostID remote, RmiID RMIId, String methodName, String parameters)
 
virtual PROUD_API bool BeforeDeserialize (HostID remote, RmiContext &rmiContext, CMessage &message)
 
PROUD_API void ShowUnknownHostIDWarning (HostID remoteHostID)
 

Public Attributes

IRmiHostm_core
 
bool m_internalUse
 
bool m_enableNotifyCallFromStub
 
bool m_enableStubProfiling
 

Detailed Description

Base class of Stub class created by PIDL compiler

Note

  • User must not create this class. Must be realized by PIDL compiler.

Member Function Documentation

virtual PROUD_API void Proud::IRmiStub::AfterRmiInvocation ( const AfterRmiSummary summary)
virtual

Called right after RMI is run In AfterRmiInvocation.m_rmiName's case, a character string appears after you define USE_RMI_NAME_STRING.

virtual PROUD_API bool Proud::IRmiStub::BeforeDeserialize ( HostID  remote,
RmiContext rmiContext,
CMessage message 
)
virtual
RMI stub에서, 수신된 데이터를 deserialize를 하기 전에 호출됩니다.

여러분은 여기서 받은 데이터와 RMI ID를 미리 열람하실 수 있습니다. 이 함수는 기본적으로 true를 리턴합니다. 만약 여러분이 이 함수를 오버라이드해서 false를 리턴하게 하면 해당 RMI 함수는 호출되지 않을 것입니다.

Parameters
remote송신자
rmiContext수신한 추가 정보
messagedeserialize되기 직전의, 받은 데이터
virtual PROUD_API void Proud::IRmiStub::BeforeRmiInvocation ( const BeforeRmiSummary summary)
virtual

Called right after RMI is run In BeforeRmiSummary.m_rmiName's case, a character string appears after you define USE_RMI_NAME_STRING.

virtual RmiID* Proud::IRmiStub::GetRmiIDList ( )
pure virtual

DO NOT realize this function. The outcome of PIDL compiler will override.

virtual int Proud::IRmiStub::GetRmiIDListCount ( )
pure virtual

DO NOT realize this function. The outcome of PIDL compiler will override.

virtual PROUD_API void Proud::IRmiStub::NotifyCallFromStub ( HostID  remote,
RmiID  RMIId,
String  methodName,
String  parameters 
)
virtual

If user override this function then it lets parameter received from RMI be displayed as text string. But in return, process speed will be lowered significantly so be careful when you use this.

virtual bool Proud::IRmiStub::ProcessReceivedMessage ( CReceivedMessage pa,
void *  hostTag 
)
pure virtual

DO NOT realize this function. The outcome of PIDL compiler will override.

Member Data Documentation

bool Proud::IRmiStub::m_enableNotifyCallFromStub

If set as true then calls NotifyCallFromStub. But in return, process speed will be lowered significantly. It is recommended to use this when debugging.

bool Proud::IRmiStub::m_enableStubProfiling

If set as true then BeforeRmiInvocation and AfterRmiInvocation are called back. But in return, process speed will be lowered a little. It is recommended to use this when checking running time of RMI function of each type.