With the help of several classes and create an object of a class and calling its method in a different class.

Creating a new class, I need to move my main method class SaveDate DynamicTest class. Below I've listed the code of both classes. The goal is to be able to run my class DynamicTest program. I need help to understand the process of moving my main method of a different class and creating an object of a class and calling its method.

public class {SaveData

private public static final map < String, Object > myCachedTreeMap = new TreeMap < String, Object > ();

public static final List < String > getLines (final String resourceParam, final Charset charset) throws IOException {}

System.out.println ("please:" + resourceParam);

If {(myCachedTreeMap.containsKey (resourceParam))

Use the file cached, to avoid a further reading.

System.out.println ("found in memory:" + resourceParam);

}

else {}

Load the file from the disk

System.out.println ("found in memory:" + resourceParam);

}

Returns a null value.

}

Public Shared Sub main (String [] args) throws IOException {}

String target_dir = "C:\\myfiles\\config\\en";

Line = "C:\\myfiles\\config\\en\\output.txt";

File dir = new File (target_dir);

File files [] = dir.listFiles ();

If (file == null: files.length < 1) {}

System.out.println ("file list is empty...");

return;

}

Open the Printwriter

PrintWriter OutputStream = new PrintWriter (output);

try {}

for (textFile file: files) {}

If (textFile.isFile () & & textFile.getName () .endsWith (".txt")) {}

readFromDisk (textFile);

}

}

}

{Finally

outputStream.close ();

}

String fileNameFromCache = "en_synonyms.txt";

Sheet1 = myCachedTreeMap.get (fileNameFromCache) object;

System.out.println (fileNameFromCache + ": \n" + "Sheet1");

}

@SuppressWarnings ("resource")

private static Sub readFromDisk(File textFile) throws FileNotFoundException, IOException {}

BufferedReader InputStream;

inputStream = null;

String content = "";

try {}

inputStream = new BufferedReader (new FileReader (textFile));

content = readFile (textFile);

System.out.println ("bytes read =" + content.length ());

Save the content

FileContentsObject Sheet1 = new FileContentsObject (System.currentTimeMillis (),

textFile.lastModified (), content,

textFile.getName (),

getLines (null, null));

Add to the map

myCachedTreeMap.put (textFile.getName (), Sheet1);

}

{Finally

If (inputStream! = null) {}

inputStream.close ();

}

}

}

private static String readFile(File f) throws FileNotFoundException, IOException, UnsupportedEncodingException {}

Text of StringBuilder = new StringBuilder (1024);

read int, N = 1024 * 1024;

char [] buffer = new char [N];

BufferedReader br = null;

try {}

BR = new BufferedReader)

(new) InputStreamReader

(new FileInputStream (f), 'UTF8'));

While (true) {}

read = br.read (buffer, 0, N);

If (read > 0)

Text.Append (new String (buffer, 0, read));

if(Read < N) {}

break;

}

}

}

{Finally

If (br! = null)

Br. Close();

}

Return text.toString ();

}

private static final class FileContentsObject {}

private long cachedTime; currentTime

private long lastModifiedTimestamp;

private string content

List < String > lines;

private String fileName;

public FileContentsObject (long cachedTime, long lastModifiedTimestamp,

Content string, String fileName, List < String > lines) {}

this.cachedTime = cachedTime;

this.lastModifiedTimestamp = lastModifiedTimestamp;

This.contents = content;

this.fileName = filename;

This.Lines = lines;

SimpleDateFormat sdf = new SimpleDateFormat ("MM/dd/yy hh: mm :"); ")

System.out.println ("time & Date:" + sdf.format (cachedTime));

System.out.println ("' last modification timestamp:" ")

+ sdf.format (lastModifiedTimestamp));

}

/**

*

* @return the lines of the file

*/

List < String > getLines() {}

Return this.lines;

}

public String toString() {}

"return"Sheet1 {}"+" fileName =' ' + filename + '------"+", content = "" "

+ content + "\"+ ", lastModifiedTimestamp ="

+ lastModifiedTimestamp + ', CurrentTime & Date ='

{+ cachedTime + '}';

}

}

}

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

public class DynamicTest {}

Public Shared Sub main (String [] args) {}

Game characters charset = Charset.forName("UTF-8");

try {}

List < String > = CacheData.getLines lines ("en_synonyms", character set);

If (rows! = null) {}

System.out.println ("number of rows:" + lines.size ());

for {(String ligne: lines)}

System.out.println ("DynamicTest:" + line);

}

}

} catch (IOException e) {}

e.printStackTrace ();

}

try {}

List < String > = CacheData.getLines lines ("en_stopwords", character set);

If (rows! = null) {}

System.out.println ("number of rows:" + lines.size ());

for {(String ligne: lines)}

System.out.println ("DynamicTest:" + line);

}

}

} catch (IOException e) {}

e.printStackTrace ();

}

}

}

Advertisement

I have read and watched videos about the creation of an object of a class and calling its method in a different class. I'm still confused on how to do it properly. By using the code below if someone can explain how to properly call the method of objects from my hand.

Huh? You have NOT posted any 'hand' or any 'method of objects '.

If you need help with the code, you need to view the code.

The Java tutorials has dozens of trails "Classes and objects": what they are, how to create and how to use them.

https://docs.Oracle.com/javase/tutorial/Java/javaOO/classes.html

1. create an instance of a class

2. call to one or more of the public methods of this class

If the class has public static methods, you don't need to create an instance first.

