Package sonia.scm
Class Platform
java.lang.Object
sonia.scm.Platform
Represents the platform on which the SCM manager running.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetArch()Returns the architecture of the platform.getName()Returns the name of the platform.getType()Returns the type of the platform.booleanis32Bit()Returns true if the operating system is a 32-bit operating system.booleanis64Bit()Returns true if the operating system is a 64 a bit operating system.booleanReturns true if the operating system is a FreeBSD.booleanisLinux()Returns true if the operating system is a Linux.booleanisMac()Returns true if the operating system is a Mac OS.booleanReturns true if the operating system is a OpenBSD.booleanisPosix()Returns true if the operating system has posix support.booleanReturns true if the operating system is a Solaris.booleanisUnix()Returns true if the operating system is a Unix system.booleanReturns true if the operating system is a Windows.
-
Constructor Details
-
Platform
Constructs aPlatformobject- Parameters:
osName- - name of the operating systemarchModel- - name of the host architecture modelosArch- - 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
Returns the architecture of the platform. -
getName
Returns the name of the platform. -
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.
-