GigaSpaces XAP 9.0 API

org.openspaces.admin.gateway
Interface Gateways

All Superinterfaces:
AdminAware, Iterable<Gateway>

public interface Gateways
extends AdminAware, Iterable<Gateway>

Gateways holds all the different Gateways that are currently discovered.

Since:
8.0.4
Author:
eitany

Method Summary
 Gateway getGateway(String gatewayName)
          Returns the Gateway for the given gateway name.
 Gateway[] getGateways()
          Returns all the currently discovered gateways.
 Map<String,Gateway> getNames()
          Returns a map of Gateway keyed by their respective names.
 int getSize()
          Returns the number of gateways currently discovered.
 boolean isEmpty()
          Returns true if there are no gateways, false otherwise.
 Gateway waitFor(String gatewayName)
          Waits for the default timeout specified by Admin.setDefaultTimeout(long, TimeUnit) till the gateway is identified as deployed.
 Gateway waitFor(String gatewayName, long timeout, TimeUnit timeUnit)
          Waits for the specified timeout (in time interval) till the gateway is identified as deployed.
 
Methods inherited from interface org.openspaces.admin.AdminAware
getAdmin
 
Methods inherited from interface java.lang.Iterable
iterator
 

Method Detail

getGateways

Gateway[] getGateways()
Returns all the currently discovered gateways.


getGateway

Gateway getGateway(String gatewayName)
Returns the Gateway for the given gateway name. Returns null if the gateway is not currently discovered.


getNames

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


waitFor

Gateway waitFor(String gatewayName)
Waits for the default timeout specified by Admin.setDefaultTimeout(long, TimeUnit) till the gateway is identified as deployed. Return null if the gateway is not deployed within the specified timeout.


waitFor

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


getSize

int getSize()
Returns the number of gateways currently discovered.


isEmpty

boolean isEmpty()
Returns true if there are no gateways, false otherwise.


GigaSpaces XAP 9.0 API

Copyright © GigaSpaces.