I suggest that you work your way through these tutorials. They include the WORKING example code.

Tags: Java

Similar Questions

  • With the help of several types of video files into one film will prevent the publication?

    I am using Movie Maker on Vista.  I have mpeg, avi and wmv files.  The Movie Maker plays very well in project mode, but will not be published.  Multiple file extensions would be the source of trouble?

    If so, is there a quick fix?

    Hi d1bon,
     
    1. what exactly happens when you try to publish a project?
    2. do you get an error message?
     
    With the help of several file extensions should not be a concern.

    Disable video filters and check the result.
    1. click on tools and then click Options.
    2. click on the Compatibility tab.
    3. to turn off a filter, clear the check box next to the name of the video filter.

    You also uninstall the Codecs and check the result: Uninstall

    Please provide us with more details on the issue, so that we can better help you.
     
    Check publish a movie in Windows Movie Maker
    Check, solving problems with publishing a movie to your computer 
     
    Kind regards
    Syed
    Answers from Microsoft supports the engineer.

  • With the help of several conditional tags with multiple outputs of WebHelp

    I have a project that I created for a web application. Within the web application, there are 3 types of customers (business Accts, Accts National and level 1 clients).

    I added each help topic associated with the help topics that I created.

    Then, I created 3 outputs of webhelp and 3 Table of contents for each type of client.

    My goal is to publish the project, where each type of client has their own output generated. Do it this way, which is listed in the help topics of table of contents for each type of customer that is not correctly displayed.

    Example: National accounts TOC

    What is generated:

    I have tagged in the table of contents to the conditional tag appropriate help topics. Help, please. Any advice? I can also be reached at [email protected]

    None of your screenshots came through - the icon of camera in the web interface allows you to attach images

  • With the help of several key values to find the data

    Hello, it's me again.

    I had a question out about data from database and display them on a page of the ADF on Jdev 11.1.1.3.

    And Mr. Daniel Atwood answered my question with this blog to follow, that wrote.
    http://www.avioconsulting.com/blog/datwood/2012/06/19/using-BPM-process-variable-ADF-form-retrieve-database-information-0.

    But I have another question on top that.

    The Mr.Atwood example is when using a value of key 'one', what happens if I have two key values, how to set?

    Here are some details:

    I have a table like this

    ID Type_code name
    0001 05 a-blabla
    0002 b 25-blabla
    0002 26 b-blabla
    0003-08 c-blabla
    0003 25 c-blabla
    0003 c 79-blabla

    What I want to do is after the entry of the ID (0003) and type_code (25), he will show me the result on three components of text entry in the ADF with the value 0003, 25 page and c-blabla.

    Currently, I use only ID to query the data, but I would use two key values to find specific data.

    Thank you very much for taking the time to think about it,

    Sincerely,

    Alto

    If you had multiple values to use for the request, one approach would be to create a display object. Whether you are creating the view object, in step 6, you will add two bind variables. Call a "pTypeCode" and call the other "pId". Click on the back button so that you're still in step 5, and modify the WHERE clause as follows:

    (ID = :pId) and (Type_code = :pTypeCode)
    

    After you have done this, double-click the Module of the Application and add your new view object. In the tab control of data, click the Refresh button. Expand your new view object tab of data control-> expand "French"-> note that you now have a new method called "ExecuteWithParams".

    Open your workflow diagram-> delete your existing "SetCurrentRowKeyValues" method-> made slide on your new "ExecuteWithParams" operation on the diagram. When you do so, you should see two settings you need to complete the dialog box. Just as you did before with the SetCurrentRowKeyValue method, set the values for the pTypeCode and the nest.

    Add the case of control flow of the new method to your existing view-> make the new method, the default value.

    On your form, remove the fields that have been placed here who uses the old object from view. On the tab of data control, drag the fields you want to be placed on the inside of your new view object form.

    Dan

  • Problem with PPR in a table advanced with the insertion of several lines in create the page using 'add a new button '.

    Hello experts,

    I created a page that contains an array of advanced, 6-7fields (including a poplist column)

    Whenever I have add a new using the line add new line button, I get a null pointer exception.

    Code in Scenario1.


    Public Sub handleCurrencyChangeEvent()

    {

    PVO OAViewObject = (OAViewObject) findViewObject ("xxCurrencyPVO1");

    Line OARow = (OARow) pvo.first ();

    OAViewObject dtlVO = (OAViewObject) findViewObject ("xxEcreditCardDtlVO1");

    OARow dtlRow = (OARow) dtlVO.getCurrentRow ();

    String currency = (String) dtlRow.getAttribute ("CurrencyCode");    / / NULL POINTER EXCEPTION

    If ((currency == null) |) ("AED".equals (currency)))

    {

    row.setAttribute ("ExchangeRateTypeRender", Boolean.FALSE);

    row.setAttribute ("ExchangeRateDateRender", Boolean.FALSE);

    row.setAttribute ("ExchangeRateRender", Boolean.FALSE);

    }

    on the other

    {

    row.setAttribute ("ExchangeRateTypeRender", Boolean.TRUE);

    row.setAttribute ("ExchangeRateDateRender", Boolean.TRUE);

    row.setAttribute ("ExchangeRateRender", Boolean.TRUE);

    }

    }

    Public Sub initPVO()

    {

    OAViewObject appPropsVO = (OAViewObject) findViewObject ("xxCurrencyPVO1");

    If (appPropsVO! = null)

    {

    If (appPropsVO.getFetchedRowCount () == 0)

    {

    appPropsVO.setMaxFetchSize (0);

    appPropsVO.executeQuery ();

    appPropsVO.insertRow (appPropsVO.createRow ());

    Line OARow = (OARow) appPropsVO.first ();

    row.setAttribute ("RowKey", new Number (1));

    }

    }

    handleCurrencyChangeEvent();    / / If I comment on this call, there will be no null pointer when I click on the button Add a new rank and PPR will not be the first line when I select the poplist.                 

    }

    Public Sub createDetailRow()

    {

    String hdrId;

    OAViewObject hdrvo1 = (OAViewObject) getxxEcreditCardHdrVO1 ();

    OAViewObject dtlvo = (OAViewObject) getxxEcreditCardDtlVO1 ();

    Initialize and create a line of VO

    If (! dtlvo.isPreparedForExecution ())

    {

    dtlvo.setMaxFetchSize (0);

    dtlvo.executeQuery ();

    }

    Line dtlrow = dtlvo.createRow ();

    dtlvo.executeQuery ();

    int count = dtlvo.getRowCount ();

    dtlvo.insertRowAtRangeIndex (count, dtlrow);

    Development of the sequence for the number of request *.

    Number of dtlseq = getOADBTransaction () .getSequenceValue ("xxdm. XXDMI_ECREDIT_CARD_DTL_SEQ");

    hdrId = hdrvo1.getCurrentRow ().getAttribute("CreditCardHdrId").toString (); mind vo

    dtlrow.setAttribute ("CreditCardHdrId", hdrId);

    dtlrow.setAttribute ("CreditCardLineId", dtlseq);

    dtlrow.setAttribute ("LineNumber", count + 1);

    End of sequence generation *.

    dtlrow.setAttribute ("CurrencyCode", "AED");

    String currency = (String) dtlrow.getAttribute ("CurrencyCode");

    System.out.println ("CurrencyCode:" + currency);

    dtlrow.setNewRowState (Row.STATUS_INITIALIZED);

    } / / end createDetailRow()

    ' Public Sub processFormRequest (pageContext OAPageContext, OAWebBean webBean)

    {

    super.processFormRequest (pageContext, webBean);

    OAApplicationModule am = pageContext.getApplicationModule (webBean);

    Event string = pageContext.getParameter (OAWebBeanConstants.EVENT_PARAM);

    * Treatment add line button *.

    If ((ADD_ROWS_EVENT. Equals (Event)) & & "AdvTblRN".equals (pageContext.getParameter ("source"))) ".

    {

    am.invokeMethod ("createDetailRow", null);

    am.invokeMethod ("initPVO");

    } //**End add row button *.

    otherwise if

    ("currCodeChangeEvent".equals (pageContext.getParameter (OAWebBeanConstants.EVENT_PARAM)))

    {

    am.invokeMethod ("handleCurrencyChangeEvent");

    }

    ===========================================================================================================================

    Could please help what is wrong in the code, I followed all the steps as stated in the guide, but the table advance, the problem starts whenever I click on the button Add a new row for the creation of new line.

    I couldn't understand what was wrong with the code.

    Thanks in advance,

    Suman

    Suman,

    A few points:

    1. Why do you call handleCurrencyChangeEvent in the event to add a line? Simply set the useful, likely of the values in the line it himself.

    ex:-instead of calling the handleCurrenyChange method, simply add the below lines inside the createDetailRow()

    dtlrow.setAttribute ("ExchangeRateTypeRender", Boolean.FALSE);

    dtlrow.setAttribute ("ExchangeRateDateRender", Boolean.FALSE);

    dtlrow.setAttribute ("ExchangeRateRender", Boolean.FALSE);

    2. it looks like you have on the field of the currency and that fireAction handleCurrencyChangeEvent action method is called, right?

    Instead of using dtlVo.getCurrentRow, use the code below:

    public void handleCurrencyChangeEvent(String eventRowSourceParam)
      {
      OAViewObject pvo = (OAViewObject)findViewObject("xxCurrencyPVO1");
      OARow row = (OARow)pvo.first();
    
      OAViewObject dtlVO = (OAViewObject)findViewObject("xxEcreditCardDtlVO1");
    
      //OARow dtlRow = (OARow)dtlVO.getCurrentRow();
      OARow dtlRow = (OARow)this.findRowByRef(eventRowSourceParam);
    
      String  currency = (String)dtlRow.getAttribute("CurrencyCode");    // NULL POINTER EXCEPTION
    
      if ((currency == null) || ("AED".equals(currency)))
      {
      row.setAttribute("ExchangeRateTypeRender", Boolean.FALSE);
      row.setAttribute("ExchangeRateDateRender", Boolean.FALSE);
      row.setAttribute("ExchangeRateRender", Boolean.FALSE);
      }
      else
      {
      row.setAttribute("ExchangeRateTypeRender", Boolean.TRUE);
      row.setAttribute("ExchangeRateDateRender", Boolean.TRUE);
      row.setAttribute("ExchangeRateRender", Boolean.TRUE);
      }
      }
    

    In the controller:

    if((ADD_ROWS_EVENT.equals(event)) && "AdvTblRN".equals(pageContext.getParameter("source")) )
    {
      am.invokeMethod("createDetailRow",null);
      am.invokeMethod("initPVO");
    } //**End Add Row Button**
    else if ("currCodeChangeEvent".equals(pageContext.getParameter(OAWebBeanConstants.EVENT_PARAM)))
    {
      String eventRowSourceParam = pageContext.getParameter(EVENT_SOURCE_ROW_REFERENCE);
      Serializable[] params = {eventRowSourceParam};
        Class[] paramTypes    = {String.class};
      am.invokeMethod("handleCurrencyChangeEvent",params, paramTypes);
    }
    

    3. Why do you call initPVO when it is clicked on the Add line? Are you calling not just in the PR?

    You could call it once in the PR and let. When you call it PR, you may need to remove the handleCurrencyChangeEvent of this method call.

    See you soon

    AJ

  • With the help of several values with CFSET

    Currently using CF7 to develop for the server.

    Several (many) use < cfif > statements on page to hide/display based on the user name credentials.

    My curernt for this code is:

    < cfif (MM_Session.Username EQ "Name1" or MM_Session.Username EQ "Name2") or MM_Session.Username EQ "name3" > show me something < / cfif >

    The problem is that to add/change/delete a name, I have do this 15 times.  Can I still use find/replace, but I thought I could put something in place in the Application file for better management. What I came up with is the following:

    In the Application, I inserted:

    < cfset theadmin = "Name1, name2, Name3" >

    On the other page:

    < cfif (MM_Session.Username EQ #theadmin #) > show me something < / cfif >

    Of course, he did not.  I know there must be a table, but I don't know how to do this with cfset and what I found in the research and documentation does not worked either.  I was hoping to create a list of user names in the application so that I can quickly add/modify/delete users once.

    Any ideas or help would be great!  Thanks in advance!

    OgreOne wrote:

    Currently using CF7 to develop for the server.

    Several (many) use statements on page to hide/display based on the user name credentials.

    My curernt for this code is:

    Show me something

    The problem is that to add/change/delete a name, I have do this 15 times.  Can I still use find/replace, but I thought I could put something in place in the Application file for better management. What I came up with is the following:

    In the Application, I inserted:

    On the other page:

    Show me something

    Of course, he did not.  I know there must be a table, but I don't know how to do this with cfset and what I found in the research and documentation does not worked either.  I was hoping to create a list of user names in the application so that I can quickly add/modify/delete users once.

    Any ideas or help would be great!  Thanks in advance!

    First, it is important that your Application.cfm file implements the cfaplication tag. At least something like this will do:

    Then, put this in the Application.cfm file:

    It makes the adminList variable available to each page in your application. You can now proceed with the following checks on any page:

    Show me something

  • With the help of several outings on NI USB-6229

    Hello

    I have a question about the use of several output (input) on NI USB-6229. I request of programming where I use a few digital, digital inputs, outputs some analog outputs and inputs. Initialization of all the ports that I have in a Subvi, which lies in a loop for I control settings on the other for loop by using notifications. Problem is that this outpust is really slow (or reading entries), I want to say in my main loop I setting button, but it takes at least 1 s to change my outings (even with reading entries)? So I am wonderig what I am doing wrong. Can plesae you tell me what is the best way how to control several different ports?

    OK, so my whole program structure is like this:

    In primary Vi, I have a loop that subvis in other control loops. One of the Subvi is Subvi whichchange parameters at initialization Subvi. The structure on the photo. Please help me because I really don't know where is the problem. I use two converters AD / DA more and some machines that I am targeted by using the RS232 but it NEITHER original is the slowest.

    PS. If I turn on only parameter Subvi loop everythinf is much faster.

    OK problem with loops slow fixed http://forums.ni.com/t5/LabVIEW/Slow-parallell-loops-with-DAQ/m-p/1698988#M601731.

  • Reg: With the help of several tables of facts in the RPD!

    Hi all

    Can I get help with the following scenario?

    We use OBIEE 11 g.
    We have a report that uses 1 single fact table to retrieve data and it must be hell a lot of time to display the data in the report.

    My question is is there a way to show the performance of the report if divide us the data in table 1 to 2 fact tables and the report uses them 2 made tables.
    Are there other ways of finalization of the report for better performance.

    Thanks for the help in advance!

    Ajay.

    Hi Ajay,

    Follow these steps for tuning;
    1. try to adjust the SQL query generated first by the report, and then make the necessary changes. (Put index on the column that is required so that your query is scanning the index instead of the whole table)

    2. you can try to create the agg fact table and use agg navigation to improve performance. (This is to reduce the data set on which sql is triggered)

    3. you can try to create partitions on the table of FACTS in the comic book, and so held the partitions are queried according to the filters.

    4. in the last if all the foregoing does not resolve your query, you can try to divide the FACT table in two or more depending on your decision and then use fragmentation content in the MDB of the RPD layer if it will strike appropriate tables depending on whether you declare.

    Mark Correct/utile so this can help.

    Good luck
    Kashi

  • With the help of Master pages and blocks of text

    Hello

    I created a text frame on a master page and you have specified a style

    Can I add my custom text on the text block by pressing ctrl + Maj + text block.

    If I change the style, it applies to all pages.  But if I move or resize the text block on the page master it does not apply to all pages because it has become its own layer on this page.

    What do you do before you can change the text block and the master page and still be able to add your own content in pages that depend on the master page.

    Thanks a lot for your help

    Why do you need to replace the title of the page?

    Use either a text variable, a section marker or create another master page based on this master page with a different text in the placeholder. Only the content will appear on the pages, everything else, like running headers or page numbers or artifacts have a place on the master page without replacing them.

    When you later create accessible PDF or EPUB this difference is important. You can read high voice content in Acrobat for accessibility, that text on the page, not the master is used for this, and when you export an EPUB page only elements, not the master are included as it should.

    If you need text to expand, when something changes, create your page with margins and borders that will help to make changes later.

  • With the help of Adobe Muse to create a mail template html simple electronic

    Hello

    I recently downloaded the demo of Adobe Muse to create a header for my e-mail templates.  I use constant Contact both Force application for e-mail communication and both give the option to download your html file.

    This is what looks like my overview:

    screenshot 2.jpg

    And when I download in permanent Contact and the strength of demand, it looks like this:

    screenshot 1.jpg

    I'm just trying to create a header single (photo) with the menu bar that links to the pages of our Web site.

    Make my images / CSS files must be hosted on the internet and NOT on my computer? It's the only thing I can think that it would not load either...

    Any suggestion would be great!

    Thank you!!

    Katie

    I use Mail Chimp and they have the ability to download a ZIP file with your HTML code created. Everything is hosted by Mail Chimp this way so no need to host on a foreign server. The ZIP file just needs to have everything out there (not in the files, only loose). You will need to change the image links in your HTML file to read only the name of the image ("image1.jpg" and not "/images/image1.jpg").

    I don't know if the CC or DF have the ability to ZIP. Maybe it helps

    Thank you

    Jay

  • With the help of my classes with OptimisticNamedCache

    Hello

    I learn to use the framework of the Transaction, and I'm stuck on a problem. When I add entries consisting of Java to a NamedOptimisticCache types everything works as expected. If I try to use my own classes as the keys and the values for the entries, it seems that each of my key points to a value zero.

    I wrote a simple program with two classes of support and a stripped down in the cache configuration file to illustrate the problem. Their text appears under my signature.

    Here is the result of an execution. Note the line that reads: [email protected]=null

    2011-07-22 19:20:19.949/1.325 Oracle coherence 3.7.0.0 < Info > (thread = main Member, = n/a): responsible operational configuration of "jar:file:/C:/Users/Dan/coherence/lib/coherence.jar!/tangosol-coherence.xml".
    2011-07-22 19:20:20.084/1.460 Oracle coherence 3.7.0.0 < Info > (thread = main Member, = n/a): responsible for operational substitutions of "jar:file:/C:/Users/Dan/coherence/lib/coherence.jar!/tangosol-coherence-override-dev.xml".
    2011-07-22 19:20:20.085/1.461 Oracle coherence 3.7.0.0 < D5 > (thread = main Member, = n/a): configuration optional override ' / tangosol-coherence - override.xml ' is not specified
    2011-07-22 19:20:20.096/1.472 Oracle coherence 3.7.0.0 < D5 > (thread = main Member, = n/a): configuration optional override "/ custom - mbeans.xml ' is not specified

    Oracle Version 3.7.0.0 Build 23397 consistency
    Grid edition: development Mode
    Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.

    2011-07-22 19:20:20.524/1.900 Oracle coherence GE 3.7.0.0 < Info > (thread = main Member, = n/a): configuration of the loaded cache of 'jar:file:/C:/Users/Dan/coherence/lib/coherence.jar!/internal-txn-cache-config.xml '.
    2011-07-22 19:20:20.541/1.917 Oracle coherence GE 3.7.0.0 < Info > (thread = main Member, = n/a): configuration of the loaded cache of 'file:/C:/Users/Dan/diceWorkspace/coherenceTxnFwork/config/cacheConfig.xml '.
    2011-07-22 19:20:22.411/3.787 Oracle coherence GE 3.7.0.0 < D4 > (thread = main Member, = n/a): TCMP linked to /192.168.15.2:8088 using SystemSocketProvider
    2011-07-22 19:20:26.763/8.139 Oracle coherence GE 3.7.0.0 < Info > (thread = Cluster, Member = n/a): created a new cluster "cluster: 0x96AB ' with members (Id = 1, Timestamp is 2011-07-22 19:20:22.449, address = 192.168.15.2:8088, MachineId = 26370, location = machine: in-laptop, process: 8704, role = DemoDemo, edition = Grid Edition, Mode = development, CpuCount = 2, SocketCount = 2) UID = 0xC0A80F02000001315313A83167021F98
    2011-07-22 19:20:26.775/8.151 Oracle coherence GE 3.7.0.0 < Info > (thread = main Member, = n/a): started cluster name = cluster: 0x96AB

    Group {address = 224.3.7.0, Port = 37000, TTL = 4}

    MasterMemberSet
    (
    ThisMember = member (Id = 1, Timestamp is 2011-07-22 19:20:22.449, address = 192.168.15.2:8088, MachineId = 26370, location = machine: in-laptop, process: 8704, role = DemoDemo)
    OldestMember = member (Id = 1, Timestamp is 2011-07-22 19:20:22.449, address = 192.168.15.2:8088, MachineId = 26370, location = machine: in-laptop, process: 8704, role = DemoDemo)
    ActualMemberSet = set of members (size = 1, BitSetCount = 2.
    Member (Id = 1, Timestamp is 2011-07-22 19:20:22.449, address = 192.168.15.2:8088, MachineId = 26370, location = machine: in-laptop, process: 8704, role = DemoDemo)
    )
    RecycleMillis = 1200000
    RecycleSet = member (size = 0, BitSetCount = 0 set
    )
    )

    TcpRing {connection = []}
    IpMonitor {AddressListSize = 0}

    2011-07-22 19:20:26.846/8.222 Oracle coherence GE 3.7.0.0 < D5 > (thread = Invocation: management, Member = 1): service management joined the cluster with the senior members of the service 1
    2011-07-22 19:20:26.947/8.323 Oracle coherence GE 3.7.0.0 < Info > (thread = main, Member = 1): configuration of the loaded cache of 'jar:file:/C:/Users/Dan/coherence/lib/coherence.jar!/internal-txn-cache-config.xml '.
    2011-07-22 19:20:27.544/8.920 Oracle coherence GE 3.7.0.0 < Info > (thread = main, Member = 1): configuration of the loaded cache of 'jar:file:/C:/Users/Dan/coherence/lib/coherence.jar!/internal-txn-cache-config.xml '.
    2011-07-22 19:20:27.581/8.957 Oracle coherence GE 3.7.0.0 < D5 > (thread = DistributedCache:TransactionalCache, Member = 1): Service TransactionalCache joined the cluster with the senior members of the service 1
    2011-07-22 19:20:27.790/9.167 Oracle coherence GE 3.7.0.0 < Info > (thread = TransactionFrameworkThread, Member = 1): version Manager started
    2011-07-22 19:20:28.178/9.554 Oracle coherence GE 3.7.0.0 < D5 > (thread = DistributedCache:TransactionalCache, Member = 1): transactional high cabinets: 10 M
    1 = dog
    2011-07-22 19:20:28.935/10.311 Oracle coherence GE 3.7.0.0 < D5 > (thread = DistributedCache:TransactionalCache, Member = 1): transactional high cabinets: 10 M
    [email protected]=null
    2011-07-22 19:20:29.319/10.695 Oracle coherence GE 3.7.0.0 < D4 > (= ShutdownHook thread, Member = 1): ShutdownHook: cluster node to stop
    2011-07-22 19:20:29.323/10.699 Oracle coherence GE 3.7.0.0 < D5 > (thread = Cluster, Member = 1): Service de Cluster in the cluster on the left
    2011-07-22 19:20:29.339/10.715 Oracle coherence GE 3.7.0.0 < D5 > (thread = DistributedCache:TransactionalCache, Member = 1): Service TransactionalCache left in the cluster
    2011-07-22 19:20:29.340/10.716 Oracle coherence GE 3.7.0.0 < D5 > (thread = TransactionFrameworkThread member = 1): repeat AggregateAllRequest for 257 of 257 points due to the redistribution of PartitionSet {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215 216 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256}
    2011-07-22 19:20:29.345/10.721 Oracle coherence GE 3.7.0.0 < D5 > (thread = Invocation: management, Member = 1): service management left the cluster


    Thank you.

    -Dan

    Demo program illustrates the problem

    to import java.util.Set;
    java.util.Map.Entry import;
    import com.tangosol.coherence.transaction.Connection;
    import com.tangosol.coherence.transaction.DefaultConnectionFactory;
    import com.tangosol.coherence.transaction.OptimisticNamedCache;

    public class Demo {}

    /**
    @param args
    */
    Public Shared Sub main (String [] args) {}

    This block of code shows Java native types work ok.
    Connection con = DefaultConnectionFactory() new
    .createConnection ("TransactionalCache");
    OptimisticNamedCache txCache = con.getNamedCache("txCache");
    txCache.put (1, "dog");
    con. Close;
    The value < entry > tCacheEnts = txCache.entrySet ();
    for (entry e: tCacheEnts) {}
    System.out.println (e);

    }

    This block of code illustrates the problem I have with my own types.
    Con1 connection = new DefaultConnectionFactory()
    .createConnection ("TransactionalCache");
    OptimisticNamedCache txCache1 = con1.getNamedCache("txCache1");
    Key MyKey = new MyKey();
    Value of MyValue = new MyValue();
    key.setId (1);
    value.setStrValue ("ONC1");
    txCache1.put (key, value);
    Con1.close ();
    The value < entry > t1CacheEnts = txCache1.entrySet ();
    for (entry e: t1CacheEnts) {}
    System.out.println (e);

    }
    }
    }

    My custom key class
    import java.io.Serializable;


    MyKey/public class implements Serializable {}
    Whole ID;

    public Integer getId() {}
    return the id;
    }

    {} public void setId (Integer id)
    This.ID = id;
    }

    public MyKey() {}
    }
    }

    My custom value class

    import java.io.Serializable;


    MyValue/public class implements Serializable {}
    String strValue;

    public String getStrValue() {}
    return strValue;
    }

    public void setStrValue (String value) {}
    this.strValue = value;
    }

    public MyValue() {}
    }

    }



    My config of cache

    <? XML version = "1.0"? >

    <! SYSTEM cache-config DOCTYPE "cache - config.dtd" >

    <>cache-config

    < cache-system-mapping >

    <>cache-mapping
    < name of the cache - > * < / cache-name >
    < scheme name > example distributed < / system-name >
    < / cache-mapping >

    <>cache-mapping
    < name-cache > tx * < / cache-name >
    < scheme name > transactional example < / system-name >
    < / cache-mapping >

    < / cache-system-mapping >


    <>- cached patterns
    <!--
    Distributed caching scheme.
    ->
    < distributed plan >
    < scheme name > example distributed < / system-name >
    < service name > DistributedCache < / service-name >
    thread < lease-granularity > < / lease-granularity >
    thread < number > 100 < / thread count >

    < support-map-plan >
    < local plan >
    <>plan-unlimited-support-map Ref < / plan-ref >
    < / local plan >
    < / support-map-plan >

    < autostart > true < / autostart >
    < / distributed plan >

    < transactional system >
    < scheme name > transactional example < / system-name >
    < number > 10 threads < / thread count >
    < service name > TransactionalCache < / service-name >
    < request-timeout > 30000 < / timeout request >
    < support-map-plan >
    < local plan >
    <>plan-unlimited-support-map Ref < / plan-ref >
    < / local plan >
    < / support-map-plan >
    < autostart > true < / autostart >
    < / transactional system >
    <!--
    Card support schema definition used by all caches that are not
    require expulsion policies
    ->
    < local plan >
    < scheme name > unlimited-support-map < / system-name >
    < / local plan >

    < / cache-plans >
    < / cache-config >

    Published by: dan_at_scapps on July 22, 2011 11:14

    Hi Dan,.

    Your key should implement equals() and hashCode(). Something like...

    
           public int hashCode()
                {
                return id;
                }
    
            public boolean equals(Object o)
                {
                if (o instanceof MyKey)
                    {
                    MyKey that = (MyKey) o;
    
                    return id.equals(that.id);
                    }
    
                return false;
                }
    

    Thank you
    Tom

  • With the help of several sliders/controllers?

    Hey guys. Sorry that my first question is going to be such a simple, but I'm pulling my hair out after two days trying to understand and modify the skeleton model.

    Obviously I like to learn, and I learned a lot from watching her and modify examples and read 'the' AE SDK tutorial on MacTech and the documentation. But I'm at a standstill here; How to use several sliders and pass their values to the Render function?

    Or put it differently; uses two separate functions for two sliders iterate() way to go, or should I do all my calculations with the two sliders in the same service?

    Right now I am running two functions iterate() in a row, with different refcons and functions but only the last one gets stuck. I guess that's because they all use two & params [SKELETON_INPUT]--> u.ld as src and output as, well, output - the second function, by overwriting the first.

    I read in the literature, page 96, you can use something like that;

    lines_per_iterateL = in_data-> extent_hint.top - in_data-> extent_hint.bottom;

    total_linesL = 3 * lines_per_iterateL;

    lines_so_farL = 0;

    Suites.iterate8suite () > iterate)

    lines_so_farL,

    total_linesL,

    input_worldP,

    & output > extent_hint;

    Conref,

    WhizBangPreProcessFun,

    output_worldP);

    lines_so_farL += lines_per_iterateL; ERR (PF_PROGRESS (lines_so_farL, total_linesL));

    But tbh I get just enough there.

    Notice to lovers?

    Edit: Well, I now get the values of two sliders - perhaps I did before too - but I can use them only if I have them summarize under the Conref even used in the function iterate(). Looks like I need a function iterate() for each cursor?

    Hi janzakSwe!

    Welcome to the forum!

    :-)

    I'll try to make sense in the madness...

    function iterate() did something very simple:

    It give you two pixels of correlation of two buffers.

    everything belongs to you.

    you don't have to deal with in the pixel of input as pixel of input and output output. If you really want, you can use them in the opposite direction. (but why would you do that?)

    you're more likely to read the value of the output pixel and include it in your calculation before overwriting. This was the case when you said that the second iterate function has replaced the first. Obviously, because you have written new data for the output pixels while ignoring old data already in them.

    now how do you pass data from your two sliders in the iterate function?

    using the Conref.

    the Conref is nothing other than a void pointer, which points to a structure or a class.

    He is not Holy or sacred. Change it. Add data to it, to hold as many distinct values as you want. write a poem in there. It is just a structure.

    now, you need only one or two iterations?

    I have no idea. It's really a question of whether algorithmically you should complete a single pass for the following on the basis.

    If possible, try to group as many treat you to a call for a single iteration, instead of several.

    you'd have a lot less overhead (the iteration function eats some cpu on its own).

    I hope that I made things clearer for you.

  • With the help of several games tab

    What is the best way to handle this situation:
    In my APEX 3.1.0 app, I have a standard tab set with 7 tabs.
    A Department uses only the pages under the first 3 tabs and another Department only pages on the last 4 tabs.
    Now people are saying, they can't even see the tabs are not part of them.
    So I thought that I copy the existing tab game and do 2 new series of tab to it and then delete the legs that are not necessary in each of them. I have "he's called the Dept1_TabSet and Dept2_TabSet.» Then I'll change 'Tab Standard Set' property in the pages to the new set of appropriate tab.
    Question 1: How do you do that? Looks like the Apex only allows you to create new sets of tab tab by tab. I don't really see a way to copy an existing set of tab.
    Question 2: given that P1 is displayed by default when the application starts and P1 will be associated with Dept1_TabSet, how will Dept2 users navigate to the pages they need? Do I need the application to start up on a page that asks the user to choose what Department it is from?

    Or maybe the solution requires a completely different methodology. Please let me know.


    Thank you.

    Published by: Prohan on January 22, 2010 07:39

    Hello

    I would use the second approach.
    It is a good idea to decide what page you will in time connection, step in that process the header.

    OK, you use integrated authentication Apex, but in any case you have a few tables with your users and services or you those hard-coded?
    Then, you need to keep synchronized these tables with users that you create in the apex.
    (Btw, instead of your own user table, you can use built-in Apex table WWV_FLOW_FND_USER and configure up to 10 attributes to users where you can store all kinds of information about your users, e.g. Department but it's maybe off-topic here,
    You can check apex_util procedure and package set_attribute get_attribute function).

    So, just create a function that returns the page number as username, you have not need check the name of user and password here, since even when
    If this is not correct wwv_flow_custom_auth_std.login process will not succeed.

    i.e. put something like this in your Login Page 101 in the Login process after submit, (I assume that you have the standard login page)

    DECLARE
    n_page_to NUMBER;
    BEGIN
    
    :P101_USERNAME := upper(trim(:P101_USERNAME));
    n_page_to := my_login_page(:P101_USERNAME);
    
    wwv_flow_custom_auth_std.login(
        P_UNAME       => :P101_USERNAME,
        P_PASSWORD    => :P101_PASSWORD,
        P_SESSION_ID  => v('APP_SESSION'),
        P_FLOW_PAGE   => :APP_ID||':'||n_page_to
        );
    END;
    

    I've trimmed username and have uppercase. To do this, you can use both calculations, and I think that you already have this logic.

    and your function in DB which will return the default department page:

    create or replace FUNCTION my_login_page(p_username VARCHAR2)  RETURN NUMBER IS
    
    BEGIN
    FOR i in (select decode(department,1,1,2,2,1) page_id from my_users where username = p_username) loop
       return i.page_id;
    END LOOP;
    RETURN 1;
    END;
    

    So for usernames in your table, it will return page 1 to page 2 for dep2, dep1, page 1 for all other values of Department and that you might have.
    And where there is no user in a table, it will be back to page 1.
    So, in case the user is not in the table, but he managed to authenticate, there be page 1.

    those are just ideas.
    You can have several departments in the future, so you can store page default Department in your table, not hard-coded values.

    Kind regards
    Oleg

  • With the help of several PLSK400?

    I'm looking to place my file multimedia/Xeon server in my garage (much cooler than where it is now).  Currently, I have the PLSK400 and I love it it works fine for a Media Streaming my MacMini to my theatrical home page 3 floors away and the use of the AppleTV.  I need for the server file / multimedia is an another Kit PLSK400 (as the only PLEK400 is out of stock), and I'm asking is if I can use 4 of the kit with the outgoing PLSK400 installer I have, or I have to use the PLSK400 second set kit to provide the network in the garage?

    Basically it is possible to have TWO kits of PLSK400 in use at the same time on power lines same?

    Thank you

    Yes, you can have several of your network, Nexxsys power lines.

  • With the help of several NIC in Win 7 - different subnet

    Can someone tell me the best way or the right way to configure two 2 Gigabit NIC in Windows 7 Ultimate?

    Map NETWORK 1 is currently used to access the INET and my FreeNAS server via a 192.168.0.x subnet. I would like to set up a 2nd NETWORK card to maintain a "static route" between this box (Win 7) and box of FreeNAS (OPT 1 is configured as a secondary NIC on the side of FreeNAS already).

    The static route will use the subnet 192.168.x.x with FreeNAS is 192.168.1.100 on the secondary card. The Win 7 box, I'm going to say... 192.168.1.3 for the static route NIC w / the same thing for GW and DNS.

    Is it possible that way, as mentioned above, or what I need to dig a little deeper. The static route will allow me to exploit the full potential (at least I hope) between 2 machines with regard to flow by a X-Over cable. This way I can put both sides higher than regular LAN depending on the parameters.

    I don't need to work, but rather a bit more than the flow of 20 MB/s when xfering large files recording studio. Yes... I know that FTP is not the best for xfering... I'm looking into SSH w/patch, SMB/CIFS or NFS

    Tim

    Your plan should work fine.  Specify a subnet mask of 255.255.255.0 on both network adapters to 192.168.0.x and 192.168.1.x different subnets.

    You do not need to specify GW and DNS on the secondary NETWORK, and you don't need to create a static route.

    To access the box of FreeNAS on secondary NETWORK map, use his IP (192.168.1.100), and not its NetBIOS name.
    Owner, Boulder computer Maven
    Most Microsoft Valuable Professional

