Esempio n. 1
0
  public int getBitness() {
    String osgiArch = getOsgiArch();
    if (Platform.ARCH_IA64_32.equals(osgiArch) || Platform.ARCH_X86.equals(osgiArch)) {
      return 32;
    }

    return 64;
  }
Esempio n. 2
0
    @Override
    public OS getForBitness(int bitness) {
      String osgiArch = getOsgiArch();
      if (bitness == 32) {
        if (Platform.ARCH_X86_64.equals(osgiArch)) {
          return createLinux(Platform.ARCH_X86);
        }

        if (Platform.ARCH_IA64.equals(osgiArch)) {
          return createLinux(Platform.ARCH_IA64_32);
        }
      } else {
        if (Platform.ARCH_X86.equals(osgiArch)) {
          return createLinux(Platform.ARCH_X86_64);
        }

        if (Platform.ARCH_IA64_32.equals(osgiArch)) {
          return createLinux(Platform.ARCH_IA64);
        }
      }

      return this;
    }