public class org.apache.camel.component.file.cluster.FileLockClusterService extends org.apache.camel.impl.cluster.AbstractCamelClusterService
{
private java.lang.String root;
private long acquireLockDelay;
private java.util.concurrent.TimeUnit acquireLockDelayUnit;
private long acquireLockInterval;
private java.util.concurrent.TimeUnit acquireLockIntervalUnit;
private java.util.concurrent.ScheduledExecutorService executor;
public void <init>()
{
java.util.concurrent.TimeUnit v, v;
org.apache.camel.component.file.cluster.FileLockClusterService v;
v := @this: org.apache.camel.component.file.cluster.FileLockClusterService;
specialinvoke v.<org.apache.camel.impl.cluster.AbstractCamelClusterService: void <init>()>();
v.<org.apache.camel.component.file.cluster.FileLockClusterService: long acquireLockDelay> = 1L;
v = <java.util.concurrent.TimeUnit: java.util.concurrent.TimeUnit SECONDS>;
v.<org.apache.camel.component.file.cluster.FileLockClusterService: java.util.concurrent.TimeUnit acquireLockDelayUnit> = v;
v.<org.apache.camel.component.file.cluster.FileLockClusterService: long acquireLockInterval> = 10L;
v = <java.util.concurrent.TimeUnit: java.util.concurrent.TimeUnit SECONDS>;
v.<org.apache.camel.component.file.cluster.FileLockClusterService: java.util.concurrent.TimeUnit acquireLockIntervalUnit> = v;
return;
}
protected org.apache.camel.component.file.cluster.FileLockClusterView createView(java.lang.String) throws java.lang.Exception
{
org.apache.camel.component.file.cluster.FileLockClusterService v;
org.apache.camel.component.file.cluster.FileLockClusterView v;
java.lang.String v;
v := @this: org.apache.camel.component.file.cluster.FileLockClusterService;
v := @parameter: java.lang.String;
v = new org.apache.camel.component.file.cluster.FileLockClusterView;
specialinvoke v.<org.apache.camel.component.file.cluster.FileLockClusterView: void <init>(org.apache.camel.component.file.cluster.FileLockClusterService,java.lang.String)>(v, v);
return v;
}
public java.lang.String getRoot()
{
org.apache.camel.component.file.cluster.FileLockClusterService v;
java.lang.String v;
v := @this: org.apache.camel.component.file.cluster.FileLockClusterService;
v = v.<org.apache.camel.component.file.cluster.FileLockClusterService: java.lang.String root>;
return v;
}
public void setRoot(java.lang.String)
{
org.apache.camel.component.file.cluster.FileLockClusterService v;
java.lang.String v;
v := @this: org.apache.camel.component.file.cluster.FileLockClusterService;
v := @parameter: java.lang.String;
v.<org.apache.camel.component.file.cluster.FileLockClusterService: java.lang.String root> = v;
return;
}
public long getAcquireLockDelay()
{
org.apache.camel.component.file.cluster.FileLockClusterService v;
long v;
v := @this: org.apache.camel.component.file.cluster.FileLockClusterService;
v = v.<org.apache.camel.component.file.cluster.FileLockClusterService: long acquireLockDelay>;
return v;
}
public void setAcquireLockDelay(long)
{
org.apache.camel.component.file.cluster.FileLockClusterService v;
long v;
v := @this: org.apache.camel.component.file.cluster.FileLockClusterService;
v := @parameter: long;
v.<org.apache.camel.component.file.cluster.FileLockClusterService: long acquireLockDelay> = v;
return;
}
public void setAcquireLockDelay(long, java.util.concurrent.TimeUnit)
{
java.util.concurrent.TimeUnit v;
org.apache.camel.component.file.cluster.FileLockClusterService v;
long v;
v := @this: org.apache.camel.component.file.cluster.FileLockClusterService;
v := @parameter: long;
v := @parameter: java.util.concurrent.TimeUnit;
virtualinvoke v.<org.apache.camel.component.file.cluster.FileLockClusterService: void setAcquireLockDelay(long)>(v);
virtualinvoke v.<org.apache.camel.component.file.cluster.FileLockClusterService: void setAcquireLockDelayUnit(java.util.concurrent.TimeUnit)>(v);
return;
}
public java.util.concurrent.TimeUnit getAcquireLockDelayUnit()
{
java.util.concurrent.TimeUnit v;
org.apache.camel.component.file.cluster.FileLockClusterService v;
v := @this: org.apache.camel.component.file.cluster.FileLockClusterService;
v = v.<org.apache.camel.component.file.cluster.FileLockClusterService: java.util.concurrent.TimeUnit acquireLockDelayUnit>;
return v;
}
public void setAcquireLockDelayUnit(java.util.concurrent.TimeUnit)
{
java.util.concurrent.TimeUnit v;
org.apache.camel.component.file.cluster.FileLockClusterService v;
v := @this: org.apache.camel.component.file.cluster.FileLockClusterService;
v := @parameter: java.util.concurrent.TimeUnit;
v.<org.apache.camel.component.file.cluster.FileLockClusterService: java.util.concurrent.TimeUnit acquireLockDelayUnit> = v;
return;
}
public long getAcquireLockInterval()
{
org.apache.camel.component.file.cluster.FileLockClusterService v;
long v;
v := @this: org.apache.camel.component.file.cluster.FileLockClusterService;
v = v.<org.apache.camel.component.file.cluster.FileLockClusterService: long acquireLockInterval>;
return v;
}
public void setAcquireLockInterval(long)
{
org.apache.camel.component.file.cluster.FileLockClusterService v;
long v;
v := @this: org.apache.camel.component.file.cluster.FileLockClusterService;
v := @parameter: long;
v.<org.apache.camel.component.file.cluster.FileLockClusterService: long acquireLockInterval> = v;
return;
}
public void setAcquireLockInterval(long, java.util.concurrent.TimeUnit)
{
java.util.concurrent.TimeUnit v;
org.apache.camel.component.file.cluster.FileLockClusterService v;
long v;
v := @this: org.apache.camel.component.file.cluster.FileLockClusterService;
v := @parameter: long;
v := @parameter: java.util.concurrent.TimeUnit;
virtualinvoke v.<org.apache.camel.component.file.cluster.FileLockClusterService: void setAcquireLockInterval(long)>(v);
virtualinvoke v.<org.apache.camel.component.file.cluster.FileLockClusterService: void setAcquireLockIntervalUnit(java.util.concurrent.TimeUnit)>(v);
return;
}
public java.util.concurrent.TimeUnit getAcquireLockIntervalUnit()
{
java.util.concurrent.TimeUnit v;
org.apache.camel.component.file.cluster.FileLockClusterService v;
v := @this: org.apache.camel.component.file.cluster.FileLockClusterService;
v = v.<org.apache.camel.component.file.cluster.FileLockClusterService: java.util.concurrent.TimeUnit acquireLockIntervalUnit>;
return v;
}
public void setAcquireLockIntervalUnit(java.util.concurrent.TimeUnit)
{
java.util.concurrent.TimeUnit v;
org.apache.camel.component.file.cluster.FileLockClusterService v;
v := @this: org.apache.camel.component.file.cluster.FileLockClusterService;
v := @parameter: java.util.concurrent.TimeUnit;
v.<org.apache.camel.component.file.cluster.FileLockClusterService: java.util.concurrent.TimeUnit acquireLockIntervalUnit> = v;
return;
}
protected void doStop() throws java.lang.Exception
{
org.apache.camel.component.file.cluster.FileLockClusterService v;
org.apache.camel.CamelContext v;
java.util.concurrent.ScheduledExecutorService v, v, v;
org.apache.camel.spi.ExecutorServiceManager v;
v := @this: org.apache.camel.component.file.cluster.FileLockClusterService;
specialinvoke v.<org.apache.camel.impl.cluster.AbstractCamelClusterService: void doStop()>();
v = virtualinvoke v.<org.apache.camel.component.file.cluster.FileLockClusterService: org.apache.camel.CamelContext getCamelContext()>();
v = v.<org.apache.camel.component.file.cluster.FileLockClusterService: java.util.concurrent.ScheduledExecutorService executor>;
if v == null goto label;
if v == null goto label;
v = interfaceinvoke v.<org.apache.camel.CamelContext: org.apache.camel.spi.ExecutorServiceManager getExecutorServiceManager()>();
v = v.<org.apache.camel.component.file.cluster.FileLockClusterService: java.util.concurrent.ScheduledExecutorService executor>;
interfaceinvoke v.<org.apache.camel.spi.ExecutorServiceManager: void shutdown(java.util.concurrent.ExecutorService)>(v);
goto label;
label:
v = v.<org.apache.camel.component.file.cluster.FileLockClusterService: java.util.concurrent.ScheduledExecutorService executor>;
interfaceinvoke v.<java.util.concurrent.ScheduledExecutorService: void shutdown()>();
label:
v.<org.apache.camel.component.file.cluster.FileLockClusterService: java.util.concurrent.ScheduledExecutorService executor> = null;
label:
return;
}
synchronized java.util.concurrent.ScheduledExecutorService getExecutor()
{
org.apache.camel.CamelContext v;
org.apache.camel.component.file.cluster.FileLockClusterService v;
java.util.concurrent.ScheduledExecutorService v, v, v;
org.apache.camel.spi.ExecutorServiceManager v;
java.lang.Object v;
java.lang.String v, v;
v := @this: org.apache.camel.component.file.cluster.FileLockClusterService;
v = v.<org.apache.camel.component.file.cluster.FileLockClusterService: java.util.concurrent.ScheduledExecutorService executor>;
if v != null goto label;
v = virtualinvoke v.<org.apache.camel.component.file.cluster.FileLockClusterService: org.apache.camel.CamelContext getCamelContext()>();
v = staticinvoke <org.apache.camel.util.ObjectHelper: java.lang.Object notNull(java.lang.Object,java.lang.String)>(v, "CamelContext");
v = interfaceinvoke v.<org.apache.camel.CamelContext: org.apache.camel.spi.ExecutorServiceManager getExecutorServiceManager()>();
v = virtualinvoke v.<org.apache.camel.component.file.cluster.FileLockClusterService: java.lang.String getId()>();
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String)>(v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("FileLockClusterService-\u0001");
v = interfaceinvoke v.<org.apache.camel.spi.ExecutorServiceManager: java.util.concurrent.ScheduledExecutorService newSingleThreadScheduledExecutor(java.lang.Object,java.lang.String)>(v, v);
v.<org.apache.camel.component.file.cluster.FileLockClusterService: java.util.concurrent.ScheduledExecutorService executor> = v;
label:
v = v.<org.apache.camel.component.file.cluster.FileLockClusterService: java.util.concurrent.ScheduledExecutorService executor>;
return v;
}
}