Tabnine Logo
JISession.setGlobalSocketTimeout
Code IndexAdd Tabnine to your IDE (free)

How to use
setGlobalSocketTimeout
method
in
org.jinterop.dcom.core.JISession

Best Java code snippets using org.jinterop.dcom.core.JISession.setGlobalSocketTimeout (Showing top 16 results out of 315)

origin: org.openscada.jinterop/org.openscada.jinterop.core

newsession.setGlobalSocketTimeout ( this.session.getGlobalSocketTimeout () );
newsession.useSessionSecurity ( this.session.isSessionSecurityEnabled () );
newsession.useNTLMv2 ( this.session.isNTLMv2Enabled () );
origin: org.jvnet.hudson.main/hudson-core

@Override
public void afterDisconnect(SlaveComputer computer, TaskListener listener) {
  try {
    JIDefaultAuthInfoImpl auth = createAuth();
    JISession session = JISession.createSession(auth);
    session.setGlobalSocketTimeout(60000);
    SWbemServices services = WMI.connect(session, computer.getName());
    Win32Service slaveService = services.getService("hudsonslave");
    if(slaveService!=null) {
      listener.getLogger().println(Messages.ManagedWindowsServiceLauncher_StoppingService());
      slaveService.StopService();
    }
  } catch (UnknownHostException e) {
    e.printStackTrace(listener.error(e.getMessage()));
  } catch (JIException e) {
    e.printStackTrace(listener.error(e.getMessage()));
  }
}
origin: hudson/hudson-2.x

@Override
public void afterDisconnect(SlaveComputer computer, TaskListener listener) {
  try {
    JIDefaultAuthInfoImpl auth = createAuth();
    JISession session = JISession.createSession(auth);
    session.setGlobalSocketTimeout(60000);
    SWbemServices services = WMI.connect(session, computer.getName());
    Win32Service slaveService = services.getService("hudsonslave");
    if(slaveService!=null) {
      listener.getLogger().println(Messages.ManagedWindowsServiceLauncher_StoppingService());
      slaveService.StopService();
    }
  } catch (UnknownHostException e) {
    e.printStackTrace(listener.error(e.getMessage()));
  } catch (JIException e) {
    e.printStackTrace(listener.error(e.getMessage()));
  }
}
origin: org.jinterop/j-interop

newsession.setGlobalSocketTimeout(session.getGlobalSocketTimeout());
newsession.useSessionSecurity(session.isSessionSecurityEnabled());
JIComServer comServer = new JIComServer(newsession,comObjectImpl.internal_getInterfacePointer(),null);
origin: org.kohsuke.jinterop/j-interop

newsession.setGlobalSocketTimeout(session.getGlobalSocketTimeout());
newsession.useSessionSecurity(session.isSessionSecurityEnabled());
newsession.useNTLMv2(session.isNTLMv2Enabled());
origin: org.kohsuke.jinterop/j-interop

public MSWMI(String address, String[] args) throws JIException, UnknownHostException
{
  this.address = address;
  session = JISession.createSession(args[1],args[2],args[3]);
  session.useSessionSecurity(true);
  session.setGlobalSocketTimeout(5000);
  comStub = new JIComServer(JIProgId.valueOf("WbemScripting.SWbemLocator"),address,session);
  IJIComObject unknown = comStub.createInstance();
  comObject = (IJIComObject)unknown.queryInterface("76A6415B-CB41-11d1-8B02-00600806D9B6");//ISWbemLocator
  //This will obtain the dispatch interface
  dispatch = (IJIDispatch)JIObjectFactory.narrowObject(comObject.queryInterface(IJIDispatch.IID));
}
origin: org.openscada.jinterop/org.openscada.jinterop.core

public MSWMI ( final String address, final String[] args ) throws JIException, UnknownHostException
{
  this.address = address;
  this.session = JISession.createSession ( args[1], args[2], args[3] );
  this.session.useSessionSecurity ( true );
  this.session.setGlobalSocketTimeout ( 5000 );
  this.comStub = new JIComServer ( JIProgId.valueOf ( "WbemScripting.SWbemLocator" ), address, this.session );
  final IJIComObject unknown = this.comStub.createInstance ();
  this.comObject = unknown.queryInterface ( "76A6415B-CB41-11d1-8B02-00600806D9B6" );//ISWbemLocator
  //This will obtain the dispatch interface
  this.dispatch = (IJIDispatch)JIObjectFactory.narrowObject ( this.comObject.queryInterface ( IJIDispatch.IID ) );
}
origin: org.jinterop/j-interop

