KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > capabilities > StandardCapabilitiesImpl


1 package com.tc.capabilities;
2
3 import com.tc.properties.TCPropertiesImpl;
4
5 import java.util.Date JavaDoc;
6
7 public class StandardCapabilitiesImpl implements Capabilities {
8
9   private static final boolean NETWORK_ENABLED_HA = TCPropertiesImpl.getProperties()
10                                                       .getBoolean("l2.ha.network.enabled");
11
12   public int maxL2Connections() {
13     return Integer.MAX_VALUE;
14   }
15
16   public long maxL2RuntimeMillis() {
17     return Integer.MAX_VALUE;
18   }
19
20   public Date JavaDoc l2ExpiresOn() {
21     return new Date JavaDoc(Integer.MAX_VALUE);
22   }
23
24   public boolean canClusterPOJOs() {
25     return true;
26   }
27
28   public boolean hasHA() {
29     return true;
30   }
31
32   public String JavaDoc describe() {
33     return "Unlimited capabilities";
34   }
35
36   public boolean hasHAOverNetwork() {
37     return NETWORK_ENABLED_HA;
38   }
39 }
40
Popular Tags