Codemesh Runtime v3 C++ API Reference
3.9.205
|
Go to the documentation of this file.
18 #ifndef xmog_request_inc
19 #define xmog_request_inc
21 class ACE_Message_Block;
22 #include "ace/Basic_Types.h"
23 #include "ace/Future.h"
24 #include "ace/Method_Request.h"
25 #include "ace/Time_Value.h"
28 #include "xmog_JavaVM.h"
29 #include "xmog_JNIEnv.h"
54 enum { INIT_BLOCK_SIZE = 4096 };
80 ACE_Future<xmog_reply*> &
reply (
void);
90 ACE_Message_Block *
block (
void)
const;
102 void expires (
const ACE_Time_Value &expiration);
110 bool expired (
const ACE_Time_Value &now)
const;
182 int writeDataCode( xmog::xmog_data_code code,
int align = 4 );
184 int writeDataBoolean(
bool b );
186 int writeDataByte( jbyte b );
188 int writeDataChar( jchar ch );
190 int writeDataDouble( jdouble d );
192 int writeDataFloat( jfloat f );
194 int writeDataInt( jint i );
196 int writeDataLong( jlong l );
198 int writeDataShort( jshort s );
200 int writeDataNull(
int align );
242 int writeString(
const char * str,
size_t len = (
size_t)-1 );
255 int writeString(
const XMOG_WCHAR * str,
size_t len = (
size_t)-1 );
269 int writeUTF(
const char * utf,
size_t len = (
size_t)-1 );
282 const void *originator_;
286 ACE_Message_Block *block_;
290 ACE_Time_Value expires_;
291 ACE_Future<xmog_reply*> reply_;
292 bool reply_expected_;
303 int add_args (
const void *jvm_p,
306 int primArrayCopyLimit,
308 bool sendStringOnFirstRef,
309 bool alignDataForClient,
310 const char *clientSignOnNameUTF,
311 const char *clientCredentialsUTF,
312 const char *clientDisplayNameUTF,
313 const char *serverAppNameUTF);
322 int add_args (
int fake_thread_id,
323 const JavaVMAttachArgs *args,
333 int add_args (
int threadId,
const char *threadName = 0);
349 int add_args (
int threadID,
int classID,
const char *className,
int numMembers = 0, ... );
358 int add_args (
int threadID,
int classID );
367 int add_args(
int threadID,
int numRefs, jint * pIdsCounts );
369 int add_args(
int threadID, jint
id, jint count );
378 int add_args (
int threadID,
381 bool bLimitReturnValueCopying =
true,
391 int add_args (
int threadID,
405 pDataLengthOffset( 0 ),
406 pNumArgumentsOffset( 0 ),
409 int add_args (
int threadID,
413 bool bLimitReturnValueCopying,
420 jint pDataLengthOffset;
421 jint pNumArgumentsOffset;
431 pDataLengthOffset( 0 ),
432 pNumArgumentsOffset( 0 ),
435 int add_args (
int threadID,
444 jint pDataLengthOffset;
445 jint pNumArgumentsOffset;
int writeEncodedDataString(xmog_remote_java_value &data)
Appends an encoded string to the message.
const void * originator(void) const
Definition: xmog_request.h:425
int writeDataStringUtf(const char *str, size_t len=(size_t) -1)
Appends a UTF-8 encoded string to the message.
int writeFloat(jfloat d)
Appends a jfloat to the message.
int writeLong(jlong l)
Appends a 64-bit integer to the message.
Represents a request communicated between client and server.
Definition: xmog_request.h:50
void complete(xmog_reply *reply)
bool reply_expected(void) const
ACE_Message_Block * block(void) const
xmog_request(xmog::xmog_message_id reqtype, const void *orig=0, bool reply_expected=true)
A helper type used to convey remote Java arguments around.
Definition: xmog_java_value.h:20
Definition: xmog_request.h:316
Definition: xmog_request.h:372
Definition: xmog_request.h:385
int writeString(const char *str, size_t len=(size_t) -1)
Appends a platform string to the message.
int writeUTF(const char *utf, size_t len=(size_t) -1)
Appends a UTF string to the message.
Definition: xmog_request.h:336
xmog_message_id
The message types that are used in the framework.
Definition: xmog_message_types.h:26
void expires(const ACE_Time_Value &expiration)
Definition: xmog_request.h:343
int writeShort(jshort s)
Appends a 16bit integer to the message.
Definition: xmog_request.h:352
The baseclass for all proxy types in the framework.
Definition: xmog_base.h:29
int writeBoolean(bool b)
Appends a bool to the message.
Definition: xmog_request.h:327
Definition: xmog_request.h:399
int writeDataStringUtf16(const unsigned short *str, size_t len=(size_t) -1)
Appends a UTF-16 encoded string to the message.
A class representing per-thread information for the integration runtime.
Definition: xmog_localenv.h:32
int writeInt(jint i)
Appends a 32bit integer to the message.
int writeDataCode(xmog::xmog_data_code code, int align=4)
Appends a data code with optional padding.
int writeByte(jbyte b)
Appends a byte to the message.
Definition: xmog_reply.h:31
ACE_Future< xmog_reply * > & reply(void)
bool expired(const ACE_Time_Value &now) const
An abstract baseclass for concrete JNIEnv implementations.
Definition: xmog_JNIEnv.h:26
int writeChar(jchar c)
Appends a jchar to the message.
Definition: xmog_request.h:298
Definition: xmog_request.h:361
int writeParameter(const xmog_remote_java_value &val, int align, int &cbAdded)
Writes a parameter to the message.
int writeDouble(jdouble d)
Appends a jdouble to the message.
Copyright (c) 1999-2020 by Codemesh, Inc., ALL RIGHTS RESERVED.