int incoming = incomingConnections.containsKey(stream) ? incomingConnections.get(stream) : 0; int outgoing = outgoingConnections.containsKey(stream) ? outgoingConnections.get(stream) : 0; streamProperties[i] = new Property("stream " + stream, null, new Property("nodes", incoming + outgoing), new Property("incoming", incoming), new Property("outgoing", outgoing) ); i++; return new Property("network", null, new Property("connectionManager", running ? "running" : "stopped"), new Property("connections", null, streamProperties), new Property("requestedObjects", requestedObjects.size()) );
int incoming = incomingConnections.containsKey(stream) ? incomingConnections.get(stream) : 0; int outgoing = outgoingConnections.containsKey(stream) ? outgoingConnections.get(stream) : 0; streamProperties[i] = new Property("stream " + stream, null, new Property("nodes", incoming + outgoing), new Property("incoming", incoming), new Property("outgoing", outgoing) ); i++; return new Property("network", null, new Property("connectionManager", isRunning() ? "running" : "stopped"), new Property("connections", null, streamProperties), new Property("requestedObjects", requestedObjects.size()) );
public Property status() { return new Property("status", null, ctx.getNetworkHandler().getNetworkStatus() ); }