com.sun.jini.norm
Class NormProxy

java.lang.Object
  extended by com.sun.jini.norm.AbstractProxy
      extended by com.sun.jini.norm.NormProxy
All Implemented Interfaces:
Serializable, Administrable, ReferentUuid, LeaseRenewalService
Direct Known Subclasses:
NormProxy.ConstrainableNormProxy

 class NormProxy
extends AbstractProxy
implements LeaseRenewalService, Administrable

Defines a client-side proxy for a Norm server.

Since:
2.0
Author:
Sun Microsystems, Inc.

Nested Class Summary
(package private) static class NormProxy.ConstrainableNormProxy
          Defines a subclass of NormProxy that implements RemoteMethodControl.
 
Field Summary
private static long serialVersionUID
           
 
Fields inherited from class com.sun.jini.norm.AbstractProxy
server, uuid
 
Constructor Summary
NormProxy(NormServer server, Uuid serverUuid)
          Creates an instance of this class.
 
Method Summary
(package private) static NormProxy create(NormServer server, Uuid serverUuid)
          Creates a Norm server proxy, returning an instance that implements RemoteMethodControl if the server does.
 LeaseRenewalSet createLeaseRenewalSet(long leaseDuration)
          inherit javadoc
 Object getAdmin()
          inherit javadoc
private  void readObjectNoData()
          Require fields to be non-null.
 
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

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

NormProxy

NormProxy(NormServer server,
          Uuid serverUuid)
Creates an instance of this class.

Method Detail

create

static NormProxy create(NormServer server,
                        Uuid serverUuid)
Creates a Norm server proxy, returning an instance that implements RemoteMethodControl if the server does.

Parameters:
server - the server
serverUuid - the unique ID for the server

readObjectNoData

private void readObjectNoData()
                       throws InvalidObjectException
Require fields to be non-null.

Throws:
InvalidObjectException

createLeaseRenewalSet

public LeaseRenewalSet createLeaseRenewalSet(long leaseDuration)
                                      throws RemoteException
inherit javadoc

Specified by:
createLeaseRenewalSet in interface LeaseRenewalService
Parameters:
leaseDuration - requested lease duration in milliseconds
Returns:
a new LeaseRenewalSet in the renewal service
Throws:
RemoteException - if a communication-related exception occurs

getAdmin

public Object getAdmin()
                throws RemoteException
inherit javadoc

Specified by:
getAdmin in interface Administrable
Returns:
an object that implements whatever administration interfaces are appropriate for the particular service.
Throws:
RemoteException
See Also:
JoinAdmin


Copyright 2007-2010, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.