NetKernel APIs


com.ten60.netkernel.container
Class Config

java.lang.Object
  extended bycom.ten60.netkernel.urii.representation.SimpleRepresentationImpl
      extended bycom.ten60.netkernel.container.ComponentImpl
          extended bycom.ten60.netkernel.container.Config
All Implemented Interfaces:
IAspectBinaryStream, IComponent, IURAspect, IURRepresentation

public class Config
extends ComponentImpl

Configuration Component reads in system configuration information and holds it for other components to access


Field Summary
static URIdentifier URI
          our URI
 
Fields inherited from class com.ten60.netkernel.urii.representation.SimpleRepresentationImpl
mMeta
 
Constructor Summary
Config()
          Constructs a Config
 
Method Summary
 XMLReadable getReadable()
          Returns an XMLReadable interface over the configuration
 void sink(IAspectBinaryStream aData)
          Writes the configuration from the given aspect to the underlying storage.
 void start(Container aContainer)
          Starts the Config component reading in the configuration ready for use.
 void write(OutputStream aStream)
          Writes the stored configuration to the outputstream
 
Methods inherited from class com.ten60.netkernel.container.ComponentImpl
doPeriodicHouseKeeping, getEncoding, getURI, stop
 
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
 

Field Detail

URI

public static final URIdentifier URI
our URI

Constructor Detail

Config

public Config()
Constructs a Config

Method Detail

start

public void start(Container aContainer)
           throws NetKernelException
Starts the Config component reading in the configuration ready for use. Configuration path is specified by the Container.getConfigPath() method.

Specified by:
start in interface IComponent
Overrides:
start in class ComponentImpl
Throws:
NetKernelException

getReadable

public XMLReadable getReadable()
Returns an XMLReadable interface over the configuration


write

public void write(OutputStream aStream)
           throws IOException
Writes the stored configuration to the outputstream

Specified by:
write in interface IAspectBinaryStream
Overrides:
write in class ComponentImpl
Parameters:
aStream - the output stream
Throws:
IOException

sink

public void sink(IAspectBinaryStream aData)
          throws IOException,
                 NetKernelException
Writes the configuration from the given aspect to the underlying storage. A restart is necessary for changes to take effect

Throws:
IOException
NetKernelException

NetKernel APIs


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