static final class SetProxy.ConstrainableSetProxy extends SetProxy implements RemoteMethodControl
SetProxy.ConstrainableSetProxy
Modifier and Type | Field and Description |
---|---|
private MethodConstraints |
methodConstraints
The client constraints placed on this proxy or
null . |
private static Method[] |
methodMap1
Mappings from client to server methods, using the client method with
more arguments for each server method when more than one client
method maps to a single server method.
|
private static Method[] |
methodMap2
Second set of mappings from client to server method names, for
server methods with a second associated client method.
|
private static long |
serialVersionUID |
private NormServer |
server2
A second inner proxy to use when the client constraints for
different smart proxy methods implemented by the same inner proxy
methods have different constraints.
|
server, uuid
EXPIRATION_WARNING_EVENT_ID, RENEWAL_FAILURE_EVENT_ID
Constructor and Description |
---|
SetProxy.ConstrainableSetProxy(NormServer server,
Uuid id,
Lease lease,
MethodConstraints methodConstraints)
Creates an instance of this class.
|
Modifier and Type | Method and Description |
---|---|
private static NormServer |
constrainServer(NormServer server,
MethodConstraints methodConstraints,
Method[] mappings)
Returns a copy of the server proxy with the specified client
constraints and methods mapping.
|
MethodConstraints |
getConstraints()
inherit javadoc
|
private ProxyTrustIterator |
getProxyTrustIterator()
Returns a proxy trust iterator that supplies the server, for use by
ProxyTrustVerifier.
|
private void |
readObject(ObjectInputStream s)
Verifies that ourLease is a ConstrainableLandlordLease, and that
server implements RemoteMethodControl and has the appropriate method
constraints.
|
(package private) NormServer |
server2()
Returns the second server proxy.
|
RemoteMethodControl |
setConstraints(MethodConstraints constraints)
inherit javadoc
|
clearExpirationWarningListener, clearRenewalFailureListener, create, getLeases, getRenewalSetLease, remove, renewFor, renewFor, setExpirationWarningListener, setRenewalFailureListener
equals, getReferentUuid, hashCode
private static final long serialVersionUID
private static final Method[] methodMap1
private static final Method[] methodMap2
private MethodConstraints methodConstraints
null
.private transient NormServer server2
SetProxy.ConstrainableSetProxy(NormServer server, Uuid id, Lease lease, MethodConstraints methodConstraints)
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private static NormServer constrainServer(NormServer server, MethodConstraints methodConstraints, Method[] mappings)
public RemoteMethodControl setConstraints(MethodConstraints constraints)
setConstraints
in interface RemoteMethodControl
constraints
- client constraints, or null
RemoteMethodControl.getConstraints()
public MethodConstraints getConstraints()
getConstraints
in interface RemoteMethodControl
null
RemoteMethodControl.setConstraints(net.jini.core.constraint.MethodConstraints)
NormServer server2()
private ProxyTrustIterator getProxyTrustIterator()
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.