com.sun.jini.mahalo
Class TxnMgrAdminProxy.ConstrainableTxnMgrAdminProxy
java.lang.Object
com.sun.jini.mahalo.TxnMgrAdminProxy
com.sun.jini.mahalo.TxnMgrAdminProxy.ConstrainableTxnMgrAdminProxy
- All Implemented Interfaces:
- DestroyAdmin, Serializable, JoinAdmin, RemoteMethodControl, ReferentUuid
- Enclosing class:
- TxnMgrAdminProxy
static final class TxnMgrAdminProxy.ConstrainableTxnMgrAdminProxy
- extends TxnMgrAdminProxy
- implements RemoteMethodControl
Method Summary |
private static TxnManager |
constrainServer(TxnManager server,
MethodConstraints constraints)
Returns a copy of the given server proxy having the client method
constraints that result after the specified method mapping is
applied to the given client method constraints. |
MethodConstraints |
getConstraints()
Returns the client constraints placed on the current instance
of this proxy class (ConstrainableTxnMgrAdminProxy ). |
private ProxyTrustIterator |
getProxyTrustIterator()
Returns a proxy trust iterator that is used in
ProxyTrustVerifier to retrieve this object's
trust verifier. |
private void |
readObject(ObjectInputStream s)
Performs various functions related to the trust verification
process for the current instance of this proxy class, as
detailed in the description for this class. |
RemoteMethodControl |
setConstraints(MethodConstraints constraints)
Returns a new copy of this proxy class
(ConstrainableTxnMgrAdminProxy ) with its client
constraints set to the specified constraints. |
Methods inherited from class com.sun.jini.mahalo.TxnMgrAdminProxy |
addLookupAttributes, addLookupGroups, addLookupLocators, create, destroy, equals, getLookupAttributes, getLookupGroups, getLookupLocators, getReferentUuid, hashCode, modifyLookupAttributes, removeLookupGroups, removeLookupLocators, setLookupGroups, setLookupLocators |
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
TxnMgrAdminProxy.ConstrainableTxnMgrAdminProxy
private TxnMgrAdminProxy.ConstrainableTxnMgrAdminProxy(TxnManager server,
Uuid proxyID,
MethodConstraints methodConstraints)
- Constructs a new
ConstrainableTxnMgrAdminProxy
instance.
For a description of all but the methodConstraints
argument (provided below), refer to the description for the
constructor of this class' super class.
- Parameters:
methodConstraints
- the client method constraints to place on
this proxy (may be null
).
constrainServer
private static TxnManager constrainServer(TxnManager server,
MethodConstraints constraints)
- Returns a copy of the given server proxy having the client method
constraints that result after the specified method mapping is
applied to the given client method constraints.
setConstraints
public RemoteMethodControl setConstraints(MethodConstraints constraints)
- Returns a new copy of this proxy class
(
ConstrainableTxnMgrAdminProxy
) with its client
constraints set to the specified constraints. A null
value is interpreted as mapping all methods to empty constraints.
- Specified by:
setConstraints
in interface RemoteMethodControl
- Parameters:
constraints
- client constraints, or null
- Returns:
- a new copy of this proxy with the client constraints set to the
specified constraints
- See Also:
RemoteMethodControl.getConstraints()
getConstraints
public MethodConstraints getConstraints()
- Returns the client constraints placed on the current instance
of this proxy class (
ConstrainableTxnMgrAdminProxy
).
The value returned by this method can be null
,
which is interpreted as mapping all methods to empty constraints.
- Specified by:
getConstraints
in interface RemoteMethodControl
- Returns:
- the client constraints, or
null
- See Also:
RemoteMethodControl.setConstraints(net.jini.core.constraint.MethodConstraints)
getProxyTrustIterator
private ProxyTrustIterator getProxyTrustIterator()
- Returns a proxy trust iterator that is used in
ProxyTrustVerifier
to retrieve this object's
trust verifier.
readObject
private void readObject(ObjectInputStream s)
throws IOException,
ClassNotFoundException
- Performs various functions related to the trust verification
process for the current instance of this proxy class, as
detailed in the description for this class.
- Throws:
InvalidObjectException
- if any of the
requirements for trust verification (as detailed in the
class description) are not satisfied.
IOException
ClassNotFoundException
Copyright 2007-2010, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.