org.springframework.jmx.export.annotation.ManagedAttribute Java Examples

The following examples show how to use org.springframework.jmx.export.annotation.ManagedAttribute. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SessionizerProcessor.java    From realtime-analytics with GNU General Public License v2.0 5 votes vote down vote up
@ManagedAttribute
public long getMaxEventSentInSecond() {
    long num = 0;
    for (SessionizerRunnable task : tasks) {
        num += task.maxEventsSentPerSecond;
    }
    return num;
}
 
Example #2
Source File: SessionizerProcessor.java    From realtime-analytics with GNU General Public License v2.0 5 votes vote down vote up
@ManagedAttribute
public long getReadTimeoutNum() {
    long num = 0;
    for (SessionizerRunnable task : tasks) {
        num += task.readTimeoutCounter;
    }
    return num;
}
 
Example #3
Source File: SessionizerCounterManager.java    From realtime-analytics with GNU General Public License v2.0 5 votes vote down vote up
@ManagedAttribute
public long getAverageSubSessionDuration() {
    long sessionNum = expiredSubSession - singleClickSubSessionCounter;
    if (sessionNum > 0) {
        return subSessionDurationTotal / sessionNum;
    } else {
        return 0;
    }
}
 
Example #4
Source File: HealthCheckConfiguration.java    From Kafdrop with Apache License 2.0 5 votes vote down vote up
@ManagedAttribute
public Map getHealth()
{
   Health health = healthEndpoint.health();
   Map healthMap = new LinkedHashMap();
   healthMap.put("status", getStatus(health));
   healthMap.put("detail", getDetails(health.getDetails()));
   return healthMap;
}
 
Example #5
Source File: SessionizerProcessor.java    From realtime-analytics with GNU General Public License v2.0 5 votes vote down vote up
@ManagedAttribute
public long getShortLiveSessionNum() {
    long num = 0;
    for (SessionizerRunnable task : tasks) {
        num += task.mainCounter.getShortSessionCounter();
    }
    return num;
}
 
Example #6
Source File: SessionizerProcessor.java    From realtime-analytics with GNU General Public License v2.0 5 votes vote down vote up
@ManagedAttribute
public long getOffHeapReservedMemory() {
    long size = 0;
    for (SessionizerRunnable task : tasks) {
        size += task.localSessionCache.getReservedMemory();
    }
    return size;
}
 
Example #7
Source File: SessionizerProcessor.java    From realtime-analytics with GNU General Public License v2.0 5 votes vote down vote up
@ManagedAttribute
public long getInvalidInternalEvents() {
    long num = 0;
    for (SessionizerRunnable task : tasks) {
        num += task.invalidInternalEventCounter;
    }
    return num;
}
 
Example #8
Source File: SessionizerProcessor.java    From realtime-analytics with GNU General Public License v2.0 5 votes vote down vote up
@ManagedAttribute
public long getEventSentInLastSecond() {
    long num = 0;
    for (SessionizerRunnable task : tasks) {
        num += task.eventSentInLastSecond;
    }
    return num;
}
 
Example #9
Source File: SessionizerProcessor.java    From realtime-analytics with GNU General Public License v2.0 5 votes vote down vote up
@ManagedAttribute
public long getPassthroughEvents() {
    long num = 0;
    for (SessionizerRunnable task : tasks) {
        num += task.bypassEventCounter;
    }
    return num;
}
 
Example #10
Source File: SessionizerCounterManager.java    From realtime-analytics with GNU General Public License v2.0 5 votes vote down vote up
@ManagedAttribute
public long getAverageSessionLagTime() {
    long sessionNum = createdSession;
    if (sessionNum > 0) {
        return sessionLagTime / sessionNum;
    } else {
        return 0;
    }
}
 
Example #11
Source File: SessionizerProcessor.java    From realtime-analytics with GNU General Public License v2.0 5 votes vote down vote up
@ManagedAttribute
public int getMaxEventCount() {
    int size = 0;
    for (SessionizerRunnable task : tasks) {
        size = Math.max(task.maxEventCount, size);
    }
    return size;
}
 
Example #12
Source File: SessionizerProcessor.java    From realtime-analytics with GNU General Public License v2.0 5 votes vote down vote up
@ManagedAttribute
public long getCreatedSessionNum() {
    long num = 0;
    for (SessionizerRunnable task : tasks) {
        num += task.mainCounter.getCreatedSession();
    }
    return num;
}
 
Example #13
Source File: AbstractServicesManagerMBean.java    From cas4.0.x-server-wechat with Apache License 2.0 5 votes vote down vote up
@ManagedAttribute(description = "Retrieves the list of Registered Services in a slightly friendlier output.")
public final List<String> getRegisteredServicesAsStrings() {
    final List<String> services = new ArrayList<String>();

    for (final RegisteredService r : this.servicesManager.getAllServices()) {
    services.add(new StringBuilder().append("id: ").append(r.getId())
            .append(" name: ").append(r.getName())
            .append(" enabled: ").append(r.isEnabled())
            .append(" ssoEnabled: ").append(r.isSsoEnabled())
            .append(" serviceId: ").append(r.getServiceId())
            .toString());
    }

    return services;
}
 
Example #14
Source File: SessionizerProcessor.java    From realtime-analytics with GNU General Public License v2.0 5 votes vote down vote up
@ManagedAttribute
public String getMaxEventSentInSecondDetail() {
    StringBuffer buf = new StringBuffer();
    for (SessionizerRunnable task : tasks) {
        buf.append(task.maxEventsSentPerSecond);
        buf.append(",");
    }
    return buf.toString();
}
 
