1 package dolda.jsvc.jmx;
3 import javax.management.*;
7 public class Context implements ContextMBean {
8 public final ObjectName name;
9 private final ThreadContext b;
11 public Context(ThreadContext ctx) {
13 Hashtable<String, String> info = new Hashtable<String, String>();
14 info.put("type", "Context");
15 info.put("name", getname());
17 name = new ObjectName("dolda.jsvc", info);
18 } catch(MalformedObjectNameException e) {
19 throw(new RuntimeException(e));
23 public long getrequests() {
27 public String getname() {
28 return(b.server().name());