Package com.biglybt.core
Interface Core
- All Known Implementing Classes:
CoreImpl
public interface Core
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
void
boolean
canStart
(int max_wait_secs) void
checks if restart operation is supported - if not an alert will be raised and an exception thrownvoid
executeCloseAction
(String action, String reason) void
executeOperation
(int type, CoreOperationTask task) long
boolean
boolean
boolean
boolean
void
void
void
void
void
request a restart of the system - currently only available for com.biglybt.ui.swt based systemsvoid
ask lifecycle listeners to perform a stop.void
restart()
restart the systemvoid
restart
(CoreOperationTask.ProgressCallback progress) void
void
start()
void
stop()
stop the core and inform lifecycle listeners of stoppingvoid
stop
(CoreOperationTask.ProgressCallback progress) void
triggerLifeCycleComponentCreated
(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
-