1 package org.apache.jcs.engine;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 import java.rmi.dgc.VMID;
23
24 /***
25 * This is a static variable holder for the distribution auxiliaries that need something like a vmid.
26 */
27 public final class CacheInfo
28 {
29 /*** shouldn't be instantiated */
30 private CacheInfo()
31 {
32 super();
33 }
34
35 /***
36 * Used to identify a client, so we can run multiple clients off one host.
37 * Need since there is no way to identify a client other than by host in
38 * rmi.
39 * <p>
40 * TODO: may have some trouble in failover mode if the cache keeps its old
41 * id. We may need to reset this when moving into failover.
42 */
43 protected static VMID vmid = new VMID();
44
45 /*** By default this is the hashcode of the VMID */
46 public static long listenerId = vmid.hashCode();
47 }