Interface Core
- All Known Implementing Classes:
CoreImpl
public interface Core
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidbooleancanStart(int max_wait_secs) voidchecks if restart operation is supported - if not an alert will be raised and an exception thrownvoidexecuteCloseAction(String action, String reason) voidexecuteOperation(int type, CoreOperationTask task) longbooleanbooleanbooleanbooleanvoidvoidvoidvoidvoidrequest a restart of the system - currently only available for com.biglybt.ui.swt based systemsvoidask lifecycle listeners to perform a stop.voidrestart()restart the systemvoidrestart(CoreOperationTask.ProgressCallback progress) voidvoidstart()voidstop()stop the core and inform lifecycle listeners of stoppingvoidstop(CoreOperationTask.ProgressCallback progress) voidtriggerLifeCycleComponentCreated(CoreComponent component)
-
Field Details
-
CA_QUIT_VUZE
- See Also:
-
CA_SLEEP
- See Also:
-
CA_HIBERNATE
- See Also:
-
CA_SHUTDOWN
- See Also:
-
-
Method Details
-
getCreateTime
long getCreateTime() -
canStart
boolean canStart(int max_wait_secs) -
start
- Throws:
CoreException
-
isStarted
boolean isStarted() -
isInitThread
boolean isInitThread() -
stop
stop the core and inform lifecycle listeners of stopping- Throws:
CoreException
-
stop
-
requestStop
ask lifecycle listeners to perform a stop. they may veto this by throwing an exception, or do nothing if nothing is done then it will be stopped as per "stop" above- Throws:
CoreException
-
checkRestartSupported
checks if restart operation is supported - if not an alert will be raised and an exception thrown- Throws:
CoreException
-
restart
void restart()restart the system -
restart
-
requestRestart
request a restart of the system - currently only available for com.biglybt.ui.swt based systems- Throws:
CoreException
-
isRestarting
boolean isRestarting() -
isStopping
boolean isStopping() -
executeCloseAction
-
saveState
void saveState() -
getLocaleUtil
LocaleUtil getLocaleUtil() -
getGlobalManager
- Throws:
CoreException
-
getPluginManagerDefaults
- Throws:
CoreException
-
getPluginManager
- Throws:
CoreException
-
getTrackerHost
- Throws:
CoreException
-
getIpFilterManager
- Throws:
CoreException
-
getInstanceManager
ClientInstanceManager getInstanceManager() -
getSpeedManager
SpeedManager getSpeedManager() -
getCryptoManager
CryptoManager getCryptoManager() -
getNATTraverser
NATTraverser getNATTraverser() -
getLockFile
File getLockFile() -
executeOperation
-
addOperation
-
removeOperation
-
getOperations
List<CoreOperation> getOperations() -
addLifecycleListener
-
removeLifecycleListener
-
addOperationListener
-
removeOperationListener
-
triggerLifeCycleComponentCreated
- Parameters:
component-
-
addPowerManagementListener
-
removePowerManagementListener
-