public class oadd.org.apache.curator.framework.recipes.nodes.PersistentNode extends java.lang.Object implements java.io.Closeable { private final java.util.concurrent.atomic.AtomicReference initialCreateLatch; private final org.slf4j.Logger log; private final oadd.org.apache.curator.framework.WatcherRemoveCuratorFramework client; private final java.util.concurrent.atomic.AtomicReference nodePath; private final java.lang.String basePath; private final oadd.org.apache.zookeeper.CreateMode mode; private final long ttl; private final java.util.concurrent.atomic.AtomicReference data; private final java.util.concurrent.atomic.AtomicReference state; private volatile boolean authFailure; private volatile boolean parentCreationFailure; private final oadd.org.apache.curator.framework.api.BackgroundCallback backgroundCallback; private final boolean useProtection; private final boolean useParentCreation; private final java.util.concurrent.atomic.AtomicReference createMethod; private final oadd.org.apache.curator.framework.listen.StandardListenerManager listeners; private final oadd.org.apache.curator.framework.api.CuratorWatcher watcher; private final oadd.org.apache.curator.framework.api.BackgroundCallback checkExistsCallback; private final oadd.org.apache.curator.framework.api.BackgroundCallback setDataCallback; private final oadd.org.apache.curator.framework.state.ConnectionStateListener connectionStateListener; volatile java.util.concurrent.CountDownLatch debugCreateNodeLatch; final java.util.concurrent.atomic.AtomicLong debugWaitMsForBackgroundBeforeClose; public void (oadd.org.apache.curator.framework.CuratorFramework, oadd.org.apache.zookeeper.CreateMode, boolean, java.lang.String, byte[]) { byte[] v; oadd.org.apache.zookeeper.CreateMode v; java.lang.String v; oadd.org.apache.curator.framework.CuratorFramework v; oadd.org.apache.curator.framework.recipes.nodes.PersistentNode v; boolean v; v := @this: oadd.org.apache.curator.framework.recipes.nodes.PersistentNode; v := @parameter: oadd.org.apache.curator.framework.CuratorFramework; v := @parameter: oadd.org.apache.zookeeper.CreateMode; v := @parameter: boolean; v := @parameter: java.lang.String; v := @parameter: byte[]; specialinvoke v.(oadd.org.apache.curator.framework.CuratorFramework,oadd.org.apache.zookeeper.CreateMode,boolean,java.lang.String,byte[],long,boolean)>(v, v, v, v, v, -1L, 1); return; } public void (oadd.org.apache.curator.framework.CuratorFramework, oadd.org.apache.zookeeper.CreateMode, boolean, java.lang.String, byte[], boolean) { byte[] v; oadd.org.apache.zookeeper.CreateMode v; java.lang.String v; oadd.org.apache.curator.framework.CuratorFramework v; oadd.org.apache.curator.framework.recipes.nodes.PersistentNode v; boolean v, v; v := @this: oadd.org.apache.curator.framework.recipes.nodes.PersistentNode; v := @parameter: oadd.org.apache.curator.framework.CuratorFramework; v := @parameter: oadd.org.apache.zookeeper.CreateMode; v := @parameter: boolean; v := @parameter: java.lang.String; v := @parameter: byte[]; v := @parameter: boolean; specialinvoke v.(oadd.org.apache.curator.framework.CuratorFramework,oadd.org.apache.zookeeper.CreateMode,boolean,java.lang.String,byte[],long,boolean)>(v, v, v, v, v, -1L, v); return; } public void (oadd.org.apache.curator.framework.CuratorFramework, oadd.org.apache.zookeeper.CreateMode, boolean, java.lang.String, byte[], long, boolean) { byte[] v, v; oadd.org.apache.zookeeper.CreateMode v; oadd.org.apache.curator.framework.listen.StandardListenerManager v; boolean v, v; oadd.org.apache.curator.framework.recipes.nodes.PersistentNode$5 v; oadd.org.apache.curator.framework.recipes.nodes.PersistentNode$3 v; oadd.org.apache.curator.framework.recipes.nodes.PersistentNode$4 v; oadd.org.apache.curator.framework.CuratorFramework v; oadd.org.apache.curator.framework.WatcherRemoveCuratorFramework v; java.util.concurrent.CountDownLatch v; oadd.org.apache.curator.framework.recipes.nodes.PersistentNode$1 v; oadd.org.apache.curator.framework.recipes.nodes.PersistentNode$2 v; long v; oadd.org.apache.curator.framework.recipes.nodes.PersistentNode v; java.util.concurrent.atomic.AtomicReference v, v, v, v, v, v; int v; java.lang.String v, v; org.slf4j.Logger v; java.util.concurrent.atomic.AtomicLong v; oadd.org.apache.curator.framework.recipes.nodes.PersistentNode$State v; java.lang.Class v; java.lang.Object v, v, v; v := @this: oadd.org.apache.curator.framework.recipes.nodes.PersistentNode; v := @parameter: oadd.org.apache.curator.framework.CuratorFramework; v := @parameter: oadd.org.apache.zookeeper.CreateMode; v := @parameter: boolean; v := @parameter: java.lang.String; v := @parameter: byte[]; v := @parameter: long; v := @parameter: boolean; specialinvoke v.()>(); v = new java.util.concurrent.atomic.AtomicReference; v = new java.util.concurrent.CountDownLatch; specialinvoke v.(int)>(1); specialinvoke v.(java.lang.Object)>(v); v. = v; v = virtualinvoke v.(); v = staticinvoke (v); v. = v; v = new java.util.concurrent.atomic.AtomicReference; specialinvoke v.(java.lang.Object)>(null); v. = v; v = new java.util.concurrent.atomic.AtomicReference; specialinvoke v.()>(); v. = v; v = new java.util.concurrent.atomic.AtomicReference; v = ; specialinvoke v.(java.lang.Object)>(v); v. = v; v = new java.util.concurrent.atomic.AtomicReference; specialinvoke v.(java.lang.Object)>(null); v. = v; v = staticinvoke (); v. = v; v = new oadd.org.apache.curator.framework.recipes.nodes.PersistentNode$1; specialinvoke v.(oadd.org.apache.curator.framework.recipes.nodes.PersistentNode)>(v); v. = v; v = new oadd.org.apache.curator.framework.recipes.nodes.PersistentNode$2; specialinvoke v.(oadd.org.apache.curator.framework.recipes.nodes.PersistentNode)>(v); v. = v; v = new oadd.org.apache.curator.framework.recipes.nodes.PersistentNode$3; specialinvoke v.(oadd.org.apache.curator.framework.recipes.nodes.PersistentNode)>(v); v. = v; v = new oadd.org.apache.curator.framework.recipes.nodes.PersistentNode$4; specialinvoke v.(oadd.org.apache.curator.framework.recipes.nodes.PersistentNode)>(v); v. = v; v. = null; v = new java.util.concurrent.atomic.AtomicLong; specialinvoke v.(long)>(0L); v. = v; v. = v; v. = v; v = staticinvoke (v, "client cannot be null"); v = interfaceinvoke v.(); v. = v; v = staticinvoke (v); v. = v; v = staticinvoke (v, "mode cannot be null"); v. = v; v. = v; v = staticinvoke (v, "data cannot be null"); v = new oadd.org.apache.curator.framework.recipes.nodes.PersistentNode$5; specialinvoke v.(oadd.org.apache.curator.framework.recipes.nodes.PersistentNode)>(v); v. = v; v = v.; v = lengthof v; v = staticinvoke (v, v); virtualinvoke v.(v); return; } private void processBackgroundCallbackClosedState(oadd.org.apache.curator.framework.api.CuratorEvent) { oadd.org.apache.curator.framework.api.CuratorEvent v; org.slf4j.Logger v; oadd.org.apache.zookeeper.KeeperException$Code v, v; oadd.org.apache.curator.framework.WatcherRemoveCuratorFramework v; oadd.org.apache.curator.framework.recipes.nodes.PersistentNode v; java.lang.Exception v; int v, v, v, v; java.lang.Object v, v; java.lang.String v; oadd.org.apache.curator.framework.api.DeleteBuilder v; v := @this: oadd.org.apache.curator.framework.recipes.nodes.PersistentNode; v := @parameter: oadd.org.apache.curator.framework.api.CuratorEvent; v = null; v = interfaceinvoke v.(); v = ; v = virtualinvoke v.(); if v != v goto label; v = interfaceinvoke v.(); goto label; label: v = interfaceinvoke v.(); v = ; v = virtualinvoke v.(); if v != v goto label; v = interfaceinvoke v.(); label: if v == null goto label; label: v = v.; v = interfaceinvoke v.(); v = interfaceinvoke v.(); v = interfaceinvoke v.(); interfaceinvoke v.(v); label: goto label; label: v := @caughtexception; v = v.; interfaceinvoke v.("Could not delete node after close", v); label: return; catch java.lang.Exception from label to label with label; } private void processBackgroundCallback(oadd.org.apache.curator.framework.api.CuratorEvent) throws java.lang.Exception { byte[] v; oadd.org.apache.curator.framework.api.CuratorEvent v; oadd.org.apache.zookeeper.KeeperException$Code v, v, v, v; oadd.org.apache.curator.framework.api.SetDataBuilder v; oadd.org.apache.curator.framework.recipes.nodes.PersistentNode v; java.util.concurrent.atomic.AtomicReference v; oadd.org.apache.curator.framework.api.BackgroundCallback v; int v, v, v, v, v, v, v, v; java.lang.Boolean v; java.lang.String v, v, v, v; boolean v, v; org.slf4j.Logger v, v; oadd.org.apache.curator.framework.WatcherRemoveCuratorFramework v; java.lang.Object v; v := @this: oadd.org.apache.curator.framework.recipes.nodes.PersistentNode; v := @parameter: oadd.org.apache.curator.framework.api.CuratorEvent; v = null; v = 0; v = interfaceinvoke v.(); v = ; v = virtualinvoke v.(); if v != v goto label; v = interfaceinvoke v.(); v = 1; goto label; label: v = interfaceinvoke v.(); v = ; v = virtualinvoke v.(); if v != v goto label; v = interfaceinvoke v.(); goto label; label: v = interfaceinvoke v.(); v = ; v = virtualinvoke v.(); if v != v goto label; v = v.; v = interfaceinvoke v.(); interfaceinvoke v.("Client does not have authorisation to create node at path {}", v); v. = 1; return; label: v = interfaceinvoke v.(); v = ; v = virtualinvoke v.(); if v != v goto label; v = v.; v = interfaceinvoke v.(); v = v.; v = staticinvoke (v); interfaceinvoke v.("Client cannot create parent hierarchy for path {} with useParentCreation set to {}", v, v); v. = 1; return; label: if v == null goto label; v. = 0; v = v.; virtualinvoke v.(v); specialinvoke v.(); if v == 0 goto label; v = v.; v = interfaceinvoke v.(); v = v.; v = interfaceinvoke v.(v); v = virtualinvoke v.(); v = virtualinvoke v.(); interfaceinvoke v.(v, v); goto label; label: specialinvoke v.(); specialinvoke v.(); goto label; label: specialinvoke v.(); label: return; } private void initialisationComplete() { java.lang.Object v; oadd.org.apache.curator.framework.recipes.nodes.PersistentNode v; java.util.concurrent.atomic.AtomicReference v; v := @this: oadd.org.apache.curator.framework.recipes.nodes.PersistentNode; v = v.; v = virtualinvoke v.(null); if v == null goto label; virtualinvoke v.(); label: return; } public void start() { oadd.org.apache.curator.framework.listen.Listenable v; oadd.org.apache.curator.framework.state.ConnectionStateListener v; oadd.org.apache.curator.framework.WatcherRemoveCuratorFramework v; oadd.org.apache.curator.framework.recipes.nodes.PersistentNode v; java.util.concurrent.atomic.AtomicReference v; oadd.org.apache.curator.framework.recipes.nodes.PersistentNode$State v, v; boolean v; v := @this: oadd.org.apache.curator.framework.recipes.nodes.PersistentNode; v = v.; v = ; v = ; v = virtualinvoke v.(v, v); staticinvoke (v, "Already started"); v = v.; v = interfaceinvoke v.(); v = v.; interfaceinvoke v.(v); specialinvoke v.(); return; } public boolean waitForInitialCreate(long, java.util.concurrent.TimeUnit) throws java.lang.InterruptedException { long v; oadd.org.apache.curator.framework.recipes.nodes.PersistentNode v; java.util.concurrent.atomic.AtomicReference v, v; java.util.concurrent.TimeUnit v; oadd.org.apache.curator.framework.recipes.nodes.PersistentNode$State v; java.lang.Object v, v; boolean v, v, v; v := @this: oadd.org.apache.curator.framework.recipes.nodes.PersistentNode; v := @parameter: long; v := @parameter: java.util.concurrent.TimeUnit; v = v.; v = virtualinvoke v.(); v = ; if v != v goto label; v = 1; goto label; label: v = 0; label: staticinvoke (v, "Not started"); v = v.; v = virtualinvoke v.(); if v == null goto label; v = virtualinvoke v.(v, v); if v == 0 goto label; label: v = 1; goto label; label: v = 0; label: return v; } public void close() throws java.io.IOException { oadd.org.apache.curator.framework.state.ConnectionStateListener v; long v, v; oadd.org.apache.curator.framework.recipes.nodes.PersistentNode v; java.util.concurrent.atomic.AtomicReference v; byte v; java.lang.Thread v; boolean v; oadd.org.apache.curator.framework.listen.Listenable v; java.io.IOException v; oadd.org.apache.curator.framework.WatcherRemoveCuratorFramework v, v; java.lang.Exception v; java.util.concurrent.atomic.AtomicLong v, v; java.lang.InterruptedException v; oadd.org.apache.curator.framework.recipes.nodes.PersistentNode$State v, v; v := @this: oadd.org.apache.curator.framework.recipes.nodes.PersistentNode; v = v.; v = virtualinvoke v.(); v = v cmp 0L; if v <= 0 goto label; label: v = v.; v = virtualinvoke v.(); staticinvoke (v); label: goto label; label: v := @caughtexception; v = staticinvoke (); virtualinvoke v.(); label: v = v.; v = ; v = ; v = virtualinvoke v.(v, v); if v != 0 goto label; return; label: v = v.; v = interfaceinvoke v.(); v = v.; interfaceinvoke v.(v); label: virtualinvoke v.(); label: goto label; label: v := @caughtexception; staticinvoke (v); v = new java.io.IOException; specialinvoke v.(java.lang.Throwable)>(v); throw v; label: v = v.; interfaceinvoke v.(); return; catch java.lang.InterruptedException from label to label with label; catch java.lang.Exception from label to label with label; } public oadd.org.apache.curator.framework.listen.Listenable getListenable() { oadd.org.apache.curator.framework.listen.StandardListenerManager v; oadd.org.apache.curator.framework.recipes.nodes.PersistentNode v; v := @this: oadd.org.apache.curator.framework.recipes.nodes.PersistentNode; v = v.; return v; } public java.lang.String getActualPath() { java.lang.Object v; oadd.org.apache.curator.framework.recipes.nodes.PersistentNode v; java.util.concurrent.atomic.AtomicReference v; v := @this: oadd.org.apache.curator.framework.recipes.nodes.PersistentNode; v = v.; v = virtualinvoke v.(); return v; } public void setData(byte[]) throws java.lang.Exception { byte[] v, v, v; oadd.org.apache.curator.framework.api.SetDataBuilder v; oadd.org.apache.curator.framework.recipes.nodes.PersistentNode v; java.util.concurrent.atomic.AtomicReference v, v; oadd.org.apache.curator.framework.api.BackgroundCallback v; int v; java.lang.String v; boolean v, v, v, v; oadd.org.apache.curator.framework.WatcherRemoveCuratorFramework v; java.lang.Object v, v, v; v := @this: oadd.org.apache.curator.framework.recipes.nodes.PersistentNode; v := @parameter: byte[]; v = staticinvoke (v, "data cannot be null"); v = v.; v = virtualinvoke v.(); if v == null goto label; v = 1; goto label; label: v = 0; label: staticinvoke (v, "initial create has not been processed. Call waitForInitialCreate() to ensure."); v = v.; if v != 0 goto label; v = 1; goto label; label: v = 0; label: staticinvoke (v, "Failed to create parent nodes."); v = v.; v = lengthof v; v = staticinvoke (v, v); virtualinvoke v.(v); v = specialinvoke v.(); if v == 0 goto label; v = v.; v = interfaceinvoke v.(); v = v.; v = interfaceinvoke v.(v); v = virtualinvoke v.(); v = virtualinvoke v.(); interfaceinvoke v.(v, v); label: return; } public byte[] getData() { java.lang.Object v; oadd.org.apache.curator.framework.recipes.nodes.PersistentNode v; java.util.concurrent.atomic.AtomicReference v; v := @this: oadd.org.apache.curator.framework.recipes.nodes.PersistentNode; v = v.; v = virtualinvoke v.(); return v; } protected void deleteNode() throws java.lang.Exception { java.lang.Object v, v; oadd.org.apache.zookeeper.KeeperException$NoNodeException v; oadd.org.apache.curator.framework.WatcherRemoveCuratorFramework v; oadd.org.apache.curator.framework.api.DeleteBuilder v; oadd.org.apache.curator.framework.recipes.nodes.PersistentNode v; java.util.concurrent.atomic.AtomicReference v; v := @this: oadd.org.apache.curator.framework.recipes.nodes.PersistentNode; v = v.; v = virtualinvoke v.(null); if v == null goto label; label: v = v.; v = interfaceinvoke v.(); v = interfaceinvoke v.(); interfaceinvoke v.(v); label: goto label; label: v := @caughtexception; label: return; catch oadd.org.apache.zookeeper.KeeperException$NoNodeException from label to label with label; } private void createNode() { oadd.org.apache.zookeeper.CreateMode v, v, v; oadd.org.apache.curator.framework.api.BackgroundCallback v; oadd.org.apache.curator.framework.api.CreateBuilder v; java.lang.Thread v; boolean v, v, v, v, v, v, v, v; oadd.org.apache.curator.framework.WatcherRemoveCuratorFramework v, v; java.lang.Exception v; java.util.concurrent.CountDownLatch v, v; oadd.org.apache.curator.framework.api.CreateModable v; oadd.org.apache.curator.framework.api.Statable v; long v; oadd.org.apache.curator.framework.recipes.nodes.PersistentNode v; java.util.concurrent.atomic.AtomicReference v, v, v, v, v; java.lang.String v, v, v, v, v; oadd.org.apache.curator.framework.api.CreateBuilderMain v; java.lang.RuntimeException v; oadd.org.apache.curator.framework.api.ProtectACLCreateModeStatPathAndBytesable v; java.lang.InterruptedException v; java.lang.Object v, v, v, v, v, v; v := @this: oadd.org.apache.curator.framework.recipes.nodes.PersistentNode; v = specialinvoke v.(); if v != 0 goto label; return; label: v = v.; if v == null goto label; label: v = v.; virtualinvoke v.(); label: goto label; label: v := @caughtexception; v = staticinvoke (); virtualinvoke v.(); return; label: v = v.; v = virtualinvoke v.(); if v == null goto label; v = v.; if v != 0 goto label; v = v; goto label; label: if v == null goto label; v = v.; v = virtualinvoke v.(); if v == 0 goto label; v = v.; v = staticinvoke (v); v = dynamicinvoke "makeConcatWithConstants" (v, v) ("\u0001\u0001"); goto label; label: v = v.; label: v = v.; v = virtualinvoke v.(); if v != null goto label; v = v.; v = virtualinvoke v.(); if v == 0 goto label; v = v.; v = interfaceinvoke v.(); v = v.; v = interfaceinvoke v.(v); goto label; label: v = v.; v = interfaceinvoke v.(); label: v = v.; if v == 0 goto label; v = v.; if v == 0 goto label; v = interfaceinvoke v.(); v = interfaceinvoke v.(); goto label; label: v = interfaceinvoke v.(); label: v = v; goto label; label: v = v.; if v == 0 goto label; v = interfaceinvoke v.(); goto label; label: v = v; label: v = v; label: v = v.; virtualinvoke v.(null, v); v = v.; virtualinvoke v.(); label: if v == null goto label; v = 1; goto label; label: v = 0; label: v = specialinvoke v.(v); v = interfaceinvoke v.(v); v = v.; v = interfaceinvoke v.(v); v = v.; v = virtualinvoke v.(); interfaceinvoke v.(v, v); label: goto label; label: v := @caughtexception; staticinvoke (v); v = new java.lang.RuntimeException; v = v.; v = dynamicinvoke "makeConcatWithConstants" (v) ("Creating node. BasePath: \u0001"); specialinvoke v.(java.lang.String,java.lang.Throwable)>(v, v); throw v; label: return; catch java.lang.InterruptedException from label to label with label; catch java.lang.Exception from label to label with label; } private oadd.org.apache.zookeeper.CreateMode getCreateMode(boolean) { oadd.org.apache.zookeeper.CreateMode v, v, v, v, v; oadd.org.apache.curator.framework.recipes.nodes.PersistentNode v; int[] v; int v, v; boolean v; v := @this: oadd.org.apache.curator.framework.recipes.nodes.PersistentNode; v := @parameter: boolean; if v == 0 goto label; v = ; v = v.; v = virtualinvoke v.(); v = v[v]; tableswitch(v) { case 1: goto label; case 2: goto label; case 3: goto label; default: goto label; }; label: v = ; return v; label: v = ; return v; label: v = ; return v; label: v = v.; return v; } private void watchNode() throws java.lang.Exception { oadd.org.apache.curator.framework.WatcherRemoveCuratorFramework v; oadd.org.apache.curator.framework.recipes.nodes.PersistentNode v; java.util.concurrent.atomic.AtomicReference v; oadd.org.apache.curator.framework.api.BackgroundCallback v; oadd.org.apache.curator.framework.api.ExistsBuilder v; java.lang.Object v, v, v; boolean v; oadd.org.apache.curator.framework.api.CuratorWatcher v; v := @this: oadd.org.apache.curator.framework.recipes.nodes.PersistentNode; v = specialinvoke v.(); if v != 0 goto label; return; label: v = v.; v = virtualinvoke v.(); if v == null goto label; v = v.; v = interfaceinvoke v.(); v = v.; v = interfaceinvoke v.(v); v = v.; v = interfaceinvoke v.(v); interfaceinvoke v.(v); label: return; } private void notifyListeners() { java.util.function.Consumer v; oadd.org.apache.curator.framework.listen.StandardListenerManager v; java.lang.String v; oadd.org.apache.curator.framework.recipes.nodes.PersistentNode v; v := @this: oadd.org.apache.curator.framework.recipes.nodes.PersistentNode; v = virtualinvoke v.(); v = v.; v = staticinvoke (v, v); virtualinvoke v.(v); return; } private boolean isActive() { oadd.org.apache.curator.framework.recipes.nodes.PersistentNode$State v; java.lang.Object v; oadd.org.apache.curator.framework.recipes.nodes.PersistentNode v; java.util.concurrent.atomic.AtomicReference v; boolean v; v := @this: oadd.org.apache.curator.framework.recipes.nodes.PersistentNode; v = v.; v = virtualinvoke v.(); v = ; if v != v goto label; v = 1; goto label; label: v = 0; label: return v; } boolean isAuthFailure() { oadd.org.apache.curator.framework.recipes.nodes.PersistentNode v; boolean v; v := @this: oadd.org.apache.curator.framework.recipes.nodes.PersistentNode; v = v.; return v; } boolean isParentCreationFailure() { oadd.org.apache.curator.framework.recipes.nodes.PersistentNode v; boolean v; v := @this: oadd.org.apache.curator.framework.recipes.nodes.PersistentNode; v = v.; return v; } }