com.sun.jini.mercury
Class RemoteEventData

java.lang.Object
  extended by com.sun.jini.mercury.RemoteEventData
All Implemented Interfaces:
Serializable

 class RemoteEventData
extends Object
implements Serializable

Simple struct to hold a RemoteEvent and its associated Object (cookie) obtained from an EventLog.


Field Summary
private  Object cookie
          Cookie associated with the RemoteEvent
private  boolean integrity
          true if the last time this object was unmarshalled integrity was being enforced, false otherwise.
private  MarshalledInstance mi
          MarshalledObject that holds desired RemoteEvent.
private static long serialVersionUID
           
 
Constructor Summary
RemoteEventData(RemoteEvent re, Object cookie)
          Creates a new RemoteEventData instance.
 
Method Summary
 Object getCookie()
           
 RemoteEvent getRemoteEvent()
           
private  void readObject(ObjectInputStream in)
          Use readObject method to capture whether or not integrity was being enforced when this object was unmarshalled, and to perform basic integrity checks.
private  void readObjectNoData()
          We should always have data in the stream, if this method gets called there is something wrong.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

mi

private MarshalledInstance mi
MarshalledObject that holds desired RemoteEvent. Wrapping the remote event permits deserialization to occur on demand on the client-side.


cookie

private final Object cookie
Cookie associated with the RemoteEvent


integrity

private transient boolean integrity
true if the last time this object was unmarshalled integrity was being enforced, false otherwise.

Constructor Detail

RemoteEventData

RemoteEventData(RemoteEvent re,
                Object cookie)
Creates a new RemoteEventData instance.

Parameters:
re - value of re field.
cookie - value of cookie field.
Method Detail

getRemoteEvent

public RemoteEvent getRemoteEvent()
                           throws ClassNotFoundException
Throws:
ClassNotFoundException

getCookie

public Object getCookie()

readObject

private void readObject(ObjectInputStream in)
                 throws IOException,
                        ClassNotFoundException
Use readObject method to capture whether or not integrity was being enforced when this object was unmarshalled, and to perform basic integrity checks.

Throws:
IOException
ClassNotFoundException

readObjectNoData

private void readObjectNoData()
                       throws InvalidObjectException
We should always have data in the stream, if this method gets called there is something wrong.

Throws:
InvalidObjectException


Copyright 2007-2010, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.