input stringlengths 10 828 | output stringlengths 5 107 |
|---|---|
public string get relative path file file string file path file get absolute path return file path substring get root dir length 1 | gets the path of the given file relative to the root |
public junit command init junit string junit memory junit impl new junit command get dir config get junit reports dir get dir config get java dir get classpath config junit memory junit impl init logging get dir config get log file return junit impl | this method must be called if junit tests are required in order to |
public assemble command get assemble command string jar name return assemblies get jar name | if further configuration of the jar file to be created is required then |
public make command get compile impl return shell project get compile impl | use this method to further configure the command used to build the source |
public void assemble in new vm shell project assemble in new vm | delegates assembly functionality to another vm via the class specified by |
public void clean in new vm shell project clean in new vm | delegates junit functionality to another vm via the class specified by |
public void junit in new vm shell project junit in new vm | delegates junit functionality to another vm via the class specified by |
public void compile shell project compile | compiles all java code |
public void clean clean command clean classes new clean command get dir config get classes dir clean classes init logging get dir config get log file clean classes execute clean command clean target new clean command get dir config get target dir clean target init logging get dir config get log file clean target execute collection assemble command commands assemblies values for assemble command command commands file dest file command get jar get dest file if dest file exists get logger get proto logger info deleting dest file get absolute path dest file delete | deletes all generated files and directories including the log file |
public void assemble get dir config get lib dir mkdir collection assemble command assemble commands assemblies values for assemble command command assemble commands command execute | responsible for creating one or more jar files from the compiled source |
public void junit if get junit impl null get junit impl execute else throw new runtime exception junit task is not configured | runs all junit tests in a forked vm |
public void tar if get tar impl null get tar impl execute else throw new runtime exception tar task is not configured | creates a tar of the project in the target directory |
private void find alien proto logger logger shell project get standard project get logger logger get proto logger info not this time please try again later | probably doesnt rival seti as yet |
private project core get project core return shell project get project core | the helper class used to implement many important project features |
public dir config get dir config return get project core get dir config | all the locations of project directories and files are captured here |
public proto logger get logger return get project core get logger | access to the protoj log4j helper |
public classpath config get classpath config return get project core get classpath config | the object used to configure classpaths |
public project reporter get project reporter return get project core get project reporter | produces progress information in a standardized fashion |
public void add command string name runnable runnable get project core add command name runnable | call to add a command object that can carry out a project feature |
public start vm command create vm string command string max memory return get project core create vm command max memory | creates an instance that will launch a new forked virtual machine |
public void start vm string command string max memory get project core start vm command max memory | convenience method that creates and starts a new vm in a standardized |
public void dispatch commands get project core dispatch commands | iterates over all the commands parsed from code main code |
public string get main class return get project core get main class | certain methods such as |
public string get root dir return get project core get root dir | the root directory that contains all project files and directories |
public ajc session get session return session | a unit test pojo that executes a selection of commands at the command |
public void execute command string args get project get runner execute args | executes the command line argument specified in the arguments to main |
public alien session get session return session | programmatically executes a prepared set of commands for testing |
public void execute command string args project get runner execute args | executes the command line argument specified in the arguments to main |
public void config project get config feature relative local clean profile project get config feature relative local overlay profile true | applies a profile called profile from the conf directory |
public string get jboss zip name string name string version get java specification version if version contains 6 name jboss 5 0 1 ga jdk6 zip else if version contains 5 name jboss 5 0 1 ga zip else throw new runtime exception demo only executes on java 5 or java 6 return name | returns jboss 5 |
public void import properties configuration properties config feature feature get parent get delegate get config feature feature import properties this properties | populates this instance with the values from the specified properties |
public void export properties configuration properties config feature feature get parent get delegate get config feature feature export properties this properties | populates the specified properties container with the values from this |
private void add delete target target file dir delete delete get delegate get ant feature add task target new delete delete set task name trim dir get name delete set dir dir | adds an ant task that deletes the specfied directory |
public void extract scripts file dir get script dir resource feature feature get parent get delegate get resource feature feature filter resource to dir org serverdemo db createdb sql dir feature filter resource to dir org serverdemo db dropdb sql dir feature filter resource to dir org serverdemo db createtables sql dir | extracts the database scripts into the |
public void create db execute bootstrap script createdb sql | creates the database |
public void drop db execute bootstrap script dropdb sql | drops the database |
private void execute sample project final script session session server demo project create script session arg runnable script session listener new arg runnable script session public void run script session arg exec task wrapper exec session get current exec string log server demo project get layout load log assert assert true log exec is success session add command config listener config session add command retrieve listener retrieve session add command compile listener compile session add command expand listener expand session add command config listener config session add command archive listener archive session add command dist listener dist session execute | the sample project will act as an installer that extracts the jboss zip |
public void create tables execute script createtables sql | creates the tables |
public void new db extract scripts drop db create db create tables | recreates the entire database |
private standard project create dist project project layout sample layout server demo project get layout java java get parent get delegate get ant feature add task new java java set task name serverdemo java java set jar new file sample layout get archive dir serverdemo dist jar java set fork true java set failonerror true java set dir sample layout get target dir java execute file root dir new file sample layout get target dir serverdemo standard project dist project new standard project root dir dist project get layout relax permissions return dist project | executes the distribution created by the serverdemo project in order to |
private void execute script string script name execute script script name get database name | executes a script on the database |
public void execute command string args scheduled executor service service schedule update from script 5 l time unit seconds try delegate get runner execute args finally service shutdown now | executes the command line argument specified in the arguments to main |
private void execute bootstrap script string script name execute script script name template1 | executes a script on the bootstrap database required by postgresql in |
private void execute script string script name string database file bin dir get layout get bin dir string script path new file get script dir script name get absolute path string arg line database f script path exec task task get parent get delegate get ant feature add task new exec task exec task wrapper wrapper new exec task wrapper task wrapper init default bin dir psql arg line null wrapper init spawn false task execute logger logger get parent get delegate get logger wrapper log output logger level info level error wrapper write output | delegates to the psql executable in order the execute the specified |
public file get script dir if script dir null script dir new file get layout get root dir db return script dir | the location of the database scripts |
public jboss session get jboss session return jboss session | programmatically executes a prepared set of commands for testing |
public string get database name return serverdemo | the name of the database |
private project layout get layout return get parent get delegate get layout | a reference to the project layout |
public standard project get delegate return get parent get delegate | the proto j helper instance |
public market simulation1 get market simulation1 return market simulation1 | puts prepared messages through the |
public server demo settings get settings return get parent get settings | the proto j helper instance |
public database access get database access return database access | executes database scripts |
public fix conversation player get player if player null player create player return player | responsible for playing out the messages in the two sides of the |
public session id get exchange session id return new session id fix 4 2 acme exchange wheeler dealer | this fix session id for the exchange side |
public jboss feature get jboss feature return jboss feature | jboss server related functionality |
public session id get client session id return new session id fix 4 2 wheeler dealer acme exchange | the fix session id for the client side |
private string create working dir file root dir delegate get layout get root dir file dir new file root dir quickfix dir mkdirs return dir get absolute path | creates the working directory under the root |
private fix conversation player create player fix conversation exchange conversation create exchange conversation fix conversation client conversation create client conversation fix conversation player player new fix conversation player get parent exchange conversation client conversation false return player | creates the player instance and assigns the two sides of the conversation |
public server demo settings get settings return settings | encapsulates the system settings |
private fix conversation create client conversation string host get parent get settings get fix socket connect host integer port get parent get settings get fix socket connect port fix conversation conversation new fix conversation get parent host port org serverdemo fix fixclient cfg get client session id get exchange session id false add messages conversation return conversation | creates the client conversation an populates with messages |
private thread monitor outbound messages final fix end point end point thread thread new thread override public void run end point monitor outbound messages thread start return thread | starts the specified end point in a new thread |
private fix conversation create exchange conversation string host get parent get settings get fix socket accept host integer port get parent get settings get fix socket accept port fix conversation conversation new fix conversation get parent host port org serverdemo fix fixexchange cfg get client session id get exchange session id true add messages conversation return conversation | creates the exchange conversation an populates with messages |
public user commands get user commands return user commands | encapsulates the available commands that can be executed at the command |
private void add messages fix conversation conversation add message0 conversation add message1 conversation add message2 conversation add message3 conversation add message4 conversation | adds all the messages to the specified conversation |
public void complete connection outbound messages put poisoned message inbound messages put poisoned message connector stop | causes the fix end point to complete as soon as possible |
private void add message0 fix conversation conversation new order single message new new order single new cl ord id 11 12 2013 new handl inst handl inst automated execution order private new symbol qbaxu0 new side side buy new transact time new ord type ord type market message set field new order qty 23 message set field new time in force time in force day conversation add message message get client session id | adds a new order single message |
public server demo session get session return session | programmatically executes a prepared set of commands for testing |
public void monitor inbound messages arg runnable message callback blocking take inbound messages callback | registers the callback for notification of inbound messages |
private void add message1 fix conversation conversation new order single message0 new order single conversation get message 0 execution report message new execution report new order id uuid random uuid to string new exec id uuid random uuid to string new exec trans type exec trans type new new exec type exec type new new ord status ord status new message0 get symbol message0 get side new leaves qty message0 get order qty get value new cum qty 0 new avg px 0 message set field message0 get time in force conversation add message message get exchange session id | adds an execution report message with ord status |
private thread monitor inbound messages final fix end point end point thread thread new thread override public void run end point monitor inbound messages new arg runnable message public void run message message actual messages add message thread start return thread | monitors the specified end point in a new thread |
public void monitor outbound messages blocking take outbound messages new arg runnable message public void run message message session send to target message session id | sends messages that were added with a call to |
private session id get session id return is exchange exchange session id client session id | the fix session id |
private void add message3 fix conversation conversation new order single message new new order single new cl ord id 12 13 2014 new handl inst handl inst automated execution order private new symbol qbaxu0 new side side buy new transact time new ord type ord type market message set field new order qty 23 message set field new time in force time in force day conversation add message message get client session id | adds a new order single message |
public fix end point get end point return end point | handles the fix communications details |
private void verify messages array list message info expected client conversation get infos assert assert equals expected size actual messages size for int i 0 i expected size i message expected message expected get i get message message actual message actual messages get i assert assert equals expected message get class actual message get class | compares the messages received across the client and exchange end points |
public void export config first export the properties files project layout layout get delegate get layout file file layout get properties file properties configuration properties new properties configuration file get delegate get settings export properties properties get settings export properties properties properties save then export the xml files that contain velocity markup string resource root org serverdemo system string relative path bindings xml file bootstrap dir new file get jboss feature get jboss dir server default conf bootstrap get delegate get resource feature filter resource to dir resource root relative path bootstrap dir | exports properties and xml files required by third party applications |
public server demo project get parent return parent | the owning instance |
private void add message4 fix conversation conversation new order single message3 new order single conversation get message 3 execution report message new execution report new order id uuid random uuid to string new exec id uuid random uuid to string new exec trans type exec trans type new new exec type exec type new new ord status ord status new message3 get symbol message3 get side new leaves qty message3 get order qty get value new cum qty 0 new avg px 0 message set field message3 get time in force conversation add message message get exchange session id | adds an execution report message with ord status |
public void delete working dirs file exchange working dir new file exchange conversation get end point get working dir file utils delete directory exchange working dir file client workingdir new file client conversation get end point get working dir file utils delete directory client workingdir | deletes the working directories for both fix end points |
public fix conversation get exchange conversation return exchange conversation | the exchange side of the fix connection |
public fix conversation get client conversation return client conversation | the client side of the fix connection |
public boolean is exchange return is exchange | specifies whether this is an exchange side or client side end point |
public void add message message message session id session id infos add new message info message session id | adds a message to this conversation with the specified session id used to |
public message get message int index return infos get index get message | gets the messages at the specified index |
private void message received session id session id current index send messages session id | called whenever an application messages is received |
private void send messages session id session id boolean should loop current index infos size message info info while should loop process the current info info infos get current index if session id equals info get session id info execute else should loop false check if we are at the last info if current index infos size 1 should loop false current index | sends the next batch of messages but only if they match the specified |
public void put outbound message message message outbound messages put message | puts the specified message ready to be sent to the other fix endpoint |
public void from app message message inbound messages put message | this should be called when an application message is received from fix |
public void execute command string args delegate get runner execute args | executes the command line argument specified in the arguments to main |
public void init merge archives string archives if archives null merge archives collections empty list else merge archives arrays as list archives | any additional archives in the |
public void init merge archives filename filter filter file lib dir parent get layout get lib dir string archives lib dir list filter init merge archives archives | specifies that source archives in the |
public void add entry string name add entry name null null null | convenience method that schedules the creation of a single sources |
public void init exclude archives string name string archives final list string list arrays as list archives filename filter filter new filename filter public boolean accept file dir string name return list contains name get parent get archive feature is classes jar name get entry name init merge archives filter | specifies that all the sources archives except for the excluded list in |
public junit feature create string memory this memory memory return this | the individual property getter methods describe the parameters of the |
public void create archive string name project layout layout get parent get layout current assemble task entries get name create assemble task layout get java dir arg runnable source archive config entries get name get config if config null config run this current assemble task get jar execute | creates the jar for the given name under |
private void apply rwx applies the chmod chmod chmod get parent get ant feature add task new chmod chmod set task name rwx chmod set dir get extracted project get layout get root dir chmod set includes chmod set perm 777 chmod execute | applies rwx permissions to the extracted project |
public jar wrapper get current assemble task return current assemble task | the ant task responsible for creating the jar during the call to |
public standard project get extracted project project layout this layout get parent get layout file verify tar dir new file this layout get target dir verify tar string prefix get parent get project archive get prefix file root dir new file verify tar dir prefix standard project project new standard project root dir return project | creates a project instance representing the project being verified in the |
public void clean file utils delete directory get layout get target dir file utils delete directory get layout get classes dir get parent get classes archive visit new arg runnable classes entry public void run classes entry entry if entry is classpath lib string name entry get archive entry get name file file new file get layout get lib dir name file utils delete directory file | deletes the target and classes directories as well as any jars that |
public void add entry string name string memory add entry name null null null memory | convenience method that schedules the creation of a single javadoc |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.