private final ObjectName query;
KernelBean( KernelData kernel, ManagementSupport support ) throws NotCompliantMBeanException
{
super( Kernel.class, kernel, support );
NeoStoreXaDataSource datasource = getNeoDataSource( kernel );
this.kernelVersion = kernel.version().toString();
this.query = support.createMBeanQuery( kernel.instanceId() );
storeCreationDate = datasource.getCreationTime();
storeLogVersion = datasource.getCurrentLogVersion();
isReadOnly = datasource.isReadOnly();
storeId = datasource.getRandomIdentifier();
@SuppressWarnings( "hiding" ) String storeDir;
try
{
storeDir = new File( datasource.getStoreDir() ).getCanonicalFile().getAbsolutePath();
}
catch ( IOException e )
{
storeDir = new File( datasource.getStoreDir() ).getAbsolutePath();
}
this.storeDir = storeDir;
kernelStartTime = new Date().getTime();
}