public class StateRenameMessage extends ClusterMessage
Used to informa cluster members of a state rename. If a folder has been renamed any cached states on the local node that are below the changed path will need to be updated, or deleted.
AllNodes
Constructor and Description |
---|
StateRenameMessage()
Default constructor
|
StateRenameMessage(String targetNode,
ClusterNode fromNode,
String oldPath,
String newPath,
boolean isFolder)
Class constructor
|
Modifier and Type | Method and Description |
---|---|
String |
getNewPath()
Return the new state path
|
String |
getOldPath()
Return the old state path
|
boolean |
isFolderPath()
Check if the path is to a folder state
|
String |
toString()
Return the rename state message as a string
|
getFromNode, getTargetNode, hasFromNode, isAllNodes, isFromLocalNode, isType
public StateRenameMessage()
public StateRenameMessage(String targetNode, ClusterNode fromNode, String oldPath, String newPath, boolean isFolder)
targetNode
- StringfromNode
- ClusterNodeoldPath
- StringnewPath
- StringisFolder
- booleanpublic final String getOldPath()
public final String getNewPath()
public final boolean isFolderPath()
public String toString()
toString
in class ClusterMessage
Copyright © 2005–2017 Alfresco Software. All rights reserved.