com.sun.sgs.impl.kernel
Class StartupKernelContext

java.lang.Object
  extended by com.sun.sgs.impl.kernel.KernelContext
      extended by com.sun.sgs.impl.kernel.StartupKernelContext

final class StartupKernelContext
extends KernelContext

This is an overridden implementation of KernelContext used only during to startup to provide access to Managers and Services as they become available.


Field Summary
 
Fields inherited from class com.sun.sgs.impl.kernel.KernelContext
managerComponents, serviceComponents
 
Constructor Summary
StartupKernelContext(String applicationName)
          Creates an instance of StartupKernelContext.
 
Method Summary
(package private)  void addManager(Object manager)
          Adds a Manager to those avilable in this context.
(package private)  void addService(Service service)
          Adds a Service to those avilable in this context.
(package private)  ChannelManager getChannelManager()
          Returns the ChannelManager used in this context.
(package private)  DataManager getDataManager()
          Returns the DataManager used in this context.
(package private)  TaskManager getTaskManager()
          Returns the TaskManager used in this context.
(package private)  void notifyReady()
          Notifies all included Services that the system is now ready.
 
Methods inherited from class com.sun.sgs.impl.kernel.KernelContext
getManager, getService, shutdownServices, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StartupKernelContext

public StartupKernelContext(String applicationName)
Creates an instance of StartupKernelContext.

Parameters:
applicationName - the name of the application represented by this context
Method Detail

addManager

void addManager(Object manager)
Adds a Manager to those avilable in this context.

Parameters:
manager - the Manager to add

addService

void addService(Service service)
Adds a Service to those avilable in this context.

Parameters:
service - the Service to add

getChannelManager

ChannelManager getChannelManager()
Returns the ChannelManager used in this context.

Overrides:
getChannelManager in class KernelContext
Returns:
the context's ChannelManager

getDataManager

DataManager getDataManager()
Returns the DataManager used in this context.

Overrides:
getDataManager in class KernelContext
Returns:
the context's DataManager

getTaskManager

TaskManager getTaskManager()
Returns the TaskManager used in this context.

Overrides:
getTaskManager in class KernelContext
Returns:
the context's TaskManager

notifyReady

void notifyReady()
Notifies all included Services that the system is now ready.

Overrides:
notifyReady in class KernelContext

RedDwarf, Version 0.10.1
2010-03-14 10:56:12

Copyright © 2010 The RedDwarf Authors. All rights reserved
Copyright © 2007-2010 Sun Microsystems, Inc. All rights reserved