Package com.pnfsoftware.jeb.client
Class HeadlessClientContext
java.lang.Object
com.pnfsoftware.jeb.util.events.EventSource
com.pnfsoftware.jeb.client.AbstractContext
com.pnfsoftware.jeb.client.AbstractClientContext
com.pnfsoftware.jeb.client.HeadlessClientContext
- All Implemented Interfaces:
IClientContext,IEventSource
Headless client context for the command-line client. This context is used:
- for license key generation in headless environments
- for command-line based software update
- as the base of the built-in script runner (v2)
- for license key generation in headless environments
- for command-line based software update
- as the base of the built-in script runner (v2)
-
Field Summary
Fields inherited from class com.pnfsoftware.jeb.client.AbstractClientContext
args, basicChecksPassed, CLIENT_RUNNING_FILENAME_PREFIX, coreOptions, defaultClientConfigPath, defaultEnginesConfigPath, defaultPluginsFolderName, defaultScriptsFolderName, defaultTelemetryDatabasePath, inputpath, INSTALLER_LOCK_FILENAME, scriptpath, ugerrstrFields inherited from class com.pnfsoftware.jeb.client.AbstractContext
app_company, app_dates, app_domain, app_email_licensing, app_email_support, app_email_updates, app_licensing_backup, app_name, app_uri, app_url_apidoc, app_url_changelog, app_url_chat, app_url_check_update, app_url_check_update_backup, app_url_devportal, app_url_donate, app_url_faq, app_url_faqmem, app_url_fileuploader, app_url_forum, app_url_genkey, app_url_genkey_backup, app_url_genlk, app_url_github, app_url_github_samples, app_url_github_samples_scripts, app_url_manual, app_url_motd, app_url_purchase, app_url_uploaderrorlog, app_ver, app_website, demo, integrity_failed, just_updatedFields inherited from class com.pnfsoftware.jeb.util.events.EventSource
onEventCallCount -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanNot called locally: it is entirely up to the client to implement and decide who calls this method.voiddisplayDemoInformation(String demoInfo) Called fromAbstractClientContext.start().booleandisplayEula(String eula) Called fromAbstractClientContext.start().voidinitialize(String[] argv) voidnotifyFloatingClient(ControllerNotification notification) May be called from anywhere, any thread.voidCalled fromAbstractClientContext.start().voidonUpdatedSoftware(String changelist, Version oldVersion) Notify a concrete client that a new version of JEB is being run for the first time.retrieveLicenseKey(String licdata) Called fromAbstractClientContext.start().booleanCalled fromAbstractClientContext.start().voidstart()The headless client implementation of start() also initialize the JEB engines.voidstop()Methods inherited from class com.pnfsoftware.jeb.client.AbstractClientContext
assignCommandlineArguments, checkRunningInstaller, closeMainProject, closeOpenedProject, dumpProgramError, dumpUpdateToDisk, formatMemoryUsage, formatProcessInfo, generateLicenseInformation, getArguments, getConfiguration, getControllerInterface, getControllerMessage, getControllerPort, getControllerProtocol, getCoreContext, getEnginesContext, getInputpath, getLastPublicAnnouncementId, getLatestAvailableUpdate, getLogLevel, getMainProject, getMaxMemory, getNetworkUtility, getOpenedProject, getPreferredLanguage, getProcessId, getPropertyDefinitionManager, getPropertyManager, getProxyString, getScriptpath, getScriptsDirectory, getScriptsDirfile, getTelemetry, getTransientStore, getUpdateChannel, getUsedMemory, getUuid, hasOpenedProject, initializeEngines, isDevelopmentMode, isHeadless, logMemoryUsage, open, ping, retrieveLatestPublicAnnouncement, setControllerInterface, setControllerPort, setControllerProtocol, setDevelopmentMode, setLastPublicAnnouncementId, setLatestAvailableUpdate, setLogLevel, setPreferredLanguage, setProxyString, setScriptsDirectory, setUpdateChannel, shouldCheckPublicAnnouncements, shouldCheckUpdatesMethods inherited from class com.pnfsoftware.jeb.client.AbstractContext
getAppDirectory, getBaseDirectory, getChannelName, getCurrentDirectory, getJebClassesLocation, getProgramDirectory, getSoftwareVersion, getStartTimestamp, initNetworkUtility, isPreRelease, terminateMethods inherited from class com.pnfsoftware.jeb.util.events.EventSource
addListener, countListeners, getListeners, getParentSource, insertListener, notifyListeners, notifyListeners, notifyListeners, relay, removeListener, setParentSourceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.pnfsoftware.jeb.client.api.IClientContext
closeMainProject, getArguments, getBaseDirectory, getEnginesContext, getMainProject, getMaxMemory, getProcessId, getProgramDirectory, getSoftwareVersion, getTransientStore, getUsedMemory, open
-
Constructor Details
-
HeadlessClientContext
public HeadlessClientContext()
-
-
Method Details
-
initialize
- Overrides:
initializein classAbstractClientContext
-
start
The headless client implementation of start() also initialize the JEB engines.- Overrides:
startin classAbstractClientContext- Throws:
JebException
-
stop
public void stop()- Overrides:
stopin classAbstractClientContext
-
displayEula
Description copied from class:AbstractClientContextCalled fromAbstractClientContext.start().- Specified by:
displayEulain classAbstractClientContext
-
retrieveLicenseKey
Description copied from class:AbstractClientContextCalled fromAbstractClientContext.start().- Specified by:
retrieveLicenseKeyin classAbstractClientContext
-
checkUpdate
public boolean checkUpdate()Description copied from class:AbstractClientContextNot called locally: it is entirely up to the client to implement and decide who calls this method.- Specified by:
checkUpdatein classAbstractClientContext
-
onUpdatedSoftware
Description copied from class:AbstractClientContextNotify a concrete client that a new version of JEB is being run for the first time.Called from
AbstractClientContext.start().- Specified by:
onUpdatedSoftwarein classAbstractClientContext- Parameters:
changelist- an optional change logoldVersion- the last version of JEB that was run (note: the current version is always available as astatic public field)
-
notifySupportExpired
public void notifySupportExpired()Description copied from class:AbstractClientContextCalled fromAbstractClientContext.start().- Specified by:
notifySupportExpiredin classAbstractClientContext
-
displayDemoInformation
Description copied from class:AbstractClientContextCalled fromAbstractClientContext.start().- Specified by:
displayDemoInformationin classAbstractClientContext
-
setupController
public boolean setupController()Description copied from class:AbstractClientContextCalled fromAbstractClientContext.start().- Specified by:
setupControllerin classAbstractClientContext
-
notifyFloatingClient
Description copied from class:AbstractClientContextMay be called from anywhere, any thread.- Specified by:
notifyFloatingClientin classAbstractClientContext
-