org.oddjob.jmx.server
Interface ServerContext

All Known Implementing Classes:
ServerContextImpl, ServerContextMain

public interface ServerContext

Provide a server context which can be passed down through the nodes of the server and used to look up useful things.

Author:
Rob Gordon.

Method Summary
 ServerContext addChild(Object child)
          Add a child component to the context.
 Address getAddress()
          The address.
 BeanDirectory getBeanDirectory()
          Get the bean directory that the component this is the context for belongs to.
 ConsoleArchiver getConsoleArchiver()
          Get the console archiver for the component this is the context for.
 LogArchiver getLogArchiver()
          Get the log archiver for the component this is the context for.
 ServerModel getModel()
          Get the model.
 ServerId getServerId()
          The server id.
 

Method Detail

addChild

ServerContext addChild(Object child)
                       throws ServerLoopBackException
Add a child component to the context.

Parameters:
child - A child.
Returns:
The new server context.
Throws:
ServerLoopBackException - When the child has already been exported by a previous server in the hierarchy.

getModel

ServerModel getModel()
Get the model.

Returns:
The model.

getLogArchiver

LogArchiver getLogArchiver()
Get the log archiver for the component this is the context for.

Returns:
A log archiver.

getConsoleArchiver

ConsoleArchiver getConsoleArchiver()
Get the console archiver for the component this is the context for.

Returns:
A console archiver.

getBeanDirectory

BeanDirectory getBeanDirectory()
Get the bean directory that the component this is the context for belongs to.

Returns:
The bean directory.

getAddress

Address getAddress()
The address.

Returns:
The address of this component.

getServerId

ServerId getServerId()
The server id.

Returns:
The server id of this component.