com.sun.enterprise.admin.util
Class RemoteInstanceCommandHelper

java.lang.Object
  extended by com.sun.enterprise.admin.util.RemoteInstanceCommandHelper

public final class RemoteInstanceCommandHelper
extends Object

Author:
Byron Nevins Implementation Note: Ideally this class would be extended by AdminCommand's that need these services. The problem is getting the values out of the habitat. The ctor call would be TOO EARLY in the derived classes. The values are injected AFTER construction. We can't easily inject here -- because we don't want this class to be a Service. We could do it by having the derived class call a set method in here but that gets very messy as we have to make sure we are in a valid state for every single method call.

Constructor Summary
RemoteInstanceCommandHelper(org.jvnet.hk2.component.Habitat habitatIn)
           
 
Method Summary
 int getAdminPort(Server server)
           
 int getAdminPort(String serverName)
           
 String getHost(String serverName)
           
 String getNode(Server server)
           
 Server getServer(String serverName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteInstanceCommandHelper

public RemoteInstanceCommandHelper(org.jvnet.hk2.component.Habitat habitatIn)
Method Detail

getHost

public final String getHost(String serverName)

getServer

public final Server getServer(String serverName)

getNode

public final String getNode(Server server)

getAdminPort

public final int getAdminPort(String serverName)

getAdminPort

public final int getAdminPort(Server server)


Copyright © 2012. All Rights Reserved.