BaseService, FileSystemAccessService, GroupsService, InstrumentationService, SchedulerService@Private
public interface Service
Server class.| Modifier and Type | Method | Description |
|---|---|---|
void |
destroy() |
Destroy the services.
|
java.lang.Class |
getInterface() |
Returns the interface implemented by this service.
|
java.lang.Class[] |
getServiceDependencies() |
Returns the service dependencies of this service.
|
void |
init(Server server) |
Initializes the service.
|
void |
postInit() |
Post initializes the service.
|
void |
serverStatusChange(Server.Status oldStatus,
Server.Status newStatus) |
Notification callback when the server changes its status.
|
void init(Server server) throws ServiceException
Server owning the service is being initialized.server - the server initializing the service, give access to the
server context.ServiceException - thrown if the service could not be initialized.void postInit()
throws ServiceException
Server after all services of the server have been initialized.ServiceException - thrown if the service could not be
post-initialized.void destroy()
Server owning the service is being destroyed.java.lang.Class[] getServiceDependencies()
java.lang.Class getInterface()
Server when the Server.get(Class) method is used to
retrieve a service.void serverStatusChange(Server.Status oldStatus, Server.Status newStatus) throws ServiceException
oldStatus - old server status.newStatus - new server status.ServiceException - thrown if the service could not process the status change.Copyright © 2008–2025 Apache Software Foundation. All rights reserved.