Package org.opennms.protocols.vmware
Class ServiceInstancePool
- java.lang.Object
-
- org.opennms.protocols.vmware.ServiceInstancePool
-
public class ServiceInstancePool extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ServiceInstancePool()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.vmware.vim25.mo.ServiceInstancecreate(java.lang.String hostname, java.lang.String username, java.lang.String password, int timeout)intlockedEntryCount()intlockedEntryCount(java.lang.String key)voidrelease(com.vmware.vim25.mo.ServiceInstance serviceInstance)com.vmware.vim25.mo.ServiceInstanceretain(java.lang.String host, java.lang.String username, java.lang.String password, int timeout)intunlockedEntryCount()intunlockedEntryCount(java.lang.String key)protected booleanvalidate(com.vmware.vim25.mo.ServiceInstance serviceInstance)
-
-
-
Method Detail
-
validate
protected boolean validate(com.vmware.vim25.mo.ServiceInstance serviceInstance)
-
create
protected com.vmware.vim25.mo.ServiceInstance create(java.lang.String hostname, java.lang.String username, java.lang.String password, int timeout) throws java.net.MalformedURLException, java.rmi.RemoteException- Throws:
java.net.MalformedURLExceptionjava.rmi.RemoteException
-
retain
public com.vmware.vim25.mo.ServiceInstance retain(java.lang.String host, java.lang.String username, java.lang.String password, int timeout) throws java.net.MalformedURLException, java.rmi.RemoteException- Throws:
java.net.MalformedURLExceptionjava.rmi.RemoteException
-
release
public void release(com.vmware.vim25.mo.ServiceInstance serviceInstance)
-
lockedEntryCount
public int lockedEntryCount(java.lang.String key)
-
unlockedEntryCount
public int unlockedEntryCount(java.lang.String key)
-
lockedEntryCount
public int lockedEntryCount()
-
unlockedEntryCount
public int unlockedEntryCount()
-
-