Class DefaultDIManagers
java.lang.Object
org.openspaces.admin.internal.dimanager.DefaultDIManagers
- All Implemented Interfaces:
Iterable<DIManager>, AdminAware, DIManagers, InternalDIManagers
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDIManager(InternalDIManager diManager) voidaddLifecycleListener(DIManagerLifecycleEventListener eventListener) Allows to add aDIManagerLifecycleEventListener.getAdmin()Returns theAdminassociated with this element.Returns the DI-Manager added event manager allowing to add and removeDIManagerAddedEventListeners.Returns the DI-Manager removed event manager allowing to add and removeDIManagerRemovedEventListeners.getManagerByUID(String uid) Returns a DI-Manager based on its uid.Returns all the currently discovered DI-Managers.intgetSize()Returns the number of DI-Managers currently discovered.getUids()Returns a map of DI-Manager with the key as the uid.booleanisEmpty()Returnstrueif there are no DI-Managers,falseotherwise.iterator()removeDIManager(String uid) voidremoveLifecycleListener(DIManagerLifecycleEventListener eventListener) Allows to remove aDIManagerLifecycleEventListener.booleanwaitFor(int numberOfDIManagers) Waits indefinitely till the provided number of DI-Managers are up.booleanWaits for the given timeout (in time unit) till the provided number of DI-Managers are up.Waits indefinitely till at least one DI-Manager is discovered and returns it.waitForAtLeastOne(long timeout, TimeUnit timeUnit) Waits for the given timeout (in time unit) till at least one DI-Manager is discovered and returns it.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterable
forEach, spliterator
-
Constructor Details
-
DefaultDIManagers
-
-
Method Details
-
getAdmin
Description copied from interface:AdminAwareReturns theAdminassociated with this element.- Specified by:
getAdminin interfaceAdminAware
-
getDIManagerAdded
Description copied from interface:DIManagersReturns the DI-Manager added event manager allowing to add and removeDIManagerAddedEventListeners.- Specified by:
getDIManagerAddedin interfaceDIManagers
-
getDIManagerRemoved
Description copied from interface:DIManagersReturns the DI-Manager removed event manager allowing to add and removeDIManagerRemovedEventListeners.- Specified by:
getDIManagerRemovedin interfaceDIManagers
-
getManagers
Description copied from interface:DIManagersReturns all the currently discovered DI-Managers.- Specified by:
getManagersin interfaceDIManagers
-
getManagerByUID
Description copied from interface:DIManagersReturns a DI-Manager based on its uid.- Specified by:
getManagerByUIDin interfaceDIManagers- See Also:
-
getUids
Description copied from interface:DIManagersReturns a map of DI-Manager with the key as the uid.- Specified by:
getUidsin interfaceDIManagers
-
getSize
public int getSize()Description copied from interface:DIManagersReturns the number of DI-Managers currently discovered.- Specified by:
getSizein interfaceDIManagers
-
isEmpty
public boolean isEmpty()Description copied from interface:DIManagersReturnstrueif there are no DI-Managers,falseotherwise.- Specified by:
isEmptyin interfaceDIManagers
-
waitForAtLeastOne
Description copied from interface:DIManagersWaits indefinitely till at least one DI-Manager is discovered and returns it.- Specified by:
waitForAtLeastOnein interfaceDIManagers
-
waitForAtLeastOne
Description copied from interface:DIManagersWaits for the given timeout (in time unit) till at least one DI-Manager is discovered and returns it.- Specified by:
waitForAtLeastOnein interfaceDIManagers
-
waitFor
public boolean waitFor(int numberOfDIManagers) Description copied from interface:DIManagersWaits indefinitely till the provided number of DI-Managers are up. When passing 0, will wait till there are no more DI-Managers.- Specified by:
waitForin interfaceDIManagers
-
waitFor
Description copied from interface:DIManagersWaits for the given timeout (in time unit) till the provided number of DI-Managers are up.- Specified by:
waitForin interfaceDIManagers
-
addLifecycleListener
Description copied from interface:DIManagersAllows to add aDIManagerLifecycleEventListener.- Specified by:
addLifecycleListenerin interfaceDIManagers
-
removeLifecycleListener
Description copied from interface:DIManagersAllows to remove aDIManagerLifecycleEventListener.- Specified by:
removeLifecycleListenerin interfaceDIManagers
-
iterator
-
addDIManager
- Specified by:
addDIManagerin interfaceInternalDIManagers
-
removeDIManager
- Specified by:
removeDIManagerin interfaceInternalDIManagers
-