Serialized Form
Package com.sun.jini.lease |
readObject
private void readObject(java.io.ObjectInputStream stream)
throws java.io.IOException,
java.lang.ClassNotFoundException
- If serialFormat is DURATION, add the current time to the expiration,
to make it absolute (and if the result of the addition is negative,
correct the overflow by resetting the expiration to Long.MAX_VALUE).
writeObject
private void writeObject(java.io.ObjectOutputStream stream)
throws java.io.IOException
- Serial Data:
- a long, which is the absolute expiration if serialFormat
is ABSOLUTE, or the relative duration if serialFormat is DURATION
serialFormat
int serialFormat
- Serialization format for the expiration.
map
java.util.Map map
- Map from Lease to Long(duration), where all leases have the same
destination.
ex
java.lang.Exception ex
- Deprecated.
- The exception that caused the failure, if any.
expiration
long expiration
- Deprecated.
- The desired expiration of the failed lease.
lease
Lease lease
- Deprecated.
- The failed lease.
Package com.sun.jini.lease.landlord |
denied
java.lang.Exception[] denied
- The
i
th -1 in granted
was denied because of denied[i]
. If nothing was denied,
this field is null
.
granted
long[] granted
- For each cookie passed to
renewAll
,
granted[i]
is the granted lease time, or -1 if the
renewal for that least generated an exception. If there was
an exception, the exception is held in denied
.
- See Also:
Landlord.RenewResults.denied
cookie
java.lang.Object cookie
- Object passed to
landlord
when renewal and cancel
calls are make on this lease. Should uniquely identify the lease.
landlord
Landlord landlord
- Owner of the resource associated with this lease.
landlord
Landlord landlord
- The landlord which this map will talk to.
Package com.sun.jini.lookup.entry |
type
java.lang.String type
- The type of service.
Package net.jini.core.discovery |
host
java.lang.String host
- The name of the host at which to perform discovery.
port
int port
- The port number on the host at which to perform discovery.
Package net.jini.core.entry |
nestedExceptions
java.lang.Throwable[] nestedExceptions
- The exception that caused the failure for the corresponding
field named in unusableFields. If the entry was entirely
unusable,
nestedExceptions
will be an array with
the one exception that prevented its use.
partialEntry
Entry partialEntry
- The partial entry. Fields that could not be deserialized
will be
null
.
unusableFields
java.lang.String[] unusableFields
- The names of the unusable fields. If the entry was entirely
unusable,
unusableFields
will be null
.
Package net.jini.core.event |
eventID
long eventID
- The event identifier.
lease
Lease lease
- The registration lease.
seqNum
long seqNum
- The current sequence number.
source
java.lang.Object source
- The event source.
readObject
private void readObject(java.io.ObjectInputStream stream)
throws java.io.IOException,
java.lang.ClassNotFoundException
- Serialization support
eventID
long eventID
- The event identifier.
handback
java.rmi.MarshalledObject handback
- The handback object.
seqNum
long seqNum
- The event sequence number.
source
java.lang.Object source
- The event source.
Package net.jini.core.lease |
exceptionMap
java.util.Map exceptionMap
- A Map from Lease to Exception, containing each lease that failed to
renew or cancel, and the exception that resulted from that lease's
renewal or cancel attempt.
Package net.jini.core.lookup |
serviceID
ServiceID serviceID
- ServiceID of the item that triggered the event.
transition
int transition
- One of ServiceRegistrar.TRANSITION_*MATCH_*MATCH
leastSig
long leastSig
- The least significant 64 bits.
mostSig
long mostSig
- The most significant 64 bits.
attributeSets
Entry[] attributeSets
- Attribute sets
service
java.lang.Object service
- A service object
serviceID
ServiceID serviceID
- A service ID, or null if registering for the first time
items
ServiceItem[] items
- Matching items (up to maxMatches from lookup method)
totalMatches
int totalMatches
- Total number of matching items
attributeSetTemplates
Entry[] attributeSetTemplates
- Attribute set templates to match, or null
serviceID
ServiceID serviceID
- Service ID to match, or null
serviceTypes
java.lang.Class[] serviceTypes
- Service types to match, or null
Package net.jini.core.transaction |
lease
Lease lease
- The lease.
transaction
NestableTransaction transaction
- The transaction.
committed
boolean committed
- True if the transaction committed before the timeout.
lease
Lease lease
- The lease.
transaction
Transaction transaction
- The transaction.
Package net.jini.core.transaction.server |
parent
NestableServerTransaction parent
- The parent transaction, if any.
id
long id
- The transaction id.
mgr
TransactionManager mgr
- The transaction manager.
id
long id
- The transaction id.
lease
Lease lease
- The lease.
Package net.jini.discovery |
regs
ServiceRegistrar[] regs
- The registrars with which this event is associated.
exceptions
java.lang.Throwable[] exceptions
- Array containing the set of exceptions that occurred during the
unmarshalling process. Each element in this set should be
an instance of IOException, ClassNotFoundException, or some
unchecked exception. Furthermore, there should be a one-to-one
correspondence between each element in this set and each element
in the set of still-to-be-unmarshalled ServiceRegistrar instances.
That is, the element of this set corresponding to index i should
be an instance of the exception that occurred while attempting to
unmarshal the element at index i of stillMarshalledRegs.
stillMarshalledRegs
java.rmi.MarshalledObject[] stillMarshalledRegs
- Array containing the set of ServiceRegistrar instances that could not
be unmarshalled. This set should contain at least one element.
unmarshalledRegs
ServiceRegistrar[] unmarshalledRegs
- Array containing the set of instances of ServiceRegistrar that were
successfully unmarshalled during the process in which at least one
failure occurred.
discarded
boolean discarded
- Flag indicating whether the event is a discovery event or a discard
event. If this variable is true, then the lookup services referenced
by the event were just discovered; if false, then those lookup
services were just discarded.
marshalledRegs
java.util.ArrayList marshalledRegs
- Set consisting of marshalled proxy objects where each proxy
implements the ServiceRegistrar interface, and each is a proxy
of one of the recently discovered or discarded lookup service(s);
the lookup service(s) to which the event is associated.
The proxies are marshalled in order to add an additional 'layer' of
serialization. Doing so has the following benefit: if not all
of the elements can be deserialized on the client side (or by a
third party, if the client requests that events be sent to a third
party such as a mailbox), then an IOException will be propagated
by the readObject method, and all of the elements (even those that
could be successfully deserialized) will be unavailable to the client.
regs
ServiceRegistrar[] regs
- Array containing a subset of the proxy objects of the lookup
service(s) to which this event is associated. The elements of this
array correspond to those elements of the marshalledRegs array that
were successfully un-marshalled (at least once) as a result of one or
more invocations of the getRegistrars method of this class. The array
returned in this event is empty, but of the same size as marshalledRegs,
and will be populated when the recipient of this event retrieves the
registrars corresponding to the elements of marshalledRegs.
lease
Lease lease
- Lease which is about to expire
ex
java.lang.Exception ex
- The exception that caused the failure, if any.
expiration
long expiration
- The desired expiration of the failed lease.
lease
Lease lease
- The failed lease.
marshaledLease
java.rmi.MarshalledObject marshaledLease
- Lease, in marshaled form, returned by
getLease
method.
throwable
java.lang.Throwable throwable
- Throwable returned by
getThrowable
method.
postEventItem
ServiceItem postEventItem
preEventItem
ServiceItem preEventItem
Package net.jini.lookup.entry |
country
java.lang.String country
- Country name.
locality
java.lang.String locality
- City or locality name. For example, "Palo Alto".
organization
java.lang.String organization
- Name of the company or organization that provides this service.
For example, "Sun Microsystems".
organizationalUnit
java.lang.String organizationalUnit
- The unit within the organization that provides this service.
For example, "Information Services".
postalCode
java.lang.String postalCode
- Postal code. For example, in the United States, this is a ZIP
code; in Ireland, it might be either empty or a postal district
of Dublin.
stateOrProvince
java.lang.String stateOrProvince
- Full name or standard postal abbreviation of a state or
province. For example, "CA" (for California).
street
java.lang.String street
- Street address. For example, "901 San Antonio Road".
assoc
Address assoc
- The Address object associated with this JavaBeans component.
comment
java.lang.String comment
- The comment itself.
assoc
Comment assoc
- The Entry object associated with this JavaBeans component.
building
java.lang.String building
- A building name or code. For example, "SUN04".
floor
java.lang.String floor
- A floor designation. For example, "2".
room
java.lang.String room
- A room or cube number. For example, "B250".
assoc
Location assoc
- The Location object associated with this JavaBeans component.
name
java.lang.String name
- The name itself.
assoc
Name assoc
- The Name object associated with this JavaBeans component.
manufacturer
java.lang.String manufacturer
- The name of the manufacturer or author of this service. For
example, "Sun Microsystems".
model
java.lang.String model
- The model name or number of this service, if any.
name
java.lang.String name
- The name of the product or package of which this service is an
instance. This field should not include the name of the
manufacturer or vendor.
serialNumber
java.lang.String serialNumber
- The serial number of this instance of the service, if any.
vendor
java.lang.String vendor
- The name of the vendor of this service. This may have the same
value as the manufacturer field, or it may be different.
version
java.lang.String version
- The version of this service. This is a free-form field, but
should follow accepted version-naming conventions to make
visual identification easier.
assoc
ServiceInfo assoc
- The ServiceInfo object associated with this JavaBeans component.
severity
StatusType severity
- The severity level of this status object.
assoc
Status assoc
- The Status object associated with this JavaBeans component.
type
int type
nestedException
java.lang.Throwable nestedException
- The exception (if any) that trigged the internal exception. This
may be
null
.
Copyright © 1999 Sun Microsystems, Inc. All rights reserved