
io.github.fallwizard.rabbitmq.mgmt.model.Node Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rabbitmq-mgmt Show documentation
Show all versions of rabbitmq-mgmt Show documentation
Manage your RabbitMQ services programmatically
The newest version!
package io.github.fallwizard.rabbitmq.mgmt.model;
import java.util.Arrays;
import java.util.Collection;
/**
* Information about a single node in a RabbitMQ cluster.
*
* @author Richard Clayton (Berico Technologies)
*/
public class Node {
protected String name;
protected String type;
protected boolean running;
protected Object[] partitions;
protected String os_pid;
protected int fd_used;
protected int fd_total;
protected int sockets_used;
protected int sockets_total;
protected long mem_used;
protected long mem_limit;
protected boolean mem_alarm;
protected long disk_free_limit;
protected long disk_free;
protected boolean disk_free_alarm;
protected long proc_used;
protected long proc_total;
protected String statistics_level;
protected long uptime;
protected long run_queue;
protected int processors;
protected Collection exchange_types;
protected Collection applications;
protected Collection auth_mechanisms;
protected Collection contexts;
public Node(){}
public String getName() {
return name;
}
public String getType() {
return type;
}
public boolean isRunning() {
return running;
}
public Object[] getPartitions() {
return partitions;
}
public String getOSProcessID() {
return os_pid;
}
public int getFdUsed() {
return fd_used;
}
public int getFdTotal() {
return fd_total;
}
public int getSocketsUsed() {
return sockets_used;
}
public int getSocketsTotal() {
return sockets_total;
}
public long getMemoryUsed() {
return mem_used;
}
public long getMemoryLimit() {
return mem_limit;
}
public boolean isMemoryThresholdCritical() {
return mem_alarm;
}
public long getDiskFreeLimit() {
return disk_free_limit;
}
public long getDiskFree() {
return disk_free;
}
public boolean isDiskFreeThresholdCritical() {
return disk_free_alarm;
}
public long getProcessesUsed() {
return proc_used;
}
public long getProcessesTotal() {
return proc_total;
}
public String getStatisticsLevel() {
return statistics_level;
}
public long getUptime() {
return uptime;
}
public long getRunQueue() {
return run_queue;
}
public int getProcessors() {
return processors;
}
public Collection getExchangeTypes() {
return exchange_types;
}
public Collection getCapabilities() {
return applications;
}
public Collection getAuthMechanisms() {
return auth_mechanisms;
}
public Collection getContexts() {
return contexts;
}
@Override
public String toString() {
return "Node [name=" + name + ", type=" + type + ", running=" + running
+ ", partitions=" + Arrays.toString(partitions) + ", os_pid="
+ os_pid + ", fd_used=" + fd_used + ", fd_total=" + fd_total
+ ", sockets_used=" + sockets_used + ", sockets_total="
+ sockets_total + ", mem_used=" + mem_used + ", mem_limit="
+ mem_limit + ", mem_alarm=" + mem_alarm + ", disk_free_limit="
+ disk_free_limit + ", disk_free=" + disk_free
+ ", disk_free_alarm=" + disk_free_alarm + ", proc_used="
+ proc_used + ", proc_total=" + proc_total
+ ", statistics_level=" + statistics_level + ", uptime="
+ uptime + ", run_queue=" + run_queue + ", processors="
+ processors + ", exchange_types=" + exchange_types
+ ", applications=" + applications + ", auth_mechanisms="
+ auth_mechanisms + ", contexts=" + contexts + "]";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy