Package com.biglybt.core
Interface Core
-
- All Known Implementing Classes:
CoreImpl
public interface Core
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
CA_HIBERNATE
static java.lang.String
CA_QUIT_VUZE
static java.lang.String
CA_SHUTDOWN
static java.lang.String
CA_SLEEP
-
Method Summary
-
-
-
Field Detail
-
CA_QUIT_VUZE
static final java.lang.String CA_QUIT_VUZE
- See Also:
- Constant Field Values
-
CA_SLEEP
static final java.lang.String CA_SLEEP
- See Also:
- Constant Field Values
-
CA_HIBERNATE
static final java.lang.String CA_HIBERNATE
- See Also:
- Constant Field Values
-
CA_SHUTDOWN
static final java.lang.String CA_SHUTDOWN
- See Also:
- Constant Field Values
-
-
Method Detail
-
getCreateTime
long getCreateTime()
-
canStart
boolean canStart(int max_wait_secs)
-
start
void start() throws CoreException
- Throws:
CoreException
-
isStarted
boolean isStarted()
-
isInitThread
boolean isInitThread()
-
stop
void stop() throws CoreException
stop the core and inform lifecycle listeners of stopping- Throws:
CoreException
-
stop
void stop(CoreOperationTask.ProgressCallback progress)
-
requestStop
void requestStop() throws CoreException
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
void checkRestartSupported() throws CoreException
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
void restart(CoreOperationTask.ProgressCallback progress)
-
requestRestart
void requestRestart() throws CoreException
request a restart of the system - currently only available for com.biglybt.ui.swt based systems- Throws:
CoreException
-
isRestarting
boolean isRestarting()
- Returns:
- Since:
- 3053
-
executeCloseAction
void executeCloseAction(java.lang.String action, java.lang.String reason)
-
saveState
void saveState()
-
getLocaleUtil
LocaleUtil getLocaleUtil()
-
getGlobalManager
GlobalManager getGlobalManager() throws CoreException
- Throws:
CoreException
-
getPluginManagerDefaults
PluginManagerDefaults getPluginManagerDefaults() throws CoreException
- Throws:
CoreException
-
getPluginManager
PluginManager getPluginManager() throws CoreException
- Throws:
CoreException
-
getTrackerHost
TRHost getTrackerHost() throws CoreException
- Throws:
CoreException
-
getIpFilterManager
IpFilterManager getIpFilterManager() throws CoreException
- Throws:
CoreException
-
getInstanceManager
ClientInstanceManager getInstanceManager()
-
getSpeedManager
SpeedManager getSpeedManager()
-
getCryptoManager
CryptoManager getCryptoManager()
-
getNATTraverser
NATTraverser getNATTraverser()
-
getLockFile
java.io.File getLockFile()
-
executeOperation
void executeOperation(int type, CoreOperationTask task)
-
addOperation
void addOperation(CoreOperation op)
-
removeOperation
void removeOperation(CoreOperation op)
-
getOperations
java.util.List<CoreOperation> getOperations()
-
addLifecycleListener
void addLifecycleListener(CoreLifecycleListener l)
-
removeLifecycleListener
void removeLifecycleListener(CoreLifecycleListener l)
-
addOperationListener
void addOperationListener(CoreOperationListener l)
-
removeOperationListener
void removeOperationListener(CoreOperationListener l)
-
triggerLifeCycleComponentCreated
void triggerLifeCycleComponentCreated(CoreComponent component)
- Parameters:
component
-
-
addPowerManagementListener
void addPowerManagementListener(PowerManagementListener listener)
-
removePowerManagementListener
void removePowerManagementListener(PowerManagementListener listener)
-
-