Maybe you are looking for

  • You can't find sierra downloaded to install it?

    You can't find sierra downloaded to install it? I had to free up memory after the first time that I tried to install but now I have this situation? I have a macbook air mid 2013. I released 20 GB. I have mac os x 10.11.6. The App Store says it is dow

  • Reader SuperDrive does not recognize blank DVD

    Have recently upgraded to El Capitan. Since then, I tried to export photos on the drive to put in stock and my DVD burner in my iMac 12.1 will recognize is no longer the DVD when entered into the burner. What is happening now is that the DVD is sitti

  • HP 250 G3: Hp 250 G3 camera does not work!

    Hello I have a problem with my portable device that does not work. I have the cyberlink youcam solfware, but only the light of the camera opens and the microphone to work. My vga drivers https://Downloadcenter.Intel.com/download/24973/Intel-HD-graphi

  • Windows xp pro hangs during upgrade xp home to xp pro.

    This pc is not connected to the internet.  When the computer reboots, several times, xp a control will be meet all orders not recognize any disks.  No F8 or F10 results. Please help... db

  • I have win 98se, win xp sp3 and Windows vista 64 bit, I want to share printer files

    I have win 98se, win xp sp3 and Windows vista 64-bit PCs, and I want to share files & printer... printer is connect in xp or 98se, well, what is possible... currently, I've got these between vista and xp, which is available when win 98se involved? Tw


HashFlare