Package com.tenio.core.network.jetty
Class JettyHttpService
java.lang.Object
com.tenio.common.logger.AbstractLogger
com.tenio.common.logger.SystemLogger
com.tenio.core.manager.AbstractManager
com.tenio.core.network.jetty.JettyHttpService
This class provides the methods for creating HTTP services.
-
Field Summary
Fields inherited from class com.tenio.core.manager.AbstractManager
eventManager
-
Method Summary
Modifier and TypeMethodDescriptiongetName()
Retrieves the service's name.void
Initializes a new service.boolean
Determines whether the service is activated.static JettyHttpService
newInstance
(EventManager eventManager) void
run()
void
Set the service's name.void
setPathConfigs
(List<PathConfig> pathConfigs) void
setPort
(int port) void
shutdown()
Shutdown the service.void
start()
Start the service.Methods inherited from class com.tenio.common.logger.SystemLogger
debug, trace, trace
Methods inherited from class com.tenio.common.logger.AbstractLogger
buildgen, error, error, info, info, info, info, info, info, info, info
-
Method Details
-
newInstance
-
run
public void run() -
initialize
public void initialize()Description copied from interface:Service
Initializes a new service.- Specified by:
initialize
in interfaceService
-
start
public void start()Description copied from interface:Service
Start the service. -
shutdown
public void shutdown()Description copied from interface:Service
Shutdown the service. -
isActivated
public boolean isActivated()Description copied from interface:Service
Determines whether the service is activated.- Specified by:
isActivated
in interfaceService
- Returns:
- true if the service is activated, false otherwise
-
getName
Description copied from interface:Service
Retrieves the service's name. -
setName
Description copied from interface:Service
Set the service's name. -
setPort
public void setPort(int port) -
setPathConfigs
-