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, ugerrstr
Fields inherited from class com.pnfsoftware.jeb.client.AbstractContext
app_company, app_dates, app_description, app_domain, app_email_licensing, app_email_support, app_email_updates, app_licensing_backup, app_name, app_uri, app_url_apidoc, app_url_changelist, 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_updated
Fields inherited from class com.pnfsoftware.jeb.util.events.EventSource
onEventCallCount
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Not called locally: it is entirely up to the client to implement and decide who calls this method.void
displayDemoInformation
(String demoInfo) Called fromAbstractClientContext.start()
.boolean
displayEula
(String eula) Called fromAbstractClientContext.start()
.void
initialize
(String[] argv) void
notifyFloatingClient
(ControllerNotification notification) May be called from anywhere, any thread.void
Called fromAbstractClientContext.start()
.void
onUpdatedSoftware
(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()
.boolean
Called fromAbstractClientContext.start()
.void
start()
The headless client implementation of start() also initialize the JEB engines.void
stop()
Methods inherited from class com.pnfsoftware.jeb.client.AbstractClientContext
assignCommandlineArguments, checkRunningInstaller, closeMainProject, closeOpenedProject, 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, shouldCheckUpdates
Methods inherited from class com.pnfsoftware.jeb.client.AbstractContext
getAppDirectory, getBaseDirectory, getChannelName, getCurrentDirectory, getJebClassesLocation, getProgramDirectory, getSoftwareVersion, getStartTimestamp, initNetworkUtility, isPreRelease, terminate
Methods inherited from class com.pnfsoftware.jeb.util.events.EventSource
addListener, countListeners, getListeners, getParentSource, insertListener, notifyListeners, notifyListeners, notifyListeners, relay, removeListener, setParentSource
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
initialize
in classAbstractClientContext
-
start
The headless client implementation of start() also initialize the JEB engines.- Overrides:
start
in classAbstractClientContext
- Throws:
JebException
-
stop
public void stop()- Overrides:
stop
in classAbstractClientContext
-
displayEula
Description copied from class:AbstractClientContext
Called fromAbstractClientContext.start()
.- Specified by:
displayEula
in classAbstractClientContext
-
retrieveLicenseKey
Description copied from class:AbstractClientContext
Called fromAbstractClientContext.start()
.- Specified by:
retrieveLicenseKey
in classAbstractClientContext
-
checkUpdate
public boolean checkUpdate()Description copied from class:AbstractClientContext
Not called locally: it is entirely up to the client to implement and decide who calls this method.- Specified by:
checkUpdate
in classAbstractClientContext
-
onUpdatedSoftware
Description copied from class:AbstractClientContext
Notify a concrete client that a new version of JEB is being run for the first time.Called from
AbstractClientContext.start()
.- Specified by:
onUpdatedSoftware
in 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:AbstractClientContext
Called fromAbstractClientContext.start()
.- Specified by:
notifySupportExpired
in classAbstractClientContext
-
displayDemoInformation
Description copied from class:AbstractClientContext
Called fromAbstractClientContext.start()
.- Specified by:
displayDemoInformation
in classAbstractClientContext
-
setupController
public boolean setupController()Description copied from class:AbstractClientContext
Called fromAbstractClientContext.start()
.- Specified by:
setupController
in classAbstractClientContext
-
notifyFloatingClient
Description copied from class:AbstractClientContext
May be called from anywhere, any thread.- Specified by:
notifyFloatingClient
in classAbstractClientContext
-