Skip navigation links

Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.2.1)

Part Number E55141-01
P4 Change 1723563 on 2015/10/09


weblogic.server
Interface ServerService

All Superinterfaces:
ServerStates

@Contract
public interface ServerService
extends ServerStates

Server services that need to hook into the servers lifecycle implement this interface. The implementation classname is then added to the weblogic.t3.srvr.ServerServices. Please refer to the javadoc of weblogic.t3.srvr.ServerServices for more information on when start, stop and halt are called.


Field Summary

 

Fields inherited from interface weblogic.server.ServerStates
ACTIVATE_LATER, ADMIN, FAILED, FAILED_NOT_RESTARTABLE, FAILED_RESTARTING, FORCE_SHUTTING_DOWN, FORCE_SUSPENDING, RESUMING, RUNNING, SHUTDOWN, SHUTDOWN_IN_PROCESS, SHUTDOWN_PENDING, SHUTTING_DOWN, STANDBY, STARTING, SUSPENDING, UNKNOWN

 

Method Summary
abstract  String getName()
          Get the name of the server service.
abstract  String getVersion()
          Get a comma separated list of specification versions that this server service implements.
abstract  void halt()
          This method shuts down the service by cancelling or rolling back inflight work.
abstract  void start()
          This method starts the service.
abstract  void stop()
          This method gracefully shuts down the service completing inflight work and releasing resources.

 

Method Detail

getName

String getName()
Get the name of the server service. This name is displayed externally in utilities like weblogic.version and also during server startup.

getVersion

String getVersion()
Get a comma separated list of specification versions that this server service implements. The version information is displayed to customers through weblogic.version and other utilities.

start

void start()
           throws ServiceFailureException
This method starts the service. The service is fully functioning and available to other services after this method returns. This is a blocking operation. The service should return only after it has started. It should throw ServiceFailureException if it is unable to complete the start operation.

This method can be called more than once but not concurrently. Here are the conditions under which start() can be called: