Uses of Class
com.bytedesk.core.server.ServerEntity
Packages that use ServerEntity
Package
Description
-
Uses of ServerEntity in com.bytedesk.core.server
Methods in com.bytedesk.core.server that return ServerEntityModifier and TypeMethodDescriptionServerRestService.createServer
(ServerEntity serverEntity) Create server entity directlyServerRestService.doSave
(ServerEntity entity) ServerRestService.findByServerName
(String serverName) Find server by server nameServerRestService.getCurrentServerMetrics()
Get current server metrics (for self-monitoring)ServerRestService.handleOptimisticLockingFailureException
(org.springframework.orm.ObjectOptimisticLockingFailureException e, ServerEntity entity) ServerRestService.updateServer
(ServerEntity serverEntity) Update server entity directlyMethods in com.bytedesk.core.server that return types with arguments of type ServerEntityModifier and TypeMethodDescriptionprotected org.springframework.data.jpa.domain.Specification<ServerEntity>
ServerRestService.createSpecification
(ServerRequest request) protected org.springframework.data.domain.Page<ServerEntity>
ServerRestService.executePageQuery
(org.springframework.data.jpa.domain.Specification<ServerEntity> spec, org.springframework.data.domain.Pageable pageable) ServerRestService.findAllServers()
Find all serversServerRepository.findByDeletedFalseOrderByCreatedAtDesc()
Find all serversServerRepository.findByEnvironmentAndDeletedFalse
(String environment) Find servers by environmentServerRepository.findByLocationAndDeletedFalse
(String location) Find servers by locationServerRepository.findByServerNameAndDeletedFalse
(String serverName) Find server by server nameServerRestService.findByStatus
(String status) Find servers by statusServerRepository.findByStatusAndDeletedFalse
(String status) Find servers by statusServerRestService.findByType
(String type) Find servers by typeServerRepository.findByTypeAndDeletedFalse
(String type) Find servers by typeFind server by UIDServerRepository.findServersWithHighUsage
(Double cpuThreshold, Double memoryThreshold, Double diskThreshold) Find servers with high resource usageServerRestService.findServersWithHighUsage()
Find servers with high resource usageServerRepository.findServersWithoutRecentHeartbeat
(ZonedDateTime cutoffTime) Find servers that haven't sent heartbeat recentlyServerRestService.findServersWithoutRecentHeartbeat
(int minutesThreshold) Find servers without recent heartbeatstatic org.springframework.data.jpa.domain.Specification<ServerEntity>
ServerSpecification.search
(ServerRequest request, AuthService authService) ServerRestService.updateHeartbeat
(String uid) Update server heartbeatServerRestService.updateResourceUsage
(String uid, Double cpuUsage, Double memoryUsage, Double diskUsage) Update server resource usageMethods in com.bytedesk.core.server with parameters of type ServerEntityModifier and TypeMethodDescriptionServerRestService.convertToResponse
(ServerEntity entity) ServerRestService.createServer
(ServerEntity serverEntity) Create server entity directlyServerRestService.doSave
(ServerEntity entity) ServerRestService.handleOptimisticLockingFailureException
(org.springframework.orm.ObjectOptimisticLockingFailureException e, ServerEntity entity) void
ServerEntityListener.onPostPersist
(ServerEntity server) void
ServerEntityListener.onPostUpdate
(ServerEntity server) ServerRestService.updateServer
(ServerEntity serverEntity) Update server entity directlyMethod parameters in com.bytedesk.core.server with type arguments of type ServerEntityModifier and TypeMethodDescriptionprotected org.springframework.data.domain.Page<ServerEntity>
ServerRestService.executePageQuery
(org.springframework.data.jpa.domain.Specification<ServerEntity> spec, org.springframework.data.domain.Pageable pageable) -
Uses of ServerEntity in com.bytedesk.core.server_metrics
Methods in com.bytedesk.core.server_metrics with parameters of type ServerEntityModifier and TypeMethodDescriptionServerMetricsRestService.recordMetrics
(ServerEntity serverEntity) -
Uses of ServerEntity in com.bytedesk.core.server.event
Fields in com.bytedesk.core.server.event declared as ServerEntityModifier and TypeFieldDescriptionprivate ServerEntity
ServerCreateEvent.server
private ServerEntity
ServerDeleteEvent.server
private ServerEntity
ServerUpdateEvent.server
Constructors in com.bytedesk.core.server.event with parameters of type ServerEntityModifierConstructorDescriptionServerCreateEvent
(ServerEntity server) ServerDeleteEvent
(ServerEntity server) ServerUpdateEvent
(ServerEntity server)