All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ncsa.habanero.Sharable

java.lang.Object
   |
   +----ncsa.habanero.ModelObject
           |
           +----ncsa.habanero.Targetable
                   |
                   +----ncsa.habanero.Sharable

public abstract class Sharable
extends Targetable
Basically, the Sharable object represents things that Habanero can share among paricipants. At the moment, that is Collobjects and Sessions. Sharables are ModelObjects, so every one knows its parent and its children. Each Sharable also has an arbitrator.


Variable Index

 o arbi

Constructor Index

 o Sharable(ModelObject)
Construct a Sharable with no Arbitrator.
 o Sharable(ModelObject, Arbitrator, Object)
Construct a Sharable with an Arbitrator.

Method Index

 o add_child(Sharable)
Add a child Sharable.
 o arbitrator()
Return the arbitrator for this object
 o dumpSelf(MarshallOutput, String)
 o getSharable()
Returns the first ancestor object which is a Sharable.
 o instantiate(String, Arbitrator, String, String, Properties)
Make a new child of the type represented by the String argument
 o isStopped()
 o remove_child(Sharable)
Remove a child Sharable.
 o shutDown()

Variables

 o arbi
 protected Arbitrator arbi

Constructors

 o Sharable
 protected Sharable(ModelObject parent)
Construct a Sharable with no Arbitrator. Presumably it will be set by a subclass.

 o Sharable
 public Sharable(ModelObject parent,
                 Arbitrator arb,
                 Object key)
Construct a Sharable with an Arbitrator. Set the Arbitrator's oowner to be me.

Methods

 o add_child
 protected void add_child(Sharable collaborator)
Add a child Sharable.

 o remove_child
 protected void remove_child(Sharable collaborator)
Remove a child Sharable.

 o instantiate
 protected synchronized Collobject instantiate(String className,
                                               Arbitrator arb,
                                               String originator,
                                               String uniqueName,
                                               Properties props)
Make a new child of the type represented by the String argument

Parameters:
aClass - string object representing the type of the new child
 o arbitrator
 public Arbitrator arbitrator()
Return the arbitrator for this object

 o shutDown
 public void shutDown()
Overrides:
shutDown in class Targetable
 o isStopped
 public boolean isStopped()
 o getSharable
 public Sharable getSharable()
Returns the first ancestor object which is a Sharable.

Overrides:
getSharable in class ModelObject
 o dumpSelf
 public synchronized void dumpSelf(MarshallOutput out,
                                   String toWho) throws IOException

All Packages  Class Hierarchy  This Package  Previous  Next  Index