com.sun.enterprise.config.serverbeans
Interface Servers

All Superinterfaces:
org.jvnet.hk2.config.ConfigBeanProxy, org.jvnet.hk2.component.Injectable

public interface Servers
extends org.jvnet.hk2.config.ConfigBeanProxy, org.jvnet.hk2.component.Injectable

List of configured servers.


Nested Class Summary
static class Servers.Duck
           
 
Method Summary
 java.util.List<Server> getServer()
          Return the list of currently configured server.
 Server getServer(java.lang.String name)
          Return the server with the given name, or null if no such server exists.
 java.util.List<Server> getServersOnNode(Node node)
          Return the list of Servers that reference a Node
 
Methods inherited from interface org.jvnet.hk2.config.ConfigBeanProxy
createChild, deepCopy, getParent, getParent
 
Methods inherited from interface org.jvnet.hk2.component.Injectable
injectedInto
 

Method Detail

getServer

java.util.List<Server> getServer()
Return the list of currently configured server. Servers can be added or removed by using the returned List instance

Returns:
the list of configured Server

getServer

@DuckTyped
Server getServer(java.lang.String name)
Return the server with the given name, or null if no such server exists.

Parameters:
name - the name of the server
Returns:
the Server object, or null if no such server

getServersOnNode

@DuckTyped
java.util.List<Server> getServersOnNode(Node node)
Return the list of Servers that reference a Node

Parameters:
node - Node to get servers that reference
Returns:
List of Server objects that reference the passed node. List will be of length 0 if no servers reference node.


Copyright © 2012 GlassFish Community. All Rights Reserved.