Example #15
Source File: SessionizerProcessor.java    From realtime-analytics with GNU General Public License v2.0 5 votes vote down vote up
@ManagedAttribute
public long getExpirationDelay() {
    long currentTime = System.currentTimeMillis();
    long x = 0;
    for (int i = 0; i < expirationInfo.length; i++) {
        x += (currentTime - expirationInfo[i]);
    }
    return x / expirationInfo.length;
}
 
Example #16
Source File: SessionizerProcessor.java    From realtime-analytics with GNU General Public License v2.0 5 votes vote down vote up
@ManagedAttribute
public long getActiveSessionNum() {
    long size = 0;
    for (SessionizerRunnable task : tasks) {
        size += task.localSessionCache.getSize();
    }
    return size;
}
 
Example #17
Source File: SessionizerProcessor.java    From realtime-analytics with GNU General Public License v2.0 5 votes vote down vote up
@ManagedAttribute
public long getSingleClickSubSessionNum() {
    long num = 0;
    for (SessionizerRunnable task : tasks) {
        num += task.mainCounter.getSingleClickSubSessionCounter();
    }
    return num;
}
 
Example #18
Source File: SessionizerProcessor.java    From realtime-analytics with GNU General Public License v2.0 5 votes vote down vote up
@ManagedAttribute
public long getOffHeapFreeMemory() {
    long size = 0;
    for (SessionizerRunnable task : tasks) {
        size += task.localSessionCache.getFreeMemory();
    }
    return size;
}
 
Example #19
Source File: SessionizerProcessor.java    From realtime-analytics with GNU General Public License v2.0 5 votes vote down vote up
@ManagedAttribute
public long getAverageSubSessionDuration() {
    long num = 0;
    for (SessionizerRunnable task : tasks) {
        num += task.mainCounter.getSubSessionDurationTotal();
    }
    long sessionNum = getExpiredSubSessionNum() - getSingleClickSubSessionNum();
    if (sessionNum > 0) {
        return num / sessionNum;
    } else {
        return 0;
    }
}
 
Example #20
Source File: CallMonitoringAspect.java    From DevOps-for-Web-Development with MIT License 5 votes vote down vote up
@ManagedAttribute
public long getCallTime() {
    if (this.callCount > 0)
        return this.accumulatedCallTime / this.callCount;
    else
        return 0;
}
 
Example #21
Source File: SessionizerProcessor.java    From realtime-analytics with GNU General Public License v2.0 5 votes vote down vote up
@ManagedAttribute
public long getMaxSessionDuration() {
    long size = 0;
    for (SessionizerRunnable task : tasks) {
        size = Math.max(task.maxSessionDuration, size);
    }
    return size;
}
 
Example #22
Source File: SessionizerProcessor.java    From realtime-analytics with GNU General Public License v2.0 5 votes vote down vote up
@ManagedAttribute
public long getOffHeapMaxMemory() {
    long size = 0;
    for (SessionizerRunnable task : tasks) {
        size += task.localSessionCache.getMaxMemory();
    }
    return size;
}
 
Example #23
Source File: SessionizerProcessor.java    From realtime-analytics with GNU General Public License v2.0 5 votes vote down vote up
@ManagedAttribute
public long getInvalidRawEvents() {
    long num = 0;
    for (SessionizerRunnable task : tasks) {
        num += task.invalidRawEventCounter;
    }
    return num;
}
 
Example #24
Source File: SessionizerProcessor.java    From realtime-analytics with GNU General Public License v2.0 5 votes vote down vote up
@Override
@ManagedAttribute
public int getPendingEvents() {
    int num = 0;
    for (SessionizerRunnable task : tasks) {
        num += task.requestQueue.size();
    }
    return num;
}
 
Example #25
Source File: SessionizerProcessor.java    From realtime-analytics with GNU General Public License v2.0 5 votes vote down vote up
@ManagedAttribute
public long getOffHeapUsedMemory() {
    long size = 0;
    for (SessionizerRunnable task : tasks) {
        size += task.localSessionCache.getUsedMemory();
    }
    return size;
}
 
Example #26
Source File: SessionizerProcessor.java    From realtime-analytics with GNU General Public License v2.0 5 votes vote down vote up
@ManagedAttribute
public long getAsyncReadFailureNum() {
    long num = 0;
    for (SessionizerRunnable task : tasks) {
        num += task.asyncReadFailure;
    }
    return num;
}
 
Example #27
Source File: SessionizerErrorManager.java    From realtime-analytics with GNU General Public License v2.0 4 votes vote down vote up
@ManagedAttribute
public boolean getErrorManagerEnabled() {
    return errorManagerEnabled;
}
 
Example #28
Source File: DocumentsMetricsImpl.java    From webanno with Apache License 2.0 4 votes vote down vote up
@Override
@ManagedAttribute
public long getDocumentsTotal()
{
    return documentService.countSourceDocuments();
}
 
Example #29
Source File: JmxJDAMBean.java    From JuniperBot with GNU General Public License v3.0 4 votes vote down vote up
@ManagedAttribute(description = "[Rate-Limit Pool] Returns the size of current queue")
public int getRatePoolQueueSize() {
    return rateLimitPool != null ? rateLimitPool.getQueue().size() : 0;
}
 
Example #30
Source File: EsperProcessor.java    From jetstream-esper with GNU General Public License v2.0 4 votes vote down vote up
@ManagedAttribute
public int getCheckIntervalInSeconds() {
	return m_checkIntervalInSeconds;
}