|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.jini.norm.AbstractProxy
com.sun.jini.norm.SetProxy
com.sun.jini.norm.SetProxy.ConstrainableSetProxy
static final class SetProxy.ConstrainableSetProxy
Defines a subclass of SetProxy that implements RemoteMethodControl.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.sun.jini.norm.SetProxy |
---|
SetProxy.ConstrainableSetProxy |
Field Summary | |
---|---|
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. |
Fields inherited from class com.sun.jini.norm.SetProxy |
---|
ourLease |
Fields inherited from class com.sun.jini.norm.AbstractProxy |
---|
server, uuid |
Fields inherited from interface net.jini.lease.LeaseRenewalSet |
---|
EXPIRATION_WARNING_EVENT_ID, RENEWAL_FAILURE_EVENT_ID |
Constructor Summary | |
---|---|
SetProxy.ConstrainableSetProxy(NormServer server,
Uuid id,
Lease lease,
MethodConstraints methodConstraints)
Creates an instance of this class. |
Method Summary | |
---|---|
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 |
Methods inherited from class com.sun.jini.norm.SetProxy |
---|
clearExpirationWarningListener, clearRenewalFailureListener, create, getLeases, getRenewalSetLease, remove, renewFor, renewFor, setExpirationWarningListener, setRenewalFailureListener |
Methods inherited from class com.sun.jini.norm.AbstractProxy |
---|
equals, getReferentUuid, hashCode |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
private static final Method[] methodMap1
private static final Method[] methodMap2
private MethodConstraints methodConstraints
null
.
private transient NormServer server2
Constructor Detail |
---|
SetProxy.ConstrainableSetProxy(NormServer server, Uuid id, Lease lease, MethodConstraints methodConstraints)
Method Detail |
---|
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()
server2
in class SetProxy
private ProxyTrustIterator getProxyTrustIterator()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |