com.caucho.server.resin
Class ResinDelegate

java.lang.Object
  extended by com.caucho.server.resin.ResinDelegate
Direct Known Subclasses:
ProResinDelegate

public class ResinDelegate
extends java.lang.Object

The Resin class represents the top-level container for Resin. It exactly matches the <resin> tag in the resin.xml


Constructor Summary
ResinDelegate(Resin resin)
          Creates a new resin server.
 
Method Summary
protected  void addPreTopologyServices()
           
protected  void addServices()
           
static ResinDelegate create(Resin resin)
          Creates a new Resin instance
protected  DistCacheSystem createDistCacheService()
           
protected  LoadBalanceFactory createLoadBalanceFactory()
           
 LogSystem createLogSystem()
           
protected  ManagementAdmin createManagementMBean()
           
protected  NetworkClusterSystem createNetworkSystem(CloudServer server)
           
static ResinDelegate createOpenSource(Resin resin)
          Creates a new Resin instance
 AbstractRepository createRepository(RepositorySpi localRepository)
           
protected  Management createResinManagement()
           
protected  Server createServer()
           
 StatSystem createStatSystem()
           
 void dumpHeapOnExit()
           
 void dumpThreads()
           
 LicenseCheck getLicenseCheck()
           
protected  java.lang.String getLicenseErrorMessage()
           
protected  java.lang.String getLicenseMessage()
           
protected  Resin getResin()
           
protected  java.lang.String getResinName()
           
 boolean isProfessional()
           
protected  CloudServer joinCluster(CloudSystem system)
           
protected  boolean loadCloudLicenses()
           
protected  ClusterServer loadDynamicServer(ClusterPod pod, java.lang.String dynId, java.lang.String dynAddress, int dynPort)
           
protected  void setLicenseErrorMessage(java.lang.String msg)
           
 java.lang.String toString()
           
protected  void validateServerCluster()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ResinDelegate

public ResinDelegate(Resin resin)
Creates a new resin server.

Method Detail

create

public static ResinDelegate create(Resin resin)
Creates a new Resin instance


createOpenSource

public static ResinDelegate createOpenSource(Resin resin)
Creates a new Resin instance


getResin

protected Resin getResin()

getLicenseMessage

protected java.lang.String getLicenseMessage()

setLicenseErrorMessage

protected void setLicenseErrorMessage(java.lang.String msg)

getLicenseErrorMessage

protected java.lang.String getLicenseErrorMessage()

createDistCacheService

protected DistCacheSystem createDistCacheService()

addServices

protected void addServices()

createManagementMBean

protected ManagementAdmin createManagementMBean()

createServer

protected Server createServer()
Returns:

createResinManagement

protected Management createResinManagement()

createStatSystem

public StatSystem createStatSystem()

getResinName

protected java.lang.String getResinName()

isProfessional

public boolean isProfessional()
Returns:

createLogSystem

public LogSystem createLogSystem()
Returns:

createRepository

public AbstractRepository createRepository(RepositorySpi localRepository)

joinCluster

protected CloudServer joinCluster(CloudSystem system)

loadDynamicServer

protected ClusterServer loadDynamicServer(ClusterPod pod,
                                          java.lang.String dynId,
                                          java.lang.String dynAddress,
                                          int dynPort)
Parameters:
pod -
dynId -
dynAddress -
dynPort -
Returns:

validateServerCluster

protected void validateServerCluster()

loadCloudLicenses

protected boolean loadCloudLicenses()

dumpThreads

public void dumpThreads()

dumpHeapOnExit

public void dumpHeapOnExit()

createNetworkSystem

protected NetworkClusterSystem createNetworkSystem(CloudServer server)

createLoadBalanceFactory

protected LoadBalanceFactory createLoadBalanceFactory()

addPreTopologyServices

protected void addPreTopologyServices()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getLicenseCheck

public LicenseCheck getLicenseCheck()