public MSWMI(String address, String[] args) throws JIException, UnknownHostException
{
  this.address = address;
  session = JISession.createSession(args[1],args[2],args[3]);
  session.useSessionSecurity(true);
  session.setGlobalSocketTimeout(5000);
  comStub = new JIComServer(JIProgId.valueOf("WbemScripting.SWbemLocator"),address,session);
  IJIComObject unknown = comStub.createInstance();
  comObject = (IJIComObject)unknown.queryInterface("76A6415B-CB41-11d1-8B02-00600806D9B6");//ISWbemLocator
  //This will obtain the dispatch interface
  dispatch = (IJIDispatch)JIObjectFactory.narrowObject(comObject.queryInterface(IJIDispatch.IID));
}
origin: hudson/hudson-2.x

session.setGlobalSocketTimeout(60000);
SWbemServices services = WMI.connect(session, name);
origin: org.jvnet.hudson.main/hudson-core

session.setGlobalSocketTimeout(60000);
SWbemServices services = WMI.connect(session, name);
origin: org.jinterop/j-interop

newsession.setGlobalSocketTimeout(session.getGlobalSocketTimeout());
newsession.useSessionSecurity(session.isSessionSecurityEnabled());
JIComServer comServer = new JIComServer(newsession,ptr,null);
origin: org.kohsuke.jinterop/j-interop

newsession.setGlobalSocketTimeout(session.getGlobalSocketTimeout());
newsession.useSessionSecurity(session.isSessionSecurityEnabled());
newsession.useNTLMv2(session.isNTLMv2Enabled());
origin: org.openscada.external/org.openscada.da.server.opc

this.session.setGlobalSocketTimeout ( (int)this.globalSocketTimeout );
this.session.setGlobalSocketTimeout ( (int)this.globalSocketTimeout );
origin: org.openscada.jinterop/org.openscada.jinterop.core

newsession.setGlobalSocketTimeout ( session.getGlobalSocketTimeout () );
newsession.useSessionSecurity ( session.isSessionSecurityEnabled () );
newsession.useNTLMv2 ( session.isNTLMv2Enabled () );
origin: org.opennms/opennms-wmi

m_Session.setGlobalSocketTimeout(5000);
origin: OpenNMS/opennms

m_Session.setGlobalSocketTimeout(5000);
org.jinterop.dcom.coreJISessionsetGlobalSocketTimeout

Javadoc

Sets the timeout for all sockets opened to (not fro) the COM server for this session. Default value is 0 (no timeout). The class level and the method level settings in case of IJIComObject override this timeout.

Popular methods of JISession

  • createSession
    Creates a new session using credentials of the sessionparameter. The new session is not yet attached
  • destroySession
    Used to destroy the session, this release all references of the COM server and it's interfaces. It s
  • useSessionSecurity
    Sets the use of NTLM2 Session Security. Framework will use NTLM Packet Level Privacy and Sign\Seal
  • <init>
  • addToSession
  • debug_addIpids
  • debug_delIpids
  • equals
  • getDomain
    Gets the domain of the user associated with this session.
  • getGlobalSocketTimeout
    Returns the global timeout applied to all sockets opened from this session to COM Server.
  • getLocalHost
  • getLocalhostAddressAsIPString
  • getLocalHost,
  • getLocalhostAddressAsIPString,
  • getLocalhostAddressAsIPbytes,
  • getLocalhostCanonicalAddressAsString,
  • getPassword,
  • getSessionIdentifier,
  • getStub,
  • getTargetServer,
  • getUnreferencedHandler

Popular in Java

  • Running tasks concurrently on multiple threads
  • getResourceAsStream (ClassLoader)
  • notifyDataSetChanged (ArrayAdapter)
  • scheduleAtFixedRate (Timer)
  • Menu (java.awt)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • JTable (javax.swing)
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now