org.glassfish.virtualization.spi
Interface PhysicalServerPool

All Superinterfaces:
ServerPool

public interface PhysicalServerPool
extends ServerPool

Represents a serverPool of machines. How machines are allocated to groups is defined by the user.

Author:
Jerome Dochez

Method Summary
 Machine byName(String name)
          Returns a @see Machine instance which name is equal to the provided name
 Iterable<? extends Machine> machines()
          Returns the currently attached machines to this serverPool
 int size()
          Returns the size of this serverPool
 
Methods inherited from interface org.glassfish.virtualization.spi.ServerPool
allocate, getConfig, getName, getVMs, install, vmByName
 

Method Detail

machines

Iterable<? extends Machine> machines()
Returns the currently attached machines to this serverPool

Returns:
iterable of machines attached to this serverPool

byName

Machine byName(String name)
Returns a @see Machine instance which name is equal to the provided name

Parameters:
name - name of the machine looked up
Returns:
the @see Machine instance if found or null otherwise

size

int size()
Returns the size of this serverPool

Returns:
size of the serverPool.


Copyright © 2012. All Rights Reserved.