public interface ISiteWhereServer
extends com.sitewhere.spi.server.lifecycle.ILifecycleComponent, com.sitewhere.spi.server.lifecycle.ILifecycleHierarchyRoot
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ENV_SITEWHERE_HOME
SiteWhere home environment variable name
|
Modifier and Type | Method and Description |
---|---|
com.sitewhere.spi.asset.IAssetManagement |
getAssetManagement(com.sitewhere.spi.tenant.ITenant tenant)
Get asset management implementation for the given tenant.
|
com.sitewhere.spi.asset.IAssetModuleManager |
getAssetModuleManager(com.sitewhere.spi.tenant.ITenant tenant)
Get asset module manager for tenant.
|
java.util.List<com.sitewhere.spi.tenant.ITenant> |
getAuthorizedTenants(java.lang.String userId,
boolean requireStarted)
Get list of tenants a given user can access.
|
com.sitewhere.spi.resource.IResourceManager |
getBootstrapResourceManager()
Get resource manager for bootstrapping the system.
|
java.lang.String |
getConfigurationParserClassname()
Get Spring parser class name for handling bean definitions.
|
IGlobalConfigurationResolver |
getConfigurationResolver()
Get class that can be used to location the Spring configuration context.
|
com.sitewhere.spi.device.communication.IDeviceCommunication |
getDeviceCommunication(com.sitewhere.spi.tenant.ITenant tenant)
Get device communication subsystem for the given tenant.
|
com.sitewhere.spi.device.event.IDeviceEventManagement |
getDeviceEventManagement(com.sitewhere.spi.tenant.ITenant tenant)
Get device event management implementation for tenant.
|
com.sitewhere.spi.device.IDeviceManagement |
getDeviceManagement(com.sitewhere.spi.tenant.ITenant tenant)
Get device management implementation for tenant.
|
com.sitewhere.spi.device.IDeviceManagementCacheProvider |
getDeviceManagementCacheProvider(com.sitewhere.spi.tenant.ITenant tenant)
Get device management cache provider for tenant.
|
com.sitewhere.spi.device.event.IEventProcessing |
getEventProcessing(com.sitewhere.spi.tenant.ITenant tenant)
Get the event processing subsystem for the given tenant.
|
IGroovyConfiguration |
getGroovyConfiguration()
Get the common Groovy configuration for this node.
|
IHazelcastConfiguration |
getHazelcastConfiguration()
Get the Hazelcast configuration for this node.
|
com.codahale.metrics.health.HealthCheckRegistry |
getHealthCheckRegistry()
Get the health check registry.
|
com.codahale.metrics.MetricRegistry |
getMetricRegistry()
Get the metrics registry.
|
com.sitewhere.spi.resource.IResourceManager |
getRuntimeResourceManager()
Get resource manager for resolving runtime resource references.
|
com.sitewhere.spi.scheduling.IScheduleManagement |
getScheduleManagement(com.sitewhere.spi.tenant.ITenant tenant)
Get schedule management implementation for the given tenant.
|
com.sitewhere.spi.scheduling.IScheduleManager |
getScheduleManager(com.sitewhere.spi.tenant.ITenant tenant)
Get schedule manager for tenant.
|
com.sitewhere.spi.search.external.ISearchProviderManager |
getSearchProviderManager(com.sitewhere.spi.tenant.ITenant tenant)
Get search provider manager for tenant.
|
ISiteWhereServerRuntime |
getServerRuntimeInformation(boolean includeHistorical)
Gets runtime information about the server.
|
com.sitewhere.spi.ServerStartupException |
getServerStartupError()
Returns exception if one was thrown on startup.
|
ISiteWhereServerState |
getServerState()
Get persistent server state information.
|
com.sitewhere.spi.tenant.ITenant |
getTenantByAuthToken(java.lang.String authToken)
Get a tenant based on its authentication token.
|
java.lang.String |
getTenantConfigurationParserClassname()
Get Spring parser class name for handling tenant bean definitions.
|
ISiteWhereTenantEngine |
getTenantEngine(java.lang.String tenantId)
Get a tenant engine by tenant id.
|
ITenantGroovyConfiguration |
getTenantGroovyConfiguration(com.sitewhere.spi.tenant.ITenant tenant)
Get Groovy configuration for tenant.
|
com.sitewhere.spi.tenant.ITenantManagement |
getTenantManagement()
Get the tenant management implementation.
|
ITenantTemplateManager |
getTenantTemplateManager()
Get tenant template manager implementation.
|
ITracer |
getTracer()
Get tracer for debug operations.
|
com.sitewhere.spi.user.IUserManagement |
getUserManagement()
Get the user management implementation.
|
com.sitewhere.spi.system.IVersion |
getVersion()
Get version information.
|
void |
onTenantInformationUpdated(com.sitewhere.spi.tenant.ITenant tenant)
Called when tenant information has been updated so that cached data is
kept current.
|
void |
setServerStartupError(com.sitewhere.spi.ServerStartupException e)
Set server startup error reason.
|
canPause, findComponentsOfType, getComponentId, getComponentName, getComponentType, getCreatedDate, getLifecycleComponents, getLifecycleError, getLifecycleStatus, getLogger, initialize, initializeNestedComponent, lifecycleInitialize, lifecyclePause, lifecycleStart, lifecycleStop, lifecycleStop, logState, pause, start, startNestedComponent, stop, stop
static final java.lang.String ENV_SITEWHERE_HOME
com.sitewhere.spi.system.IVersion getVersion()
java.lang.String getConfigurationParserClassname()
java.lang.String getTenantConfigurationParserClassname()
ISiteWhereServerState getServerState()
ISiteWhereServerRuntime getServerRuntimeInformation(boolean includeHistorical) throws com.sitewhere.spi.SiteWhereException
includeHistorical
- com.sitewhere.spi.SiteWhereException
com.sitewhere.spi.ServerStartupException getServerStartupError()
void setServerStartupError(com.sitewhere.spi.ServerStartupException e)
e
- ITracer getTracer()
IHazelcastConfiguration getHazelcastConfiguration()
IGroovyConfiguration getGroovyConfiguration()
com.sitewhere.spi.resource.IResourceManager getBootstrapResourceManager()
com.sitewhere.spi.resource.IResourceManager getRuntimeResourceManager()
IGlobalConfigurationResolver getConfigurationResolver()
ITenantTemplateManager getTenantTemplateManager()
com.sitewhere.spi.tenant.ITenant getTenantByAuthToken(java.lang.String authToken) throws com.sitewhere.spi.SiteWhereException
authToken
- com.sitewhere.spi.SiteWhereException
java.util.List<com.sitewhere.spi.tenant.ITenant> getAuthorizedTenants(java.lang.String userId, boolean requireStarted) throws com.sitewhere.spi.SiteWhereException
userId
- requireStarted
- com.sitewhere.spi.SiteWhereException
ISiteWhereTenantEngine getTenantEngine(java.lang.String tenantId) throws com.sitewhere.spi.SiteWhereException
tenantId
- com.sitewhere.spi.SiteWhereException
void onTenantInformationUpdated(com.sitewhere.spi.tenant.ITenant tenant) throws com.sitewhere.spi.SiteWhereException
tenant
- com.sitewhere.spi.SiteWhereException
com.sitewhere.spi.user.IUserManagement getUserManagement()
com.sitewhere.spi.tenant.ITenantManagement getTenantManagement()
com.sitewhere.spi.device.IDeviceManagement getDeviceManagement(com.sitewhere.spi.tenant.ITenant tenant) throws com.sitewhere.spi.SiteWhereException
tenant
- com.sitewhere.spi.SiteWhereException
com.sitewhere.spi.device.event.IDeviceEventManagement getDeviceEventManagement(com.sitewhere.spi.tenant.ITenant tenant) throws com.sitewhere.spi.SiteWhereException
tenant
- com.sitewhere.spi.SiteWhereException
com.sitewhere.spi.device.IDeviceManagementCacheProvider getDeviceManagementCacheProvider(com.sitewhere.spi.tenant.ITenant tenant) throws com.sitewhere.spi.SiteWhereException
tenant
- com.sitewhere.spi.SiteWhereException
com.sitewhere.spi.asset.IAssetManagement getAssetManagement(com.sitewhere.spi.tenant.ITenant tenant) throws com.sitewhere.spi.SiteWhereException
tenant
- com.sitewhere.spi.SiteWhereException
com.sitewhere.spi.scheduling.IScheduleManagement getScheduleManagement(com.sitewhere.spi.tenant.ITenant tenant) throws com.sitewhere.spi.SiteWhereException
tenant
- com.sitewhere.spi.SiteWhereException
com.sitewhere.spi.device.communication.IDeviceCommunication getDeviceCommunication(com.sitewhere.spi.tenant.ITenant tenant) throws com.sitewhere.spi.SiteWhereException
tenant
- com.sitewhere.spi.SiteWhereException
com.sitewhere.spi.device.event.IEventProcessing getEventProcessing(com.sitewhere.spi.tenant.ITenant tenant) throws com.sitewhere.spi.SiteWhereException
tenant
- com.sitewhere.spi.SiteWhereException
com.sitewhere.spi.asset.IAssetModuleManager getAssetModuleManager(com.sitewhere.spi.tenant.ITenant tenant) throws com.sitewhere.spi.SiteWhereException
tenant
- com.sitewhere.spi.SiteWhereException
com.sitewhere.spi.search.external.ISearchProviderManager getSearchProviderManager(com.sitewhere.spi.tenant.ITenant tenant) throws com.sitewhere.spi.SiteWhereException
tenant
- com.sitewhere.spi.SiteWhereException
com.sitewhere.spi.scheduling.IScheduleManager getScheduleManager(com.sitewhere.spi.tenant.ITenant tenant) throws com.sitewhere.spi.SiteWhereException
tenant
- com.sitewhere.spi.SiteWhereException
ITenantGroovyConfiguration getTenantGroovyConfiguration(com.sitewhere.spi.tenant.ITenant tenant) throws com.sitewhere.spi.SiteWhereException
tenant
- com.sitewhere.spi.SiteWhereException
com.codahale.metrics.MetricRegistry getMetricRegistry()
com.codahale.metrics.health.HealthCheckRegistry getHealthCheckRegistry()