solar
Class Planet

java.lang.Object
  |
  +--solar.Planet
All Implemented Interfaces:
DirectoryListener, MulticastMember

public class Planet
extends java.lang.Object
implements MulticastMember, DirectoryListener

A service platform for Solar, which contains an overlay of Planets.

Version:
$Id: Planet.java,v 1.34 2003/10/08 13:18:55 glchen Exp $
Author:
Guanling Chen

Field Summary
private static org.apache.log4j.Logger _log
           
 
Constructor Summary
Planet()
           
 
Method Summary
static void configLogger(org.apache.log4j.Logger log, serp.util.Options opts)
           
 void handleMulticastEvent(Event evt)
          Handle received multicast events.
static void main(java.lang.String[] args)
           
 void nameAdded(Name name, NameRecord rec)
          Handle event about the addition of a name.
 void nameMigrated(Name name, NameRecord oldrec, NameRecord newrec)
          Handle event about the migration of a name (named resource).
 void nameRemoved(Name name, NameRecord rec)
          Handle event about the removal of a name.
 void nameUpdated(Name oldName, NameRecord oldrec, Name newName, NameRecord newrec)
          Handle event about the change of a name.
 void run(serp.util.Options opts)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_log

private static org.apache.log4j.Logger _log
Constructor Detail

Planet

public Planet()
Method Detail

handleMulticastEvent

public void handleMulticastEvent(Event evt)
Description copied from interface: MulticastMember
Handle received multicast events.

Specified by:
handleMulticastEvent in interface MulticastMember

nameAdded

public void nameAdded(Name name,
                      NameRecord rec)
Description copied from interface: DirectoryListener
Handle event about the addition of a name.

Specified by:
nameAdded in interface DirectoryListener

nameRemoved

public void nameRemoved(Name name,
                        NameRecord rec)
Description copied from interface: DirectoryListener
Handle event about the removal of a name.

Specified by:
nameRemoved in interface DirectoryListener

nameUpdated

public void nameUpdated(Name oldName,
                        NameRecord oldrec,
                        Name newName,
                        NameRecord newrec)
Description copied from interface: DirectoryListener
Handle event about the change of a name.

Specified by:
nameUpdated in interface DirectoryListener

nameMigrated

public void nameMigrated(Name name,
                         NameRecord oldrec,
                         NameRecord newrec)
Description copied from interface: DirectoryListener
Handle event about the migration of a name (named resource).

Specified by:
nameMigrated in interface DirectoryListener

run

public void run(serp.util.Options opts)
         throws java.lang.Exception
java.lang.Exception

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
java.lang.Exception

configLogger

public static void configLogger(org.apache.log4j.Logger log,
                                serp.util.Options opts)