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.boolean
is32Bit()
Returns true if the operating system is a 32-bit operating system.boolean
is64Bit()
Returns true if the operating system is a 64 a bit operating system.boolean
Returns true if the operating system is a FreeBSD.boolean
isLinux()
Returns true if the operating system is a Linux.boolean
isMac()
Returns true if the operating system is a Mac OS.boolean
Returns true if the operating system is a OpenBSD.boolean
isPosix()
Returns true if the operating system has posix support.boolean
Returns true if the operating system is a Solaris.boolean
isUnix()
Returns true if the operating system is a Unix system.boolean
Returns true if the operating system is a Windows.
-
Constructor Details
-
Platform
Constructs aPlatform
object- 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.
-