com.sun.jini.reggie
Class RegistrarImpl.SvcRegisteredLogObj

java.lang.Object
  extended by com.sun.jini.reggie.RegistrarImpl.SvcRegisteredLogObj
All Implemented Interfaces:
RegistrarImpl.LogRecord, Serializable
Enclosing class:
RegistrarImpl

private static class RegistrarImpl.SvcRegisteredLogObj
extends Object
implements RegistrarImpl.LogRecord

LogObj class whose instances are recorded to the log file whenever a new service is registered.

See Also:
RegistrarImpl.LocalLogHandler

Field Summary
private  RegistrarImpl.SvcReg reg
          The service registration.
private static long serialVersionUID
           
 
Constructor Summary
RegistrarImpl.SvcRegisteredLogObj(RegistrarImpl.SvcReg reg)
          Simple constructor
 
Method Summary
 void apply(RegistrarImpl regImpl)
          Modifies the state of the Registrar by registering the service stored in the reg object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

reg

private RegistrarImpl.SvcReg reg
The service registration.

Constructor Detail

RegistrarImpl.SvcRegisteredLogObj

public RegistrarImpl.SvcRegisteredLogObj(RegistrarImpl.SvcReg reg)
Simple constructor

Method Detail

apply

public void apply(RegistrarImpl regImpl)
Modifies the state of the Registrar by registering the service stored in the reg object. Also needs to delete any existing service with the same serviceID; this can happen if a service re-registers while an existing registration is in effect, because we don't log a separate lease cancellation record for the existing registration in that case.

Specified by:
apply in interface RegistrarImpl.LogRecord
See Also:
RegistrarImpl.LocalLogHandler.applyUpdate(java.lang.Object)


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