C# 클래스 FwRemoteDatabaseConnector.Db4oServerInfo

Singlton object that get created by .NET remoting.
상속: System.MarshalByRefObject
파일 보기 프로젝트 열기: sillsdev/FieldWorks 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
m_allServers List
m_runningServers RunningServerInfo>.Dictionary

Private Properties

프로퍼티 타입 설명
EnsureClientIsLocalHost void
GetCmObjectSurrogates byte[]
ListConnectedClients string[]
ListConnectedClients string[]
ListUniqueAddressConnectedToPort string[]
ListUniqueAddressConnectedToPorts string[]
PopulateServerList void
ShutdownAllServers void
StopServer bool

공개 메소드들

메소드 설명
AreProjectShared ( ) : bool

Gets a value indicating whether projects are shared. (Should only be called on local machine.)

CreateServerFile ( string projectName ) : void

Create a db4o database file of given name.

Db4oServerInfo ( ) : System

IsLocalHost ( string hostname ) : bool

Determine if a given host is local host or not.

ListRunningServers ( ) : string[]

TODO make this thread safe

ListServers ( ) : string[]

TODO make this thread safe

RefreshServerList ( ) : void

Reload the list of servers.

ShareProjects ( bool enableSharingOfProjects ) : void

Enables/disables sharing of projects from this machine.

StartServer ( string projectName, int &port, Exception &errorinfo ) : bool

Instruct the Service to start a db4o server.

비공개 메소드들

메소드 설명
EnsureClientIsLocalHost ( ) : void

If the connected client isn't localhost throws SecurityException

GetCmObjectSurrogates ( string projectName ) : byte[]
ListConnectedClients ( ) : string[]
ListConnectedClients ( string projectName ) : string[]
ListUniqueAddressConnectedToPort ( int port ) : string[]
ListUniqueAddressConnectedToPorts ( IEnumerable ports ) : string[]
PopulateServerList ( ) : void
ShutdownAllServers ( ) : void

reset back to initial state. This is only used by unittests.

StopServer ( string projectName ) : bool

메소드 상세

AreProjectShared() 공개 메소드

Gets a value indicating whether projects are shared. (Should only be called on local machine.)
If called from a remote machine.
public AreProjectShared ( ) : bool
리턴 bool

CreateServerFile() 공개 메소드

Create a db4o database file of given name.
public CreateServerFile ( string projectName ) : void
projectName string the desired name.
리턴 void

Db4oServerInfo() 공개 메소드

public Db4oServerInfo ( ) : System
리턴 System

IsLocalHost() 공개 메소드

Determine if a given host is local host or not.
public IsLocalHost ( string hostname ) : bool
hostname string host name or ipaddress
리턴 bool

ListRunningServers() 공개 메소드

TODO make this thread safe
public ListRunningServers ( ) : string[]
리턴 string[]

ListServers() 공개 메소드

TODO make this thread safe
public ListServers ( ) : string[]
리턴 string[]

RefreshServerList() 공개 메소드

Reload the list of servers.
public RefreshServerList ( ) : void
리턴 void

ShareProjects() 공개 메소드

Enables/disables sharing of projects from this machine.
if called from a remote machine or if current /// user does not have permission to write to HKLM
public ShareProjects ( bool enableSharingOfProjects ) : void
enableSharingOfProjects bool if set to true enable sharing of /// projects; otherwise, disable sharing.
리턴 void

StartServer() 공개 메소드

Instruct the Service to start a db4o server.
public StartServer ( string projectName, int &port, Exception &errorinfo ) : bool
projectName string Name of the project to start
port int If succesfully started then set to the port number of the running /// database
errorinfo System.Exception Will be set to the exception if server failed to start
리턴 bool

프로퍼티 상세

m_allServers 보호되어 있는 프로퍼티

Stores the filenames of all the db40 Servers
protected List m_allServers
리턴 List

m_runningServers 보호되어 있는 프로퍼티

Maps db4o project name (not filename!) to port it is listening on
protected Dictionary m_runningServers
리턴 RunningServerInfo>.Dictionary