NetKernel APIs


com.ten60.netkernel.container
Class ComponentImpl

java.lang.Object
  extended bycom.ten60.netkernel.urii.representation.SimpleRepresentationImpl
      extended bycom.ten60.netkernel.container.ComponentImpl
All Implemented Interfaces:
IAspectBinaryStream, IComponent, IURAspect, IURRepresentation
Direct Known Subclasses:
Cache, Config, Container, HouseKeeper, ModuleManager, Scheduler, TransportManager

public abstract class ComponentImpl
extends SimpleRepresentationImpl
implements IComponent

Abstract base class of all NetKernel System Components


Field Summary
 
Fields inherited from class com.ten60.netkernel.urii.representation.SimpleRepresentationImpl
mMeta
 
Constructor Summary
ComponentImpl(URIdentifier aURI)
          Constructs a new ComponentImpl
ComponentImpl(URIdentifier aURI, boolean aStatic)
          Constructs a new ComponentImpl
 
Method Summary
 void doPeriodicHouseKeeping()
          doPeriodicHouseKeeping method implemented with null body
 String getEncoding()
           
 URIdentifier getURI()
          returns our URI
 void start(Container aContainer)
          start method implemented with null body
 void stop()
          stop method implemented with null body
 void write(OutputStream aStream)
          write method implemented with null body
 
Methods inherited from class com.ten60.netkernel.urii.representation.SimpleRepresentationImpl
getAspect, getAspects, getMeta, hasAspect
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.ten60.netkernel.urii.IURRepresentation
getAspect, getAspects, getMeta, hasAspect
 

Constructor Detail

ComponentImpl

public ComponentImpl(URIdentifier aURI)
Constructs a new ComponentImpl

Parameters:
aURI - the URI we should have

ComponentImpl

public ComponentImpl(URIdentifier aURI,
                     boolean aStatic)
Constructs a new ComponentImpl

Parameters:
aURI - the URI we should have
aStatic - the Components state will never change during the containers lifetime
Method Detail

getURI

public URIdentifier getURI()
returns our URI

Specified by:
getURI in interface IComponent
Returns:
our URI

start

public void start(Container aContainer)
           throws NetKernelException
start method implemented with null body

Specified by:
start in interface IComponent
Parameters:
aContainer - the container we will execute inside
Throws:
NetKernelException - thrown if we encounter any error during startup

stop

public void stop()
          throws NetKernelException
stop method implemented with null body

Specified by:
stop in interface IComponent
Throws:
NetKernelException - thrown if we encounter any error during startup

doPeriodicHouseKeeping

public void doPeriodicHouseKeeping()
doPeriodicHouseKeeping method implemented with null body

Specified by:
doPeriodicHouseKeeping in interface IComponent

write

public void write(OutputStream aStream)
           throws IOException
write method implemented with null body

Specified by:
write in interface IAspectBinaryStream
Parameters:
aStream - the output stream
Throws:
IOException - thrown if we fail to write

getEncoding

public String getEncoding()
Specified by:
getEncoding in interface IAspectBinaryStream

NetKernel APIs


Copyright © 2002-2004 1060 Research Ltd. All Rights Reserved.