KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > admin > common > PollerNode


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package com.tc.admin.common;
5
6 import org.dijon.Component;
7
8 public class PollerNode extends ComponentNode {
9   public PollerNode(String JavaDoc label, Component poller) {
10     super(label, poller);
11   }
12
13   public void tearDown() {
14     Poller poller = (Poller)getComponent();
15     
16     if(poller != null) {
17       poller.stop();
18     }
19
20     super.tearDown();
21   }
22 }
23
Popular Tags