Package sonia.scm

Class Platform

java.lang.Object
sonia.scm.Platform

public class Platform extends Object
Represents the platform on which the SCM manager running.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Platform(String osName, String archModel, String osArch)
    Constructs a Platform object
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the architecture of the platform.
    Returns the name of the platform.
    Returns the type of the platform.
    boolean
    Returns true if the operating system is a 32-bit operating system.
    boolean
    Returns true if the operating system is a 64 a bit operating system.
    boolean
    Returns true if the operating system is a FreeBSD.
    boolean
    Returns true if the operating system is a Linux.
    boolean
    Returns true if the operating system is a Mac OS.
    boolean
    Returns true if the operating system is a OpenBSD.
    boolean
    Returns true if the operating system has posix support.
    boolean
    Returns true if the operating system is a Solaris.
    boolean
    Returns true if the operating system is a Unix system.
    boolean
    Returns true if the operating system is a Windows.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Platform

      public Platform(String osName, String archModel, String osArch)
      Constructs a Platform object
      Parameters:
      osName - - name of the operating system
      archModel - - name of the host architecture model
      osArch - - name of the operating system architecture
  • Method Details

    • is32Bit

      public boolean is32Bit()
      Returns true if the operating system is a 32-bit operating system.
    • is64Bit

      public boolean is64Bit()
      Returns true if the operating system is a 64 a bit operating system.
    • getArch

      public String getArch()
      Returns the architecture of the platform.
    • getName

      public String getName()
      Returns the name of the platform.
    • getType

      public PlatformType getType()
      Returns the type of the platform.
    • isFreeBSD

      public boolean isFreeBSD()
      Returns true if the operating system is a FreeBSD.
    • isLinux

      public boolean isLinux()
      Returns true if the operating system is a Linux.
    • isMac

      public boolean isMac()
      Returns true if the operating system is a Mac OS.
    • isOpenBSD

      public boolean isOpenBSD()
      Returns true if the operating system is a OpenBSD.
    • isPosix

      public boolean isPosix()
      Returns true if the operating system has posix support.
    • isSolaris

      public boolean isSolaris()
      Returns true if the operating system is a Solaris.
    • isUnix

      public boolean isUnix()
      Returns true if the operating system is a Unix system.
    • isWindows

      public boolean isWindows()
      Returns true if the operating system is a Windows.