public virtual AppServerMetadata GetMetadata() { if (m_AppMetadata == null) { m_AppMetadata = AppServerMetadata.GetAppServerMetadata(this.GetType()); } return(m_AppMetadata); }
protected IsolationApp(AppServerMetadata metadata, string startupConfigFile) { State = ServerState.NotInitialized; m_Metadata = metadata; var isolationStatusFields = StatusInfoAttribute.GetFromType(this.GetType()); if(isolationStatusFields.Any()) { if (m_Metadata.StatusFields != null && m_Metadata.StatusFields.Any()) m_Metadata.StatusFields = m_Metadata.StatusFields.Union(isolationStatusFields).ToArray(); else m_Metadata.StatusFields = isolationStatusFields.ToArray(); } StartupConfigFile = startupConfigFile; }
public AppServerStatus(AppServerMetadata metadata, StatusInfoCollection dataCollection) { Metadata = metadata; DataCollection = dataCollection; }
public ProcessApp(AppServerMetadata metadata, string startupConfigFile) : base(metadata, startupConfigFile) { }
public AppDomainApp(AppServerMetadata metadata, string startupConfigFile) : base(metadata, startupConfigFile) { }
protected virtual AppServerMetadata GetBootstrapMetadata() { var metadata = new AppServerMetadata(); metadata.Name = "[Bootstrap]"; metadata.StatusFields = StatusInfoAttribute.GetFromType(this.GetType()).ToArray(); return metadata; }
protected abstract IManagedApp CreateAppInstanceByMetadata(AppServerMetadata metadata);
protected override IManagedApp CreateAppInstanceByMetadata(AppServerMetadata metadata) { return new AppDomainApp(metadata, ConfigFilePath); }
public virtual AppServerMetadata GetMetadata() { if(m_AppMetadata == null) m_AppMetadata = AppServerMetadata.GetAppServerMetadata(this.GetType()); return m_AppMetadata; }
protected override IManagedApp CreateAppInstanceByMetadata(AppServerMetadata metadata) { return (IManagedApp)Activator.CreateInstance(Type.GetType(metadata.AppType, true, true)); }