Package org.cyclos.impl.system
Class SystemMonitorServiceImpl
- java.lang.Object
-
- org.cyclos.impl.AbstractServerComponent
-
- org.cyclos.impl.AbstractNetworkedServerComponent
-
- org.cyclos.impl.BaseServiceImpl
-
- org.cyclos.impl.system.SystemMonitorServiceImpl
-
- All Implemented Interfaces:
SystemMonitorServiceLocal,Service,SystemMonitorService
@Service public class SystemMonitorServiceImpl extends BaseServiceImpl implements SystemMonitorServiceLocal
Implementation forSystemMonitorService
-
-
Field Summary
Fields Modifier and Type Field Description protected CyclosPropertiescyclosProperties-
Fields inherited from class org.cyclos.impl.AbstractNetworkedServerComponent
authHandler, conversionHandler, customFieldValueHandler, entityManagerHandler, groupsHandler, productsHandler, restBeanPropertyMapping, userLocatorHandler
-
Fields inherited from class org.cyclos.impl.AbstractServerComponent
accountHandler, configurationHandler, dataTranslationHandler, notificationHandler, profileFieldHandler, transactionHandler, translationHandler
-
-
Constructor Summary
Constructors Constructor Description SystemMonitorServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SystemMonitorExportResultexport()Generates a PDF report containing the whole system information: general information, recurring tasks, background tasks, database upgrades, etc.ServerDatagetServerData()SystemInformationDatagetSystemInformation(List<String> members)Returns general information about Cyclos.voidinitialize()List<DatabaseHistoryLog>listAllFailedDatabaseHistoryLogs()List<BackgroundTaskData>listBackgroundTasks(BackgroundTaskQuery query)Lists all background tasks applying the given filterList<PollingTaskData>listPollingTasks(PollingTaskQuery query)Lists all polling tasks but applying the given filtervoidrebuildClosedAccountBalances()Schedules a rebuild of the all closed account balances.protected voidregisterNetworkMappings(NetworkPathRegistry networkPathRegistry)Needs to be overridden by subclasses to register the path up to the networkvoidscheduleExecution(String taskType)Schedules a new execution to run as soon as possible for the given taskPage<DatabaseUpgradeData>searchDatabaseHistoryLogs(DatabaseUpgradeQuery params)Searches for the the database upgrades that were applied.voidvacuumDatabase()Executes a vacuum and an analyze of the database.-
Methods inherited from class org.cyclos.impl.BaseServiceImpl
initializeNetworkMappings
-
Methods inherited from class org.cyclos.impl.AbstractNetworkedServerComponent
canManage, checkManagesUser, checkPermission, checkRelatesToUser, checkValue, clearAlreadyValidated, getBaseEntityManagerHandler, getConfiguration, getLoggedBasicUser, getLoggedUser, getProducts, getTranslatedName, getTranslatedValue, hasPermission, hasValue, inSameNetwork, inSameNetworkOrGlobal, isAdmin, isAlreadyValidated, isBroker, isGlobalAdmin, isGlobalAdminInNetwork, isGuest, isLoggedIn, isMember, isMemberOnly, isNetworkAdmin, isOperator, isRelatedToUser, isSystem, isUserManager, isUserManagerOf, message, message, permission, permission, permissionOptionalValue, permissionOptionalValue, setAlreadyValidated, toDate, toDateTime, validate
-
Methods inherited from class org.cyclos.impl.AbstractServerComponent
dataTranslationProxy, dataTranslationProxy, delete, detach, doDataTranslationProxy, find, flush, from, getApplicationContext, getFormatter, getFormatter, getFormatter, getLogger, getRemoteAddress, getSessionData, mailContentBuilder, message, message, persist, processBatch, processBatch, refresh, remove, selectFrom, subQuery, update
-
-
-
-
Field Detail
-
cyclosProperties
@Autowired protected CyclosProperties cyclosProperties
-
-
Method Detail
-
export
public SystemMonitorExportResult export() throws FrameworkException
Description copied from interface:SystemMonitorServiceGenerates a PDF report containing the whole system information: general information, recurring tasks, background tasks, database upgrades, etc.- Specified by:
exportin interfaceSystemMonitorService- Throws:
FrameworkException
-
getServerData
public ServerData getServerData()
- Specified by:
getServerDatain interfaceSystemMonitorServiceLocal
-
getSystemInformation
public SystemInformationData getSystemInformation(List<String> members)
Description copied from interface:SystemMonitorServiceReturns general information about Cyclos.- Specified by:
getSystemInformationin interfaceSystemMonitorService- Parameters:
members- the members whose information was already received by the client. Null for the first time the client request for information.
-
initialize
@PostConstruct public void initialize()
-
listAllFailedDatabaseHistoryLogs
public List<DatabaseHistoryLog> listAllFailedDatabaseHistoryLogs()
- Specified by:
listAllFailedDatabaseHistoryLogsin interfaceSystemMonitorServiceLocal
-
listBackgroundTasks
public List<BackgroundTaskData> listBackgroundTasks(BackgroundTaskQuery query)
Description copied from interface:SystemMonitorServiceLists all background tasks applying the given filter- Specified by:
listBackgroundTasksin interfaceSystemMonitorService
-
listPollingTasks
public List<PollingTaskData> listPollingTasks(PollingTaskQuery query)
Description copied from interface:SystemMonitorServiceLists all polling tasks but applying the given filter- Specified by:
listPollingTasksin interfaceSystemMonitorService
-
rebuildClosedAccountBalances
public void rebuildClosedAccountBalances() throws FrameworkExceptionDescription copied from interface:SystemMonitorServiceSchedules a rebuild of the all closed account balances.- Specified by:
rebuildClosedAccountBalancesin interfaceSystemMonitorService- Throws:
FrameworkException
-
scheduleExecution
public void scheduleExecution(String taskType)
Description copied from interface:SystemMonitorServiceSchedules a new execution to run as soon as possible for the given task- Specified by:
scheduleExecutionin interfaceSystemMonitorService- Parameters:
taskType- the qualified class name of the polling task
-
searchDatabaseHistoryLogs
public Page<DatabaseUpgradeData> searchDatabaseHistoryLogs(DatabaseUpgradeQuery params) throws FrameworkException
Description copied from interface:SystemMonitorServiceSearches for the the database upgrades that were applied.- Specified by:
searchDatabaseHistoryLogsin interfaceSystemMonitorService- Throws:
FrameworkException
-
vacuumDatabase
public void vacuumDatabase() throws FrameworkExceptionDescription copied from interface:SystemMonitorServiceExecutes a vacuum and an analyze of the database.- Specified by:
vacuumDatabasein interfaceSystemMonitorService- Throws:
FrameworkException
-
registerNetworkMappings
protected void registerNetworkMappings(NetworkPathRegistry networkPathRegistry)
Description copied from class:BaseServiceImplNeeds to be overridden by subclasses to register the path up to the network- Specified by:
registerNetworkMappingsin classBaseServiceImpl
-
-