org.apache.activemq.artemis.core.messagecounter.impl.MessageCounterManagerImpl

Here are the examples of the java api class org.apache.activemq.artemis.core.messagecounter.impl.MessageCounterManagerImpl taken from open source projects.

1. ManagementServiceImpl#registerServer()

View license
@Override
public ActiveMQServerControlImpl registerServer(final PostOffice postOffice, final SecurityStore securityStore, final StorageManager storageManager1, final Configuration configuration, final HierarchicalRepository<AddressSettings> addressSettingsRepository, final HierarchicalRepository<Set<Role>> securityRepository, final ResourceManager resourceManager, final RemotingService remotingService, final ActiveMQServer messagingServer, final QueueFactory queueFactory, final ScheduledExecutorService scheduledThreadPool, final PagingManager pagingManager, final boolean backup) throws Exception {
    this.postOffice = postOffice;
    this.securityStore = securityStore;
    this.addressSettingsRepository = addressSettingsRepository;
    this.securityRepository = securityRepository;
    this.storageManager = storageManager1;
    this.messagingServer = messagingServer;
    this.pagingManager = pagingManager;
    messageCounterManager = new MessageCounterManagerImpl(scheduledThreadPool);
    messageCounterManager.setMaxDayCount(configuration.getMessageCounterMaxDayHistory());
    messageCounterManager.reschedule(configuration.getMessageCounterSamplePeriod());
    messagingServerControl = new ActiveMQServerControlImpl(postOffice, configuration, resourceManager, remotingService, messagingServer, messageCounterManager, storageManager1, broadcaster);
    ObjectName objectName = objectNameBuilder.getActiveMQServerObjectName();
    registerInJMX(objectName, messagingServerControl);
    registerInRegistry(ResourceNames.CORE_SERVER, messagingServerControl);
    return messagingServerControl;
}