Package org.acplt.oncrpc
Class OncRpcBroadcastEvent
- java.lang.Object
-
- java.util.EventObject
-
- org.acplt.oncrpc.OncRpcBroadcastEvent
-
- All Implemented Interfaces:
java.io.Serializable
public class OncRpcBroadcastEvent extends java.util.EventObjectThe classOncRpcBroadcastEventdefines an event fired byONC/RPC UDP/IP-based clientswhenever replies to abroadcast callare received.- Version:
- $Revision: 1.3 $ $Date: 2005/11/11 21:19:20 $ $State: Exp $ $Locker: $
- Author:
- Harald Albrecht
- See Also:
OncRpcBroadcastListener,OncRpcBroadcastAdapter,OncRpcUdpClient, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private XdrAbleparamsContains the parameters sent in the ONC/RPC broadcast call.private intprocedureNumberContains the number of the remote procedure called.private XdrAblereplyContains the reply from a remote ONC/RPC server, which answered the broadcast call.private java.net.InetAddressreplyAddressContains the address of the sender of the ONC/RPC reply message.private static longserialVersionUIDDefines the serial version UID forOncRpcBroadcastEvent.
-
Constructor Summary
Constructors Constructor Description OncRpcBroadcastEvent(OncRpcUdpClient source, java.net.InetAddress replyAddress, int procedureNumber, XdrAble params, XdrAble reply)Creates a newKscPackageUpdateEventobject and initializes its state.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description XdrAblegetParams()Returns the parameter message sent in a broadcast RPC.intgetProcedureNumber()Returns the number of the remote procedure called.XdrAblegetReply()Returns ONC/RPC reply message.java.net.InetAddressgetReplyAddress()Returns the address of the sender of the ONC/RPC reply message.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
Defines the serial version UID forOncRpcBroadcastEvent.- See Also:
- Constant Field Values
-
replyAddress
private java.net.InetAddress replyAddress
Contains the address of the sender of the ONC/RPC reply message.
-
procedureNumber
private int procedureNumber
Contains the number of the remote procedure called.
-
params
private XdrAble params
Contains the parameters sent in the ONC/RPC broadcast call.
-
reply
private XdrAble reply
Contains the reply from a remote ONC/RPC server, which answered the broadcast call.
-
-
Constructor Detail
-
OncRpcBroadcastEvent
public OncRpcBroadcastEvent(OncRpcUdpClient source, java.net.InetAddress replyAddress, int procedureNumber, XdrAble params, XdrAble reply)
Creates a newKscPackageUpdateEventobject and initializes its state.- Parameters:
source- TheONC/RPC client objectwhich has fired this event.replyAddress- Internetaddress of reply's origin.procedureNumber- Procedure number of ONC/RPC call.params- The ONC/RPC call resulting in this reply.reply- The ONC/RPC reply itself.
-
-
Method Detail
-
getReplyAddress
public java.net.InetAddress getReplyAddress()
Returns the address of the sender of the ONC/RPC reply message.- Returns:
- address of sender of reply.
-
getReply
public XdrAble getReply()
Returns ONC/RPC reply message.- Returns:
- reply message object.
-
getProcedureNumber
public int getProcedureNumber()
Returns the number of the remote procedure called.- Returns:
- procedure number.
-
getParams
public XdrAble getParams()
Returns the parameter message sent in a broadcast RPC.- Returns:
- parameter message object.
-
-