GigaSpaces XAP 9.7.2 API

org.openspaces.admin.application
Interface Applications

All Superinterfaces:
AdminAware, Iterable<Application>

public interface Applications
extends Iterable<Application>, AdminAware

Holds one or more Applications

Since:
8.0.3
Author:
itaif

Method Summary
 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 ApplicationAddedEventListeners.
 ApplicationRemovedEventManager getApplicationRemoved()
          Returns an event manager allowing to register ProcessingUnitRemovedEventListeners.
 Application[] getApplications()
          Returns the Applications currently deployed.
 Map<String,Application> getNames()
          Returns a map of Application keyed by their respective names.
 int getSize()
          Returns the number of currently deployed Applications.
 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.
 
Methods inherited from interface java.lang.Iterable
iterator
 
Methods inherited from interface org.openspaces.admin.AdminAware
getAdmin
 

Method Detail

getSize

int getSize()
Returns the number of currently deployed Applications.


isEmpty

boolean isEmpty()
Returns true if there are no currently deployed applications.


getApplications

Application[] getApplications()
Returns the Applications currently deployed.


getApplication

Application getApplication(String name)
Returns the Application for the given processing unit name.


getNames

Map<String,Application> getNames()
Returns a map of Application keyed by their respective names.


waitFor

Application waitFor(String applicationName)
Waits indefinitely till the application is identified as deployed. Returns the Application.


waitFor

Application waitFor(String applicationName,
                    long timeout,
                    TimeUnit timeUnit)
Waits for the specified timeout (in time interval) till the application is identified as deployed. Returns the Application. Return null if the application is not deployed within the specified timeout.


getApplicationAdded

ApplicationAddedEventManager getApplicationAdded()
Returns an event manager allowing to register ApplicationAddedEventListeners.


getApplicationRemoved

ApplicationRemovedEventManager getApplicationRemoved()
Returns an event manager allowing to register ProcessingUnitRemovedEventListeners.


addLifecycleListener

void addLifecycleListener(ApplicationLifecycleEventListener eventListener)
Allows to add a ApplicationLifecycleEventListener.


removeLifecycleListener

void removeLifecycleListener(ApplicationLifecycleEventListener eventListener)
Allows to remove a ApplicationLifecycleEventListener.


GigaSpaces XAP 9.7.2 API

Copyright © GigaSpaces.