Package org.acplt.oncrpc
Class OncRpcBroadcastEvent
java.lang.Object
java.util.EventObject
org.acplt.oncrpc.OncRpcBroadcastEvent
- All Implemented Interfaces:
Serializable
The class
OncRpcBroadcastEvent
defines an event fired by
ONC/RPC UDP/IP-based clients
whenever replies
to a
broadcast call
are received.- Version:
- $Revision: 1.3 $ $Date: 2005/11/11 21:19:20 $ $State: Exp $ $Locker: $
- Author:
- Harald Albrecht
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate XdrAble
Contains the parameters sent in the ONC/RPC broadcast call.private int
Contains the number of the remote procedure called.private XdrAble
Contains the reply from a remote ONC/RPC server, which answered the broadcast call.private InetAddress
Contains the address of the sender of the ONC/RPC reply message.private static final long
Defines the serial version UID forOncRpcBroadcastEvent
.Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorsConstructorDescriptionOncRpcBroadcastEvent
(OncRpcUdpClient source, InetAddress replyAddress, int procedureNumber, XdrAble params, XdrAble reply) Creates a newKscPackageUpdateEvent
object and initializes its state. -
Method Summary
Modifier and TypeMethodDescriptionReturns the parameter message sent in a broadcast RPC.int
Returns the number of the remote procedure called.getReply()
Returns ONC/RPC reply message.Returns the address of the sender of the ONC/RPC reply message.Methods inherited from class java.util.EventObject
getSource, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDDefines the serial version UID forOncRpcBroadcastEvent
.- See Also:
-
replyAddress
Contains the address of the sender of the ONC/RPC reply message. -
procedureNumber
private int procedureNumberContains the number of the remote procedure called. -
params
Contains the parameters sent in the ONC/RPC broadcast call. -
reply
Contains the reply from a remote ONC/RPC server, which answered the broadcast call.
-
-
Constructor Details
-
OncRpcBroadcastEvent
public OncRpcBroadcastEvent(OncRpcUdpClient source, InetAddress replyAddress, int procedureNumber, XdrAble params, XdrAble reply) Creates a newKscPackageUpdateEvent
object and initializes its state.- Parameters:
source
- TheONC/RPC client object
which 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 Details
-
getReplyAddress
Returns the address of the sender of the ONC/RPC reply message.- Returns:
- address of sender of reply.
-
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
Returns the parameter message sent in a broadcast RPC.- Returns:
- parameter message object.
-