public class EnforcerPortRule extends Object implements org.apache.maven.enforcer.rule.api.EnforcerRule
Constructor and Description |
---|
EnforcerPortRule() |
Modifier and Type | Method and Description |
---|---|
static boolean |
available(int port)
Check port availability.
|
void |
execute(org.apache.maven.enforcer.rule.api.EnforcerRuleHelper helper) |
String |
getCacheId()
If your rule is cacheable, you must return a unique id when parameters or
conditions change that would cause the result to be different.
|
boolean |
isCacheable()
This tells the system if the results are cacheable at all.
|
boolean |
isResultValid(org.apache.maven.enforcer.rule.api.EnforcerRule arg0)
If the rule is cacheable and the same id is found in the cache, the stored
results are passed to this method to allow double checking of the results.
|
public static boolean available(int port)
public void execute(org.apache.maven.enforcer.rule.api.EnforcerRuleHelper helper) throws org.apache.maven.enforcer.rule.api.EnforcerRuleException
execute
in interface org.apache.maven.enforcer.rule.api.EnforcerRule
org.apache.maven.enforcer.rule.api.EnforcerRuleException
public String getCacheId()
getCacheId
in interface org.apache.maven.enforcer.rule.api.EnforcerRule
public boolean isCacheable()
isCacheable
in interface org.apache.maven.enforcer.rule.api.EnforcerRule
public boolean isResultValid(org.apache.maven.enforcer.rule.api.EnforcerRule arg0)
isResultValid
in interface org.apache.maven.enforcer.rule.api.EnforcerRule
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.