public final class RenameChannelCommand extends ArchiveConfigurationCommand
ArchiveConfigurationService, but it might also be sent over the
network before actually being processed.ArchiveConfigurationCommand.Type| Constructor and Description |
|---|
RenameChannelCommand(UUID expectedServerId,
String newChannelName,
String oldChannelName)
Creates a "rename channel" command.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
ArchiveConfigurationCommand.Type |
getCommandType()
Returns the type of the actual command type.
|
UUID |
getExpectedServerId()
Returns the ID of the server which is expected to currently own the
channel.
|
String |
getNewChannelName()
Returns the new name for the channel to be renamed.
|
String |
getOldChannelName()
Returns the old name of the channel to be renamed.
|
int |
hashCode() |
String |
toString() |
public RenameChannelCommand(UUID expectedServerId, String newChannelName, String oldChannelName)
expectedServerId does not match the actual ID of the server
that currently owns the channel, the operation will fail.expectedServerId - if not null, the channel is only renamed if it is
currently registered with the specified server.newChannelName - name under which the channel shall be known after the rename
operation finishes.oldChannelName - name under which the channel is currently known.IllegalArgumentException - if newChannelName or oldChannelName
is empty.NullPointerException - if newChannelName or oldChannelName
is null.public ArchiveConfigurationCommand.Type getCommandType()
ArchiveConfigurationCommandArchiveConfigurationCommand class or the ArchiveConfigurationCommand.Type enum
for a list of types. The return value is never null .getCommandType in class ArchiveConfigurationCommandpublic UUID getExpectedServerId()
null the channel will be renamed regardless of
which server currently owns the channel. If not null, the
rename operation will fail if the channel is currently registered with a
different server than the specified one.null if the channel should be renamed regardless of
the server that currently owns the channel.public String getNewChannelName()
null or the empty string.public String getOldChannelName()
null or the
empty string.Copyright © 2011–2017 aquenos GmbH. All rights reserved.