Skip to main content

%Library.ShadowState

Class %Library.ShadowState Extends %Integer [ System = 4 ]

Datatype for display and validation of shadow states:

  • -2: shadow is being stopped
  • -1: shadow is trying to connect to the source
  • 0: shadow is suspended
  • 1: shadow is processing
  • 2: shadow is stopped
  • 3: shadow journal copier is active

Methods

IsValid

ClassMethod IsValid(%State As %RawString) As %Status [ CodeMode = expression, Internal ]

LogicalToDisplay

ClassMethod LogicalToDisplay(%state As %Integer) As %String [ Internal ]

DisplayToLogical

ClassMethod DisplayToLogical(%typename As %String) As %Integer [ Internal ]

CanStart

ClassMethod CanStart(%State As %Integer) As %Boolean [ CodeMode = expression, Internal ]

CanStop

ClassMethod CanStop(%State As %Integer) As %Boolean [ CodeMode = expression, Internal ]

CanResume

ClassMethod CanResume(%State As %Integer) As %Boolean [ CodeMode = expression, Internal ]

CanSuspend

ClassMethod CanSuspend(%State As %Integer) As %Boolean [ CodeMode = expression, Internal ]