SmartFrog 3.10.000

org.smartfrog.sfcore.prim
Interface ChildMinder

All Superinterfaces:
java.rmi.Remote
All Known Subinterfaces:
Compound, CopyFile, DetachingCompound, ProcessCompound
All Known Implementing Classes:
ApacheImpl, ArrayCompoundImpl, Autoloader, Comparator, CompoundImpl, Constant, Container, CopyFileImpl, Delay, Delay, DeployByCopyImpl, Deployer, DetachingCompoundImpl, DisplayThresholderImpl, Dup, During, EventCompoundImpl, FileUsingCompoundImpl, FireBreak, Generator, GraphImpl, LibraryArtifactImpl, LibraryImpl, Negate, NetElemImpl, OnEvent, Parallel, ParentHelper, Plus, Printer, ProcessCompoundImpl, RandomSequence, Repeat, Retract, Retry, Run, Sequence, SFSetPropertyImpl, Spawn, Tester, ThresholderImpl, TideMeterImpl, Timeout, Times, Try, UpdatableCompound

public interface ChildMinder
extends java.rmi.Remote

Defines the interface an object needs to implement if it wants to manager children. Primitives expect their parent to implement this interface so they can register for liveness and termination messages


Method Summary
 void sfAddChild(Liveness child)
          Add a child.
 java.util.Enumeration sfChildren()
          Gets an enumeration over the children of the implementor.
 boolean sfContainsChild(Liveness child)
          Request whether implementor contains a given child.
 boolean sfRemoveChild(Liveness child)
          Remove a child.
 

Method Detail

sfAddChild

void sfAddChild(Liveness child)
                throws java.rmi.RemoteException
Add a child.

Parameters:
child - child to add
Throws:
java.rmi.RemoteException - In case of Remote/nework error

sfRemoveChild

boolean sfRemoveChild(Liveness child)
                      throws SmartFrogRuntimeException,
                             java.rmi.RemoteException
Remove a child.

Parameters:
child - child to add
Returns:
Status of child removal
Throws:
SmartFrogRuntimeException - if failed to remove the child
java.rmi.RemoteException - In case of Remote/nework error

sfContainsChild

boolean sfContainsChild(Liveness child)
                        throws java.rmi.RemoteException
Request whether implementor contains a given child.

Parameters:
child - child to check for
Returns:
true is child is present else false
Throws:
java.rmi.RemoteException - In case of Remote/nework error

sfChildren

java.util.Enumeration sfChildren()
                                 throws java.rmi.RemoteException
Gets an enumeration over the children of the implementor.

Returns:
enumeration over children
Throws:
java.rmi.RemoteException - In case of Remote/nework error

SmartFrog CORE 3.10.000

(C) Copyright 1998-2006 Hewlett-Packard Development Company, LP