com.reuters.rc.db.adb
Class AdbMInstPubMsg

java.lang.Object
  |
  +--com.reuters.rc.db.adb.AdbMInstPubMsg
All Implemented Interfaces:
DbPubMsg

public class AdbMInstPubMsg
extends java.lang.Object
implements DbPubMsg

This class represents a MInstance message published by an ADB agent. It provides static methods to extract the data from the MInstance message.

Author:
Jawaid Hakim.

Constructor Summary
AdbMInstPubMsg(com.tibco.tibrv.TibrvMsg pubMsg)
          Constructor.
 
Method Summary
 DbPubMsgData getData()
          Get the published data.
static AdbMInstPubMsgData getData(com.tibco.tibrv.TibrvMsg rvMsg)
          Get the published data.
 java.lang.Integer getMsgPfmt()
          Get the message pfmt.
static java.lang.Integer getMsgPfmt(com.tibco.tibrv.TibrvMsg rvMsg)
          Get the message pfmt.
 java.lang.Integer getMsgType()
          Get the message type.
static java.lang.Integer getMsgType(com.tibco.tibrv.TibrvMsg rvMsg)
          Get the message type.
 java.lang.Integer getMsgVersion()
          Get the message version.
 java.lang.Integer getMsgVersion(com.tibco.tibrv.TibrvMsg rvMsg)
          Get the message version.
 boolean isValid()
          Check if the object contains a valid result set.
 java.lang.String toString()
          Override.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AdbMInstPubMsg

public AdbMInstPubMsg(com.tibco.tibrv.TibrvMsg pubMsg)
Constructor.
Parameters:
pubMsg - Message published by ADB.
Method Detail

isValid

public final boolean isValid()
Check if the object contains a valid result set.
Specified by:
isValid in interface DbPubMsg
Returns:
true if the object contains a valid result set. Returns false if the object does not contain a valid result set.
See Also:
#getStatus()

getMsgType

public final java.lang.Integer getMsgType()
                                   throws AdbSystemException
Get the message type.
Returns:
Message type.

getMsgType

public static java.lang.Integer getMsgType(com.tibco.tibrv.TibrvMsg rvMsg)
                                    throws AdbSystemException
Get the message type.
Parameters:
rvMsg - TibrvMsg published by ADB.
Returns:
Message type.

getMsgPfmt

public final java.lang.Integer getMsgPfmt()
                                   throws AdbSystemException
Get the message pfmt.
Returns:
Message pfmt.

getMsgPfmt

public static java.lang.Integer getMsgPfmt(com.tibco.tibrv.TibrvMsg rvMsg)
                                    throws AdbSystemException
Get the message pfmt.
Parameters:
rvMsg - TibrvMsg published by ADB.
Returns:
Message pfmt.

getMsgVersion

public final java.lang.Integer getMsgVersion()
                                      throws AdbSystemException
Get the message version.
Returns:
Message version.

getMsgVersion

public final java.lang.Integer getMsgVersion(com.tibco.tibrv.TibrvMsg rvMsg)
                                      throws AdbSystemException
Get the message version.
Parameters:
rvMsg - TibrvMsg published by ADB.
Returns:
Message version.

getData

public final DbPubMsgData getData()
                           throws AdbSystemException
Get the published data.
Specified by:
getData in interface DbPubMsg
See Also:
AdbMInstPubMsgData

getData

public static AdbMInstPubMsgData getData(com.tibco.tibrv.TibrvMsg rvMsg)
                                  throws AdbSystemException
Get the published data.
Parameters:
rvMsg - TibrvMsg published by ADB.
See Also:
AdbMInstPubMsgData

toString

public java.lang.String toString()
Override.
Overrides:
toString in class java.lang.Object


Copyright © 2002-2003 Reuters. All Rights Reserved.