📄 cwp4363.htm
字号:
<!-- saved from url=(0007)http:// -->
<HTML><HEAD><META http-equiv="Content-Type" content="text/html; charset=UTF-8"><TITLE>Perst.StorageFactory</TITLE><LINK REL=STYLESHEET HREF="../CommentReport.css" TYPE="text/css"></HEAD><BODY topmargin=0 rightmargin=0 leftmargin=0 style="background-image: url(../titletile.jpg); background-repeat:repeat-x; background-position: 0 0;" ><DIV CLASS="PageHeading">Perst.StorageFactory Class</DIV><DIV CLASS="Description"> Storage factory
<P></DIV><IMG src="../GradLeft.jpg" width=7 height=378 alt="" border="0" style="position:absolute; left:10; top:18;z-Index:2"><IMG src="../GradTop.jpg" width=352 height=7 alt="" border="0" align="top" style="position:absolute; left:10; top:18; z-index:1"><DIV CLASS="Remarks"><SPAN CLASS="RemarkHdrX">Access: </SPAN>Public</DIV><DIV CLASS="Remarks"><SPAN CLASS="RemarkHdrX">Base Classes: </SPAN>Object</DIV><TABLE CLASS="InfoTable" cellpadding=0 cellspacing=0><TR height=20><TD width=20> </TD><TD valign=top align=left width=9 bgcolor="#cccc66"><IMG SRC="../graycorner.jpg" align=top></TD><TD CLASS="TableLightLabel" WIDTH=206>Members</TD><TD CLASS="TableLightLabel" >Description</TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP4364.HTM" TARGET="CNTFRAME">Instance</A></TD><TD CLASS="TableLightDesc"> Get instance of storage factory.
So new storages should be create in application in the following way:
<code>StorageFactory.Instance.createStorage()</code>
<P></TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP4366.HTM" TARGET="CNTFRAME">CreateStorage</A></TD><TD CLASS="TableLightDesc"> Create new instance of the storage
<P></TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP4367.HTM" TARGET="CNTFRAME">CreateReplicationMasterStorage</A></TD><TD CLASS="TableLightDesc">
Create new instance of the master node of replicated storage. There are two kinds of replication slave nodes:
statically defined and dynamically added. First one are specified by replicationSlaveNodes parameter.
When replication master is started it tries to eastablish connection with all of the specified nodes.
It is expected that state of each such node is synchronized with state of the master node.
It is not possible to add or remove static replication slave node without stopping master node.
Dynamic slave nodes can be added at any moment of time. Replication master will send to such node complete
snapshot of the database.
<P></TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP4369.HTM" TARGET="CNTFRAME">CreateReplicationSlaveStorage</A></TD><TD CLASS="TableLightDesc">
Create new instance of the static slave node of replicated storage.
The address of this host should be sepecified in the replicationSlaveNodes
parameter of createReplicationMasterStorage method. When replication master
is started it tries to eastablish connection with all of the specified nodes.
<P></TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP4371.HTM" TARGET="CNTFRAME">AddReplicationSlaveStorage</A></TD><TD CLASS="TableLightDesc">
Add new instance of the dynamic slave node of replicated storage.
<P></TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP4372.HTM" TARGET="CNTFRAME">instance</A></TD><TD CLASS="TableLightDesc"> </TD><TD width=20> </TD></TR></TABLE></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -