public abstract class BaseEngineModule extends Object implements EngineModule
| Modifier | Constructor and Description |
|---|---|
protected |
BaseEngineModule()
Creates a new module.
|
protected |
BaseEngineModule(String name)
Creates a new module.
|
protected |
BaseEngineModule(String name,
SpongeEngine engine)
Creates a new module.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doShutdown() |
protected void |
doStartup() |
String |
getDescription() |
SpongeEngine |
getEngine()
Returns the engine.
|
com.google.common.util.concurrent.Service |
getInternalService() |
String |
getLabel() |
String |
getName()
Returns the name.
|
com.google.common.util.concurrent.Service.State |
getState() |
boolean |
isFailed() |
boolean |
isNew() |
boolean |
isNewOrStartingOrRunning() |
boolean |
isRunning()
Informs whether this managed entity is running.
|
boolean |
isStarting() |
boolean |
isStopping() |
boolean |
isTerminated() |
void |
setDescription(String description) |
void |
setEngine(SpongeEngine engine)
Sets the engine.
|
void |
setLabel(String label) |
void |
setName(String name)
Sets module name.
|
void |
shutdown()
Shuts down this managed entity.
|
void |
startup()
Starts up this managed entity.
|
String |
toString() |
protected BaseEngineModule(String name, SpongeEngine engine)
name - name.engine - the engine.protected BaseEngineModule(String name)
name - name.protected BaseEngineModule()
public void setEngine(SpongeEngine engine)
public SpongeEngine getEngine()
public String getName()
getName in interface Descriptivepublic void setName(String name)
setName in interface Descriptivename - module name.public String getLabel()
getLabel in interface Descriptivepublic void setLabel(String label)
setLabel in interface Descriptivepublic String getDescription()
getDescription in interface Descriptivepublic void setDescription(String description)
setDescription in interface Descriptiveprotected void doStartup()
protected void doShutdown()
public void startup()
startup in interface Manageablepublic void shutdown()
shutdown in interface Manageablepublic final boolean isNew()
isNew in interface Manageablepublic final boolean isStarting()
isStarting in interface Manageablepublic final boolean isRunning()
isRunning in interface Manageablepublic final boolean isStopping()
isStopping in interface Manageablepublic final boolean isTerminated()
isTerminated in interface Manageablepublic final boolean isFailed()
isFailed in interface Manageablepublic com.google.common.util.concurrent.Service.State getState()
public com.google.common.util.concurrent.Service getInternalService()
public boolean isNewOrStartingOrRunning()
Copyright © 2016–2021 Softelnet. All rights reserved.