Package org.wildfly.prospero.actions
Class MetadataAction
- java.lang.Object
-
- org.wildfly.prospero.actions.MetadataAction
-
- All Implemented Interfaces:
AutoCloseable
public class MetadataAction extends Object implements AutoCloseable
Metadata related actions wrapper.
-
-
Constructor Summary
Constructors Modifier Constructor Description MetadataAction(Path installation)protectedMetadataAction(InstallationMetadata installationMetadata)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddChannel(org.wildfly.channel.Channel channel)voidchangeChannel(String channelName, org.wildfly.channel.Channel newChannel)voidclose()org.wildfly.channel.ChannelgetChannel(int index)List<org.wildfly.channel.Channel>getChannels()voidremoveChannel(String channelName)
-
-
-
Constructor Detail
-
MetadataAction
public MetadataAction(Path installation) throws MetadataException
- Throws:
MetadataException
-
MetadataAction
protected MetadataAction(InstallationMetadata installationMetadata)
-
-
Method Detail
-
addChannel
public void addChannel(org.wildfly.channel.Channel channel) throws MetadataException- Throws:
MetadataException
-
removeChannel
public void removeChannel(String channelName) throws MetadataException
- Throws:
MetadataException
-
changeChannel
public void changeChannel(String channelName, org.wildfly.channel.Channel newChannel) throws MetadataException
- Throws:
MetadataException
-
getChannels
public List<org.wildfly.channel.Channel> getChannels() throws MetadataException
- Throws:
MetadataException
-
getChannel
public org.wildfly.channel.Channel getChannel(int index) throws MetadataException- Throws:
MetadataException
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable
-
-