interface NormServer extends Landlord, LeaseRenewalService, Administrable, JoinAdmin, DestroyAdmin, ServiceProxyAccessor, Remote
Landlord.RenewResults| Modifier and Type | Field and Description |
|---|---|
static long |
NO_LISTENER
If calling
setExpirationWarningListener with a
null listener, this is the value that should be passed. |
| Modifier and Type | Method and Description |
|---|---|
GetLeasesResult |
getLeases(Uuid id)
Return all the leases in the set.
|
Lease |
remove(Uuid id,
Lease leaseToRemove)
Remove a lease from a set.
|
void |
renewFor(Uuid id,
Lease leaseToRenew,
long membershipDuration,
long renewDuration)
Add a lease to a set.
|
EventRegistration |
setExpirationWarningListener(Uuid id,
RemoteEventListener listener,
long minWarning,
MarshalledObject handback)
Set the expiration warning listener for a set.
|
EventRegistration |
setRenewalFailureListener(Uuid id,
RemoteEventListener listener,
MarshalledObject handback)
Set the renewal failure listener for a set.
|
cancel, cancelAll, renew, renewAllcreateLeaseRenewalSetgetAdminaddLookupAttributes, addLookupGroups, addLookupLocators, getLookupAttributes, getLookupGroups, getLookupLocators, modifyLookupAttributes, removeLookupGroups, removeLookupLocators, setLookupGroups, setLookupLocatorsdestroygetServiceProxystatic final long NO_LISTENER
setExpirationWarningListener with a
null listener, this is the value that should be passed.void renewFor(Uuid id, Lease leaseToRenew, long membershipDuration, long renewDuration) throws RemoteException, ThrowThis
id - what set the lease should be added toleaseToRenew - the lease to be added to the setmembershipDuration - how long the lease should be in the setrenewDuration - how long the lease should be renewed for
each time it is renewedThrowThis - when another exception has to be thrown by the proxyRemoteException - if a communication-related exception occursLease remove(Uuid id, Lease leaseToRemove) throws RemoteException, ThrowThis
id - of set being operated onleaseToRemove - the lease to be removed from the setThrowThis - when another exception has to be thrown by the proxyRemoteException - if a communication-related exception occursGetLeasesResult getLeases(Uuid id) throws RemoteException, ThrowThis
null
or a zero-length array if there are no leases in the set.id - of set being operated onMarshalledInstances,
one for each leaseThrowThis - when another exception has to be thrown by the proxyRemoteException - if a communication-related exception occursEventRegistration setExpirationWarningListener(Uuid id, RemoteEventListener listener, long minWarning, MarshalledObject handback) throws RemoteException, ThrowThis
id - of set being operated onlistener - listener to be notified when this event occurs.
Pass null to clear the registration.minWarning - how long be for the lease on the set expires
should the event be sent. Ignored if listener
is null.handback - an object to be handed back to the listener when
the warning event occurs. Ignored if listener
is null.EventRegistration object for the new
registration if listener is
non-null and null otherwiseThrowThis - when another exception has to be thrown by the proxyRemoteException - if a communication-related exception occursEventRegistration setRenewalFailureListener(Uuid id, RemoteEventListener listener, MarshalledObject handback) throws RemoteException, ThrowThis
id - of set being operated onlistener - listener to be notified when this event occurs.
Pass null to clear the registration.handback - an object to be handed back to the listener when
the failure event occurs. Ignored if
listener is null.EventRegistration object for the new
registration if listener is
non-null and null otherwise.ThrowThis - when another exception has to be thrown by the proxyRemoteException - if a communication-related exception occursCopyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.