Package org.opennms.protocols.vmware
Class ServiceInstancePoolEntry
- java.lang.Object
-
- org.opennms.protocols.vmware.ServiceInstancePoolEntry
-
public class ServiceInstancePoolEntry extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ServiceInstancePoolEntry(ServiceInstancePool serviceInstancePool, java.lang.String hostname, java.lang.String username, java.lang.String password)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
expire(long ageInMilliseconds)
protected java.util.Map<com.vmware.vim25.mo.ServiceInstance,java.lang.Long>
getAccessTimestamp()
boolean
isUnused()
int
lockedEntryCount()
void
release(com.vmware.vim25.mo.ServiceInstance serviceInstance)
com.vmware.vim25.mo.ServiceInstance
retain(int timeout)
static void
setTimeout(com.vmware.vim25.mo.ServiceInstance serviceInstance, int timeout)
int
unlockedEntryCount()
-
-
-
Constructor Detail
-
ServiceInstancePoolEntry
public ServiceInstancePoolEntry(ServiceInstancePool serviceInstancePool, java.lang.String hostname, java.lang.String username, java.lang.String password)
-
-
Method Detail
-
retain
public com.vmware.vim25.mo.ServiceInstance retain(int timeout) throws java.net.MalformedURLException, java.rmi.RemoteException
- Throws:
java.net.MalformedURLException
java.rmi.RemoteException
-
setTimeout
public static void setTimeout(com.vmware.vim25.mo.ServiceInstance serviceInstance, int timeout)
-
expire
public void expire(long ageInMilliseconds)
-
isUnused
public boolean isUnused()
-
release
public void release(com.vmware.vim25.mo.ServiceInstance serviceInstance)
-
lockedEntryCount
public int lockedEntryCount()
-
unlockedEntryCount
public int unlockedEntryCount()
-
getAccessTimestamp
protected java.util.Map<com.vmware.vim25.mo.ServiceInstance,java.lang.Long> getAccessTimestamp()
-
-