hudson.os.solaris
Class ZFSInstaller

java.lang.Object
  extended by hudson.model.AbstractModelObject
      extended by hudson.model.AdministrativeMonitor
          extended by hudson.os.solaris.ZFSInstaller
All Implemented Interfaces:
ExtensionPoint, ModelObject, SearchableModelObject, SearchItem, Serializable

public class ZFSInstaller
extends AdministrativeMonitor
implements Serializable

Encourages the user to migrate JENKINS_HOME on a ZFS file system.

Since:
1.283
Author:
Kohsuke Kawaguchi
See Also:
Serialized Form

Nested Class Summary
static class ZFSInstaller.MigrationCompleteNotice
          Used to indicate that the migration was completed successfully.
static class ZFSInstaller.MigrationFailedNotice
          Used to indicate a failure in the migration.
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
static boolean disabled
          Escape hatch in case JNI calls fatally crash, like in HUDSON-3733.
 
Fields inherited from class hudson.model.AdministrativeMonitor
id
 
Constructor Summary
ZFSInstaller()
           
 
Method Summary
 org.kohsuke.stapler.HttpResponse doAct(org.kohsuke.stapler.StaplerRequest req)
          Called from the management screen.
 void doStart(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp, String username, String password)
          Called from the confirmation screen to actually initiate the migration.
 String getProspectiveZfsFileSystemName()
           
static AdministrativeMonitor init()
           
 boolean isActivated()
          Returns true if this monitor is activated and wants to produce a warning message.
 boolean isRoot()
           
 
Methods inherited from class hudson.model.AdministrativeMonitor
all, disable, doDisable, getDisplayName, getSearchUrl, getUrl, isEnabled
 
Methods inherited from class hudson.model.AbstractModelObject
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

disabled

public static boolean disabled
Escape hatch in case JNI calls fatally crash, like in HUDSON-3733.

Constructor Detail

ZFSInstaller

public ZFSInstaller()
Method Detail

isActivated

public boolean isActivated()
Description copied from class: AdministrativeMonitor
Returns true if this monitor is activated and wants to produce a warning message.

This method is called from the HTML rendering thread, so it should run efficiently.

Specified by:
isActivated in class AdministrativeMonitor

isRoot

public boolean isRoot()

getProspectiveZfsFileSystemName

public String getProspectiveZfsFileSystemName()

doAct

public org.kohsuke.stapler.HttpResponse doAct(org.kohsuke.stapler.StaplerRequest req)
                                       throws javax.servlet.ServletException,
                                              IOException
Called from the management screen.

Throws:
javax.servlet.ServletException
IOException

doStart

public void doStart(org.kohsuke.stapler.StaplerRequest req,
                    org.kohsuke.stapler.StaplerResponse rsp,
                    @QueryParameter
                    String username,
                    @QueryParameter
                    String password)
             throws javax.servlet.ServletException,
                    IOException
Called from the confirmation screen to actually initiate the migration.

Throws:
javax.servlet.ServletException
IOException

init

@Extension
public static AdministrativeMonitor init()


Copyright © 2004-2013. All Rights Reserved.