Class DefaultApplications
java.lang.Object
org.openspaces.admin.internal.application.DefaultApplications
- All Implemented Interfaces:
Iterable<Application>,AdminAware,Applications,InternalApplications
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddApplication(Application application, ProcessingUnit processingUnit) voidaddLifecycleListener(ApplicationLifecycleEventListener eventListener) Allows to add aApplicationLifecycleEventListener.getAdmin()Returns theAdminassociated with this element.getApplication(String name) Returns theApplicationfor the given processing unit name.Returns an event manager allowing to registerApplicationAddedEventListeners.Returns an event manager allowing to registerProcessingUnitRemovedEventListeners.Returns theApplications currently deployed.getNames()Returns a map ofApplicationkeyed by their respective names.intgetSize()Returns the number of currently deployedApplications.booleanisEmpty()Returnstrueif there are no currently deployed applications.iterator()voidremoveLifecycleListener(ApplicationLifecycleEventListener eventListener) Allows to remove aApplicationLifecycleEventListener.voidremoveProcessingUnit(ProcessingUnit processingUnit) Waits indefinitely till the application is identified as deployed.Waits for the specified timeout (in time interval) till the application is identified as deployed.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
DefaultApplications
-
-
Method Details
-
getApplications
Description copied from interface:ApplicationsReturns theApplications currently deployed.- Specified by:
getApplicationsin interfaceApplications
-
getSize
public int getSize()Description copied from interface:ApplicationsReturns the number of currently deployedApplications.- Specified by:
getSizein interfaceApplications
-
isEmpty
public boolean isEmpty()Description copied from interface:ApplicationsReturnstrueif there are no currently deployed applications.- Specified by:
isEmptyin interfaceApplications
-
getApplication
Description copied from interface:ApplicationsReturns theApplicationfor the given processing unit name.- Specified by:
getApplicationin interfaceApplications
-
getNames
Description copied from interface:ApplicationsReturns a map ofApplicationkeyed by their respective names.- Specified by:
getNamesin interfaceApplications
-
waitFor
Description copied from interface:ApplicationsWaits indefinitely till the application is identified as deployed. Returns theApplication.- Specified by:
waitForin interfaceApplications
-
waitFor
Description copied from interface:ApplicationsWaits for the specified timeout (in time interval) till the application is identified as deployed. Returns theApplication. Returnnullif the application is not deployed within the specified timeout.- Specified by:
waitForin interfaceApplications
-
getApplicationAdded
Description copied from interface:ApplicationsReturns an event manager allowing to registerApplicationAddedEventListeners.- Specified by:
getApplicationAddedin interfaceApplications
-
getApplicationRemoved
Description copied from interface:ApplicationsReturns an event manager allowing to registerProcessingUnitRemovedEventListeners.- Specified by:
getApplicationRemovedin interfaceApplications
-
addLifecycleListener
Description copied from interface:ApplicationsAllows to add aApplicationLifecycleEventListener.- Specified by:
addLifecycleListenerin interfaceApplications
-
removeLifecycleListener
Description copied from interface:ApplicationsAllows to remove aApplicationLifecycleEventListener.- Specified by:
removeLifecycleListenerin interfaceApplications
-
iterator
- Specified by:
iteratorin interfaceIterable<Application>
-
getAdmin
Description copied from interface:AdminAwareReturns theAdminassociated with this element.- Specified by:
getAdminin interfaceAdminAware
-
addApplication
- Specified by:
addApplicationin interfaceInternalApplications
-
removeProcessingUnit
- Specified by:
removeProcessingUnitin interfaceInternalApplications
-