uk.co.petertribble.solview.explorer
Class Mnttab

java.lang.Object
  extended by uk.co.petertribble.solview.explorer.Mnttab

public class Mnttab
extends java.lang.Object


Constructor Summary
Mnttab()
          Parse the list of mounted filesystems.
 
Method Summary
 java.lang.String getDevice(java.lang.String fs)
          Returns the String representation of the device for the given filesystem.
 java.lang.String getDeviceID(java.lang.String fs)
          Return the device id of the given filesystem.
 java.lang.String getFSforDevice(java.lang.String s)
          Return the first filesystem with the given deviceid.
 java.util.List<java.lang.String> getFSforFstype(java.lang.String ftype)
          Return a list of filesystems of the given fstype.
 java.util.List<java.lang.String> getFSforZone(java.lang.String myzone)
          Return a list of filesystems in a given zone.
 java.lang.String getFsType(java.lang.String fs)
          Returns the String representation of the filesystem type of the given filesystem.
 java.util.List<java.lang.String> getFstypeList()
          Return a list of mounted fstypes.
 java.util.List<java.lang.String> getIDforFstype(java.lang.String ftype)
          Return a list of device ids of the given fstype.
 boolean getIgnore(java.lang.String fs)
          Return true or false depending on whether the filesystem has the ignore flag set.
 java.util.List getOptions(java.lang.String fs)
          Returns a List of Strings which are the mount options for the given filesystem.
 java.util.List<java.lang.String> getZoneList()
          Return a list of zones that have filesystems mounted.
 java.lang.String getZoneName(java.lang.String fs)
          Return the zone the filesystem is mounted in.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Mnttab

public Mnttab()
Parse the list of mounted filesystems.

Method Detail

getDevice

public java.lang.String getDevice(java.lang.String fs)
Returns the String representation of the device for the given filesystem.

Parameters:
fs - The filesystem of interest
Returns:
The type of the given filesystem

getFsType

public java.lang.String getFsType(java.lang.String fs)
Returns the String representation of the filesystem type of the given filesystem.

Parameters:
fs - The filesystem of interest
Returns:
The type of the given filesystem

getOptions

public java.util.List getOptions(java.lang.String fs)
Returns a List of Strings which are the mount options for the given filesystem.

Parameters:
fs - The filesystem of interest
Returns:
The mount options of the given filesystem

getZoneName

public java.lang.String getZoneName(java.lang.String fs)
Return the zone the filesystem is mounted in. If not specified, return the literal String "global".

Parameters:
fs - The filesystem of interest
Returns:
The name of the zone that the given filesystem is mounted in.

getDeviceID

public java.lang.String getDeviceID(java.lang.String fs)
Return the device id of the given filesystem.

Parameters:
fs - The filesystem of interest
Returns:
The device id of the given filesystem

getIgnore

public boolean getIgnore(java.lang.String fs)
Return true or false depending on whether the filesystem has the ignore flag set. If no filesystem matches, return false.

Parameters:
fs - The filesystem of interest
Returns:
Whether the given filesystem has te ignore flga set

getFSforDevice

public java.lang.String getFSforDevice(java.lang.String s)
Return the first filesystem with the given deviceid.

Parameters:
s - A device id
Returns:
The name of the first filesystem with the given device id

getZoneList

public java.util.List<java.lang.String> getZoneList()
Return a list of zones that have filesystems mounted.

Returns:
A List of zones that have mounted filesystems

getFSforZone

public java.util.List<java.lang.String> getFSforZone(java.lang.String myzone)
Return a list of filesystems in a given zone.

Parameters:
myzone - The zone name to be queried
Returns:
A List of filesystems that the given zone has mounted

getFstypeList

public java.util.List<java.lang.String> getFstypeList()
Return a list of mounted fstypes.

Returns:
A List of filesystem types that are currently mounted

getFSforFstype

public java.util.List<java.lang.String> getFSforFstype(java.lang.String ftype)
Return a list of filesystems of the given fstype.

Parameters:
ftype - The requested filesystem type
Returns:
A List of filesystems of the given filesystem type

getIDforFstype

public java.util.List<java.lang.String> getIDforFstype(java.lang.String ftype)
Return a list of device ids of the given fstype.

Parameters:
ftype - The requested filesystem type
Returns:
A List of device IDs for the given filesystem type