示例#1
0
        public virtual AppServerMetadata GetMetadata()
        {
            if (m_AppMetadata == null)
            {
                m_AppMetadata = AppServerMetadata.GetAppServerMetadata(this.GetType());
            }

            return(m_AppMetadata);
        }
示例#2
0
        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;
        }
示例#3
0
 public AppServerStatus(AppServerMetadata metadata, StatusInfoCollection dataCollection)
 {
     Metadata       = metadata;
     DataCollection = dataCollection;
 }
示例#4
0
 public ProcessApp(AppServerMetadata metadata, string startupConfigFile)
     : base(metadata, startupConfigFile)
 {
 }
示例#5
0
 public AppDomainApp(AppServerMetadata metadata, string startupConfigFile)
     : base(metadata, startupConfigFile)
 {
 }
示例#6
0
 protected virtual AppServerMetadata GetBootstrapMetadata()
 {
     var metadata = new AppServerMetadata();
     metadata.Name = "[Bootstrap]";
     metadata.StatusFields = StatusInfoAttribute.GetFromType(this.GetType()).ToArray();
     return metadata;
 }
示例#7
0
 protected abstract IManagedApp CreateAppInstanceByMetadata(AppServerMetadata metadata);
示例#8
0
 protected override IManagedApp CreateAppInstanceByMetadata(AppServerMetadata metadata)
 {
     return new AppDomainApp(metadata, ConfigFilePath);
 }
示例#9
0
        public virtual AppServerMetadata GetMetadata()
        {
            if(m_AppMetadata == null)
                m_AppMetadata = AppServerMetadata.GetAppServerMetadata(this.GetType());

            return m_AppMetadata;
        }
示例#10
0
 public AppServerStatus(AppServerMetadata metadata, StatusInfoCollection dataCollection)
 {
     Metadata = metadata;
     DataCollection = dataCollection;
 }
示例#11
0
 protected override IManagedApp CreateAppInstanceByMetadata(AppServerMetadata metadata)
 {
     return (IManagedApp)Activator.CreateInstance(Type.GetType(metadata.AppType, true, true));
 }