KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > ubermq > jms > server > cluster > ClusterMembership


1 /*
2  * Copyright (c) 2004 Rhombus Technologies, Inc.
3  * All rights reserved.
4  */

5 package com.ubermq.jms.server.cluster;
6
7 import java.rmi.RemoteException JavaDoc;
8
9 import javax.jms.ConnectionFactory JavaDoc;
10
11 /**
12  * Represents a server's membership in a cluster. Through this interface, a server
13  * instance can join and leave a cluster.
14  */

15 public interface ClusterMembership
16 {
17     /**
18      * Joins the cluster.
19      * @param cf the connection factory to use to replicate messages locally.
20      * @throws RemoteException if the cluster could not be joined.
21      */

22     public void join(ConnectionFactory JavaDoc cf) throws RemoteException JavaDoc;
23
24     /**
25      * Leaves the cluster gracefully.
26      * @throws RemoteException if the cluster could not be left.
27      */

28     public void leave() throws RemoteException JavaDoc;
29 }
30
Popular Tags