| 1 | package dolda.jsvc.scgi.jmx; |
| 2 | |
| 3 | import javax.management.*; |
| 4 | import dolda.jsvc.scgi.*; |
| 5 | |
| 6 | public class Server implements ServerMBean { |
| 7 | public static final ObjectName name; |
| 8 | private final DirServer b; |
| 9 | |
| 10 | static { |
| 11 | try { |
| 12 | name = new ObjectName("dolda.jsvc", "type", "ScgiServer"); |
| 13 | } catch(MalformedObjectNameException e) { |
| 14 | throw(new RuntimeException(e)); |
| 15 | } |
| 16 | } |
| 17 | |
| 18 | public Server(DirServer b) { |
| 19 | this.b = b; |
| 20 | } |
| 21 | |
| 22 | public String getdataroot() { |
| 23 | return(b.env.root.getPath()); |
| 24 | } |
| 25 | } |