com.sun.jini.jeri.internal.runtime
Class DgcClient

java.lang.Object
  extended by com.sun.jini.jeri.internal.runtime.AbstractDgcClient
      extended by com.sun.jini.jeri.internal.runtime.DgcClient

public final class DgcClient
extends AbstractDgcClient

Jeri ERI client-side DGC implementation. This class specializes AbstractDgcClient to use net.jini.jeri.Endpoint for transport endpoints, net.jini.id.Uuid for object identifiers, and net.jini.jeri.BasicObjectEndpoint for live remote references. This class's DgcProxy implementation maps dirty and clean calls to remote invocations on the DgcServer remote interface, through a BasicInvocationHandler and a BasicObjectEndpoint with the DgcProxy's Endpoint and the well-known Uuid for the Jini ERI server-side DGC implementation remote object.

Author:
Sun Microsystems, Inc.

Nested Class Summary
private  class DgcClient.DgcProxyImpl
           
 
Nested classes/interfaces inherited from class com.sun.jini.jeri.internal.runtime.AbstractDgcClient
AbstractDgcClient.DgcProxy
 
Field Summary
private static Uuid clientID
          unique identifier for this DgcClient as a client of DGC
private static Logger logger
           
private static Class[] proxyInterfaces
           
 
Constructor Summary
DgcClient()
           
 
Method Summary
protected  void freeEndpoint(Object endpoint)
          Indicates that resources for the given endpoint may be freed.
protected  AbstractDgcClient.DgcProxy getDgcProxy(Object endpoint)
          Returns a proxy for making DGC calls to the given endpoint.
protected  Object getRefEndpoint(Object ref)
          Returns the endpoint in the given live reference.
protected  Object getRefObjectID(Object ref)
          Returns the object ID in the given live reference.
 void registerRefs(Endpoint endpoint, Collection refs)
           
 
Methods inherited from class com.sun.jini.jeri.internal.runtime.AbstractDgcClient
registerRefs
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

private static final Logger logger

proxyInterfaces

private static final Class[] proxyInterfaces

clientID

private static final Uuid clientID
unique identifier for this DgcClient as a client of DGC

Constructor Detail

DgcClient

public DgcClient()
Method Detail

registerRefs

public void registerRefs(Endpoint endpoint,
                         Collection refs)

getDgcProxy

protected AbstractDgcClient.DgcProxy getDgcProxy(Object endpoint)
Description copied from class: AbstractDgcClient
Returns a proxy for making DGC calls to the given endpoint.

Specified by:
getDgcProxy in class AbstractDgcClient

freeEndpoint

protected void freeEndpoint(Object endpoint)
Description copied from class: AbstractDgcClient
Indicates that resources for the given endpoint may be freed.

Specified by:
freeEndpoint in class AbstractDgcClient

getRefEndpoint

protected Object getRefEndpoint(Object ref)
Description copied from class: AbstractDgcClient
Returns the endpoint in the given live reference.

Specified by:
getRefEndpoint in class AbstractDgcClient

getRefObjectID

protected Object getRefObjectID(Object ref)
Description copied from class: AbstractDgcClient
Returns the object ID in the given live reference.

Specified by:
getRefObjectID in class AbstractDgcClient


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