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.ServiceInstance
create(java.lang.String hostname, java.lang.String username, java.lang.String password, int timeout)
int
lockedEntryCount()
int
lockedEntryCount(java.lang.String key)
void
release(com.vmware.vim25.mo.ServiceInstance serviceInstance)
com.vmware.vim25.mo.ServiceInstance
retain(java.lang.String host, java.lang.String username, java.lang.String password, int timeout)
int
unlockedEntryCount()
int
unlockedEntryCount(java.lang.String key)
protected boolean
validate(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.MalformedURLException
java.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.MalformedURLException
java.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()
-
-