org.wildfly.extras.creaper.commands.domain
Class AddServerConfig
java.lang.Object
org.wildfly.extras.creaper.commands.domain.AddServerConfig
- All Implemented Interfaces:
- Command, OnlineCommand
public class AddServerConfig
- extends Object
- implements OnlineCommand
Command which creates new server config under /host=some-host/server-config=server-name
TODO: add an offline implementation
| Fields inherited from interface org.wildfly.extras.creaper.core.online.OnlineCommand |
NOOP |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
apply
public void apply(OnlineCommandContext ctx)
throws CommandFailedException,
IOException
- Specified by:
apply in interface OnlineCommand
- Throws:
CommandFailedException
IOException
getAddress
public Address getAddress()
- Returns:
- address of newly created
server-config, e.g. /host=master/server-config=new-server
Copyright © 2016. All rights reserved.