public class KeepAlive
extends java.lang.Object
implements java.lang.Runnable
VimPortType| Modifier and Type | Field and Description |
|---|---|
static java.lang.Long |
DEFAULT_INTERVAL |
| Constructor and Description |
|---|
KeepAlive(com.vmware.vim25.VimPortType vimPort,
com.vmware.vim25.ManagedObjectReference serviceInstanceReference)
this class is immutable and acts on the supplied vimPort and serviceInstanceReference the default
interval is set to 300000 milliseconds
|
KeepAlive(com.vmware.vim25.VimPortType vimPort,
com.vmware.vim25.ManagedObjectReference serviceInstanceReference,
java.lang.Long interval)
builds an instance of this object
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isRunning() |
void |
keepAlive()
kicks off a thread that will call the "keep alive" method on the connection instance
|
static java.lang.Thread |
keepAlive(com.vmware.vim25.VimPortType vimPort,
com.vmware.vim25.ManagedObjectReference serviceInstanceRef)
Returns a thread you can start to run a keep alive on your connection.
|
static java.lang.Thread |
keepAlive(com.vmware.vim25.VimPortType vimPort,
com.vmware.vim25.ManagedObjectReference serviceInstanceRef,
java.lang.Long interval)
constructs a new embedded thread to keep alive
|
void |
run()
starts a keep-alive thread which will call keepAlive then sleep for the interval
|
static void |
run(com.vmware.vim25.VimPortType vimPort,
com.vmware.vim25.ManagedObjectReference serviceInstanceRef)
calls "currentTime" against the supplied objects
|
void |
stop()
signals the embedded thread to stop
|
public KeepAlive(com.vmware.vim25.VimPortType vimPort,
com.vmware.vim25.ManagedObjectReference serviceInstanceReference)
vimPort - serviceInstanceReference - public KeepAlive(com.vmware.vim25.VimPortType vimPort,
com.vmware.vim25.ManagedObjectReference serviceInstanceReference,
java.lang.Long interval)
vimPort - serviceInstanceReference - interval - public void keepAlive()
public static void run(com.vmware.vim25.VimPortType vimPort,
com.vmware.vim25.ManagedObjectReference serviceInstanceRef)
throws com.vmware.vim25.RuntimeFaultFaultMsg
vimPort - serviceInstanceRef - com.vmware.vim25.RuntimeFaultFaultMsgpublic boolean isRunning()
public void stop()
public void run()
run in interface java.lang.Runnablepublic static java.lang.Thread keepAlive(com.vmware.vim25.VimPortType vimPort,
com.vmware.vim25.ManagedObjectReference serviceInstanceRef)
vimPort - serviceInstanceRef - public static java.lang.Thread keepAlive(com.vmware.vim25.VimPortType vimPort,
com.vmware.vim25.ManagedObjectReference serviceInstanceRef,
java.lang.Long interval)
vimPort - serviceInstanceRef - interval -