|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.Plugin
hudson.plugins.vmware.PluginImpl
public class PluginImpl
Entry point of vmware plugin.
| Constructor Summary | |
|---|---|
PluginImpl()
|
|
| Method Summary | |
|---|---|
static void |
awaitVMIP(java.lang.String key)
Waits until the specified key has been set. |
static boolean |
awaitVMIP(java.lang.String key,
long timeout,
java.util.concurrent.TimeUnit unit)
Waits at most timeout for the specified key to be set. |
static void |
clearVMIP(java.lang.String key)
Clears the key. |
void |
doQuery(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
Stapler handler for querying a VM IP. |
void |
doSet(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
Stapler handler for setting a VM IP. |
void |
doUnset(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
Stapler handler for unsetting a VM IP. |
void |
doVixLibraryCheck(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
Checks if the VIX path is a valid VIX path. |
static java.lang.String |
getVMIP(java.lang.String key)
Returns the current value of the key. |
java.util.Map<java.lang.String,java.lang.String> |
getVmIPAddresses()
Gets the current name-value pairs of virtual machine names and IP addresses. |
static java.util.Set<java.lang.String> |
getVMs()
Gets a set of all the current names. |
static void |
setVMIP(java.lang.String key,
java.lang.String ip)
Sets the key, releasing any threads that were waiting for it to be set. |
void |
start()
|
static void |
watchVMIP(java.lang.String key)
|
| Methods inherited from class hudson.Plugin |
|---|
doDynamic, setServletContext, stop |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PluginImpl()
| Method Detail |
|---|
public void start()
throws java.lang.Exception
start in class hudson.Pluginjava.lang.Exception
public void doVixLibraryCheck(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws java.io.IOException,
javax.servlet.ServletException
java.io.IOException
javax.servlet.ServletExceptionpublic java.util.Map<java.lang.String,java.lang.String> getVmIPAddresses()
public void doSet(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws java.io.IOException
req - The request.rsp - The response.
java.io.IOException - If there are problems with IO.
public void doUnset(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws java.io.IOException
req - The request.rsp - The response.
java.io.IOException - If there are problems with IO.
public void doQuery(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws java.io.IOException
req - The request.rsp - The response.
java.io.IOException - If there are problems with IO.
public static void awaitVMIP(java.lang.String key)
throws java.lang.InterruptedException
key - The key to look for.
java.lang.InterruptedException - If interrupted.
public static boolean awaitVMIP(java.lang.String key,
long timeout,
java.util.concurrent.TimeUnit unit)
throws java.lang.InterruptedException
timeout for the specified key to be set. Will return immediately if the key is
already set.
key - The key to look for.timeout - The timeout.unit - The units of the timeout.
true if the key has been set.
java.lang.InterruptedException - If interrupted.public static void watchVMIP(java.lang.String key)
public static void setVMIP(java.lang.String key,
java.lang.String ip)
key - The name.ip - The value.public static void clearVMIP(java.lang.String key)
key - The name.public static java.lang.String getVMIP(java.lang.String key)
key - The key.
null if empty.public static java.util.Set<java.lang.String> getVMs()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||