KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > mx4j > tools > remote > http > HTTPHeartBeat


1 /*
2  * Copyright (C) The MX4J Contributors.
3  * All rights reserved.
4  *
5  * This software is distributed under the terms of the MX4J License version 1.0.
6  * See the terms of the MX4J License in the documentation provided with this software.
7  */

8
9 package mx4j.tools.remote.http;
10
11 import java.io.IOException JavaDoc;
12 import java.util.Map JavaDoc;
13
14 import mx4j.remote.AbstractHeartBeat;
15 import mx4j.remote.ConnectionNotificationEmitter;
16
17 /**
18  * @version $Revision: 1.3 $
19  */

20 public class HTTPHeartBeat extends AbstractHeartBeat
21 {
22    private final HTTPConnection connection;
23
24    public HTTPHeartBeat(HTTPConnection connection, ConnectionNotificationEmitter emitter, Map JavaDoc environment)
25    {
26       super(emitter, environment);
27       this.connection = connection;
28    }
29
30    protected void pulse() throws IOException JavaDoc
31    {
32       connection.getDefaultDomain(null);
33    }
34 }
35
Popular Tags