Package org.openspaces.admin.application
Interface Applications
- All Superinterfaces:
AdminAware,Iterable<Application>
- All Known Subinterfaces:
InternalApplications
- All Known Implementing Classes:
DefaultApplications
Holds one or more
Applications- Since:
- 8.0.3
- Author:
- itaif
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddLifecycleListener(ApplicationLifecycleEventListener eventListener) Allows to add aApplicationLifecycleEventListener.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.voidremoveLifecycleListener(ApplicationLifecycleEventListener eventListener) Allows to remove aApplicationLifecycleEventListener.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 interface org.openspaces.admin.AdminAware
getAdminMethods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Method Details
-
getSize
int getSize()Returns the number of currently deployedApplications. -
isEmpty
boolean isEmpty()Returnstrueif there are no currently deployed applications. -
getApplications
Application[] getApplications()Returns theApplications currently deployed. -
getApplication
Returns theApplicationfor the given processing unit name. -
getNames
Map<String,Application> getNames()Returns a map ofApplicationkeyed by their respective names. -
waitFor
Waits indefinitely till the application is identified as deployed. Returns theApplication. -
waitFor
Waits 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. -
getApplicationAdded
ApplicationAddedEventManager getApplicationAdded()Returns an event manager allowing to registerApplicationAddedEventListeners. -
getApplicationRemoved
ApplicationRemovedEventManager getApplicationRemoved()Returns an event manager allowing to registerProcessingUnitRemovedEventListeners. -
addLifecycleListener
Allows to add aApplicationLifecycleEventListener. -
removeLifecycleListener
Allows to remove aApplicationLifecycleEventListener.
-