public interface Applications extends Iterable<Application>, AdminAware
Application
sModifier and Type | Method and Description |
---|---|
void |
addLifecycleListener(ApplicationLifecycleEventListener eventListener)
Allows to add a
ApplicationLifecycleEventListener . |
Application |
getApplication(String name)
Returns the
Application for the given processing
unit name. |
ApplicationAddedEventManager |
getApplicationAdded()
Returns an event manager allowing to register
ApplicationAddedEventListener s. |
ApplicationRemovedEventManager |
getApplicationRemoved()
Returns an event manager allowing to register
ProcessingUnitRemovedEventListener s. |
Application[] |
getApplications()
Returns the
Application s currently deployed. |
Map<String,Application> |
getNames()
Returns a map of
Application keyed by their
respective names. |
int |
getSize()
Returns the number of currently deployed
Application s. |
boolean |
isEmpty()
Returns
true if there are no currently deployed applications. |
void |
removeLifecycleListener(ApplicationLifecycleEventListener eventListener)
Allows to remove a
ApplicationLifecycleEventListener . |
Application |
waitFor(String applicationName)
Waits indefinitely till the application is identified as deployed.
|
Application |
waitFor(String applicationName,
long timeout,
TimeUnit timeUnit)
Waits for the specified timeout (in time interval) till the application is identified as
deployed.
|
forEach, iterator, spliterator
getAdmin
int getSize()
Application
s.boolean isEmpty()
true
if there are no currently deployed applications.Application[] getApplications()
Application
s currently deployed.Application getApplication(String name)
Application
for the given processing
unit name.Map<String,Application> getNames()
Application
keyed by their
respective names.Application waitFor(String applicationName)
Application
.Application waitFor(String applicationName, long timeout, TimeUnit timeUnit)
Application
. Return
null
if the application is not deployed within the specified timeout.ApplicationAddedEventManager getApplicationAdded()
ApplicationAddedEventListener
s.ApplicationRemovedEventManager getApplicationRemoved()
ProcessingUnitRemovedEventListener
s.void addLifecycleListener(ApplicationLifecycleEventListener eventListener)
ApplicationLifecycleEventListener
.void removeLifecycleListener(ApplicationLifecycleEventListener eventListener)
ApplicationLifecycleEventListener
.Copyright © GigaSpaces.