2929import org .apache .ignite .client .IgniteClient ;
3030import org .apache .ignite .console .agent .IgniteClusterLauncher ;
3131import org .apache .ignite .console .agent .handlers .RestClusterHandler ;
32- import org . apache . ignite . internal . client . GridClient ;
32+
3333
3434import org .apache .ignite .internal .dto .IgniteDataTransferObject ;
3535import org .apache .ignite .internal .management .api .Argument ;
3636import org .apache .ignite .internal .management .api .Command ;
3737import org .apache .ignite .internal .management .api .CommandsProvider ;
38- import org .apache .ignite .internal .management .api .LocalCommand ;
38+ import org .apache .ignite .internal .management .api .NativeCommand ;
3939import org .apache .ignite .internal .util .typedef .F ;
4040import org .apache .ignite .internal .util .typedef .internal .U ;
4141import org .jetbrains .annotations .Nullable ;
@@ -55,7 +55,7 @@ public class CommandsProviderExtImpl implements CommandsProvider {
5555 }
5656
5757 /** */
58- public static class NodeStartCommand implements LocalCommand <NodeStartCommandArg , Boolean > {
58+ public static class NodeStartCommand implements NativeCommand <NodeStartCommandArg , Boolean > {
5959 /** {@inheritDoc} */
6060 @ Override public String description () {
6161 return "在当前Ignite进程内新启动一个名称为输入参数的Instance" ;
@@ -107,14 +107,14 @@ public static class NodeStartCommandArg extends IgniteDataTransferObject {
107107
108108
109109 /** {@inheritDoc} */
110- @ Override protected void writeExternalData (ObjectOutput out ) throws IOException {
110+ @ Override public void writeExternal (ObjectOutput out ) throws IOException {
111111 U .writeString (out , instanceName );
112112 U .writeString (out , clusterId );
113113 U .writeString (out , cfgPath );
114114 }
115115
116116 /** {@inheritDoc} */
117- @ Override protected void readExternalData (ObjectInput in ) throws IOException {
117+ @ Override public void readExternal (ObjectInput in ) throws IOException {
118118 instanceName = U .readString (in );
119119 clusterId = U .readString (in );
120120 cfgPath = U .readString (in );
@@ -152,7 +152,7 @@ public String cfgPath() {
152152 }
153153
154154 /** */
155- public static class NodeStopCommand implements LocalCommand <NodeStopCommandArg , Boolean > {
155+ public static class NodeStopCommand implements NativeCommand <NodeStopCommandArg , Boolean > {
156156 /** {@inheritDoc} */
157157 @ Override public String description () {
158158 return "在当前Ignite进程内新关闭一个名称为输入参数的Instance" ;
@@ -186,13 +186,13 @@ public static class NodeStopCommandArg extends IgniteDataTransferObject {
186186 private String clusterId ; // UUID
187187
188188 /** {@inheritDoc} */
189- @ Override protected void writeExternalData (ObjectOutput out ) throws IOException {
189+ @ Override public void writeExternal (ObjectOutput out ) throws IOException {
190190 U .writeString (out , instanceName );
191191 U .writeString (out , clusterId );
192192 }
193193
194194 /** {@inheritDoc} */
195- @ Override protected void readExternalData (ObjectInput in ) throws IOException {
195+ @ Override public void readExternal (ObjectInput in ) throws IOException {
196196 instanceName = U .readString (in );
197197 clusterId = U .readString (in );
198198 }
0 commit comments