Package io.jenkins.plugins.redis
Class RedisFingerprintStorageDescriptor
java.lang.Object
hudson.model.Descriptor<FingerprintStorage>
jenkins.fingerprints.FingerprintStorageDescriptor
io.jenkins.plugins.redis.RedisFingerprintStorageDescriptor
- Direct Known Subclasses:
RedisFingerprintStorage.DescriptorImpl
public class RedisFingerprintStorageDescriptor extends FingerprintStorageDescriptor
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
-
Field Summary
Fields Modifier and Type Field Description static int
DEFAULT_CONNECTION_TIMEOUT
static String
DEFAULT_CREDENTIALS_ID
static int
DEFAULT_DATABASE
static String
DEFAULT_HOST
static int
DEFAULT_PORT
static int
DEFAULT_SOCKET_TIMEOUT
static boolean
DEFAULT_SSL
-
Constructor Summary
Constructors Constructor Description RedisFingerprintStorageDescriptor()
-
Method Summary
Modifier and Type Method Description FormValidation
doCheckCredentialsId(Item item, String value)
ListBoxModel
doFillCredentialsIdItems(Item item, String credentialsId)
FormValidation
doTestRedisConnection(String host, int port, int database, boolean ssl, String credentialsId, int connectionTimeout, int socketTimeout)
String
getDisplayName()
protected void
testConnection(String host, int port, int database, String credentialsId, boolean ssl, int connectionTimeout, int socketTimeout)
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, configure, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
Field Details
-
DEFAULT_HOST
- See Also:
- Constant Field Values
-
DEFAULT_PORT
public static final int DEFAULT_PORT- See Also:
- Constant Field Values
-
DEFAULT_DATABASE
public static final int DEFAULT_DATABASE- See Also:
- Constant Field Values
-
DEFAULT_SSL
public static final boolean DEFAULT_SSL- See Also:
- Constant Field Values
-
DEFAULT_CONNECTION_TIMEOUT
public static final int DEFAULT_CONNECTION_TIMEOUT- See Also:
- Constant Field Values
-
DEFAULT_SOCKET_TIMEOUT
public static final int DEFAULT_SOCKET_TIMEOUT- See Also:
- Constant Field Values
-
DEFAULT_CREDENTIALS_ID
- See Also:
- Constant Field Values
-
-
Constructor Details
-
RedisFingerprintStorageDescriptor
public RedisFingerprintStorageDescriptor()
-
-
Method Details
-
getDisplayName
- Overrides:
getDisplayName
in classDescriptor<FingerprintStorage>
-
doFillCredentialsIdItems
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public ListBoxModel doFillCredentialsIdItems(@AncestorInPath Item item, @QueryParameter String credentialsId) -
doCheckCredentialsId
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public FormValidation doCheckCredentialsId(@AncestorInPath Item item, @QueryParameter String value) -
doTestRedisConnection
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public FormValidation doTestRedisConnection(@QueryParameter("host") String host, @QueryParameter("port") int port, @QueryParameter("database") int database, @QueryParameter("ssl") boolean ssl, @QueryParameter("credentialsId") String credentialsId, @QueryParameter("connectionTimeout") int connectionTimeout, @QueryParameter("socketTimeout") int socketTimeout) throws IOException, javax.servlet.ServletException- Throws:
IOException
javax.servlet.ServletException
-
testConnection
protected void testConnection(String host, int port, int database, String credentialsId, boolean ssl, int connectionTimeout, int socketTimeout) throws redis.clients.jedis.exceptions.JedisException- Throws:
redis.clients.jedis.exceptions.JedisException
-