@Component(value="cuba_ServerInfo") public class ServerInfo extends java.lang.Object implements ServerInfoAPI, AppContext.Listener, org.springframework.core.Ordered
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CUBA_RELEASE_NUMBER_PATH |
static java.lang.String |
CUBA_RELEASE_TIMESTAMP_PATH |
NAME
HIGHEST_PLATFORM_PRECEDENCE, LOWEST_PLATFORM_PRECEDENCE
Constructor and Description |
---|
ServerInfo() |
Modifier and Type | Method and Description |
---|---|
void |
applicationStarted()
Called by
AppContext after successful application startup and initialization. |
void |
applicationStopped()
Called by
AppContext before application shutdown. |
int |
getOrder() |
java.lang.String |
getReleaseNumber() |
java.lang.String |
getReleaseTimestamp() |
java.lang.String |
getServerId()
This middleware instance identifier (unique in the current cluster).
|
void |
setConfiguration(Configuration configuration) |
public static final java.lang.String CUBA_RELEASE_NUMBER_PATH
public static final java.lang.String CUBA_RELEASE_TIMESTAMP_PATH
@Inject public void setConfiguration(Configuration configuration)
public java.lang.String getReleaseNumber()
getReleaseNumber
in interface ServerInfoAPI
public java.lang.String getReleaseTimestamp()
getReleaseTimestamp
in interface ServerInfoAPI
public java.lang.String getServerId()
ServerInfoAPI
host:port/context
and is built from the following configuration
parameters:
getServerId
in interface ServerInfoAPI
public void applicationStarted()
AppContext.Listener
AppContext
after successful application startup and initialization.applicationStarted
in interface AppContext.Listener
public void applicationStopped()
AppContext.Listener
AppContext
before application shutdown.applicationStopped
in interface AppContext.Listener
public int getOrder()
getOrder
in interface org.springframework.core.Ordered