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(java.lang.String targetNode,
ClusterNode fromNode,
java.lang.String oldPath,
java.lang.String newPath,
boolean isFolder)
Class constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getNewPath()
Return the new state path
|
java.lang.String |
getOldPath()
Return the old state path
|
boolean |
isFolderPath()
Check if the path is to a folder state
|
java.lang.String |
toString()
Return the rename state message as a string
|
getFromNode, getTargetNode, hasFromNode, isAllNodes, isFromLocalNode, isType
public StateRenameMessage()
public StateRenameMessage(java.lang.String targetNode, ClusterNode fromNode, java.lang.String oldPath, java.lang.String newPath, boolean isFolder)
targetNode
- StringfromNode
- ClusterNodeoldPath
- StringnewPath
- StringisFolder
- booleanpublic final java.lang.String getOldPath()
public final java.lang.String getNewPath()
public final boolean isFolderPath()
public java.lang.String toString()
toString
in class ClusterMessage
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.