Package org.opennms.protocols.vmware
Class ServiceInstancePool
- java.lang.Object
-
- org.opennms.protocols.vmware.ServiceInstancePool
-
public class ServiceInstancePool extends 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(String hostname, String username, String password, int timeout)
int
lockedEntryCount()
int
lockedEntryCount(String key)
void
release(com.vmware.vim25.mo.ServiceInstance serviceInstance)
com.vmware.vim25.mo.ServiceInstance
retain(String host, String username, String password, int timeout)
int
unlockedEntryCount()
int
unlockedEntryCount(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(String hostname, String username, String password, int timeout) throws MalformedURLException, RemoteException
- Throws:
MalformedURLException
RemoteException
-
retain
public com.vmware.vim25.mo.ServiceInstance retain(String host, String username, String password, int timeout) throws MalformedURLException, RemoteException
- Throws:
MalformedURLException
RemoteException
-
release
public void release(com.vmware.vim25.mo.ServiceInstance serviceInstance)
-
lockedEntryCount
public int lockedEntryCount(String key)
-
unlockedEntryCount
public int unlockedEntryCount(String key)
-
lockedEntryCount
public int lockedEntryCount()
-
unlockedEntryCount
public int unlockedEntryCount()
-
-