org.openanzo.server.repository
Interface IServerService

All Known Subinterfaces:
IAuthenticationProvider
All Known Implementing Classes:
AuthenticationProvider, EventPublisher, IndexQueryApi, JaasAuthenticationProvider, LdapAuthenticationProvider, ModelServiceApi, RepositoryConnectionPool

public interface IServerService

Base interface for all services the server uses. Allows for life cycle management of services.

Author:
Matthew Roy ( mroy@cambridgesemantics.com )

Method Summary
 void close()
          Close the service
 boolean getIsStarted()
          Determine if the service is started
 void registerMBean(javax.management.MBeanServer mbServer, javax.management.ObjectName parentObjectName)
          Register the service with the server's jmx server
 void start()
          Start the service
 void stop()
          Stop the service
 

Method Detail

start

void start()
           throws AnzoException
Start the service

Throws:
AnzoException

stop

void stop()
          throws AnzoException
Stop the service

Throws:
AnzoException

getIsStarted

boolean getIsStarted()
                     throws AnzoException
Determine if the service is started

Returns:
true if the service is started
Throws:
AnzoException

close

void close()
           throws AnzoException
Close the service

Throws:
AnzoException

registerMBean

void registerMBean(javax.management.MBeanServer mbServer,
                   javax.management.ObjectName parentObjectName)
Register the service with the server's jmx server

Parameters:
mbServer - the jmx server
parentObjectName - the name under which this object will be registered


Copyright © 2007 Cambridge Semantics Inc.. All Rights Reserved.