KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > mx4j > remote > rmi > RMIHeartBeat


1 /*
2  * Copyright (C) MX4J.
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.remote.rmi;
10
11 import java.io.IOException JavaDoc;
12 import java.util.Map JavaDoc;
13
14 import javax.management.remote.rmi.RMIConnection JavaDoc;
15
16 import mx4j.remote.AbstractHeartBeat;
17 import mx4j.remote.ConnectionNotificationEmitter;
18
19 /**
20  * @author <a HREF="mailto:biorn_steedom@users.sourceforge.net">Simone Bordet</a>
21  * @version $Revision: 1.1 $
22  */

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